XilinxProcessorIPLib/drivers/iic/src/xiic_stats.c
void XIic_ClearStats(XIic *InstancePtr)
{
	u8 NumBytes;
	u8 *DestPtr;

	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid(InstancePtr != NULL);

	DestPtr = (u8 *)&InstancePtr->Stats;
	for (NumBytes = 0; NumBytes < sizeof(XIicStats); NumBytes++) {
		*DestPtr++ = 0;
	}

}
/*****************************************************************************/
/**
*
* Clears the statistics for the IIC device by zeroing all counts.
*
* @param	InstancePtr is a pointer to the XIic instance to be worked on.
*
* @return	None.
*
* @note		None.
*
****************************************************************************/
Clears the statistics for the IIC device by zeroing all counts.
Clears the statistics for the IIC device by zeroing all counts .
void XIic_ClearStats(XIic *InstancePtr)
{
	u8 NumBytes;
	u8 *DestPtr;
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid(InstancePtr != NULL);
	DestPtr = (u8 *)&InstancePtr->Stats;
	for (NumBytes = 0; NumBytes < sizeof(XIicStats); NumBytes++) {
		*DestPtr++ = 0;
	}
}
void XIic_ClearStats ( XIic * InstancePtr ) { u8 NumBytes ; u8 * DestPtr ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Xil_AssertVoid ( InstancePtr != NULL ) ; DestPtr = ( u8 * ) & InstancePtr -> Stats ; for ( NumBytes = 0 ; NumBytes < sizeof ( XIicStats ) ; NumBytes ++ ) { * DestPtr ++ = 0 ; } }
Clears the statistics for the IIC device by zeroing all counts.
Clears the statistics for the IIC device by zeroing all counts .