XilinxProcessorIPLib/drivers/iic/src/xiic_stats.c
void XIic_GetStats(XIic *InstancePtr, XIicStats * StatsPtr)
{
	u8 NumBytes;
	u8 *SrcPtr;
	u8 *DestPtr;

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

	/*
	 * Setup pointers to copy the stats structure
	 */
	SrcPtr = (u8 *) &InstancePtr->Stats;
	DestPtr = (u8 *) StatsPtr;

	/*
	 * Copy the current statistics to the structure passed in
	 */
	for (NumBytes = 0; NumBytes < sizeof(XIicStats); NumBytes++) {
		*DestPtr++ = *SrcPtr++;
	}
}
/*****************************************************************************/
/**
*
* Gets a copy of the statistics for an IIC device.
*
* @param	InstancePtr is a pointer to the XIic instance to be worked on.
* @param	StatsPtr is a pointer to a XIicStats structure which will get a
*		copy of current statistics.
*
* @return	None.
*
* @note		None.
*
****************************************************************************/
Gets a copy of the statistics for an IIC device.
Gets a copy of the statistics for an IIC device .
void XIic_GetStats(XIic *InstancePtr, XIicStats * StatsPtr)
{
	u8 NumBytes;
	u8 *SrcPtr;
	u8 *DestPtr;
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(StatsPtr != NULL);
	SrcPtr = (u8 *) &InstancePtr->Stats;
	DestPtr = (u8 *) StatsPtr;
	for (NumBytes = 0; NumBytes < sizeof(XIicStats); NumBytes++) {
		*DestPtr++ = *SrcPtr++;
	}
}
void XIic_GetStats ( XIic * InstancePtr , XIicStats * StatsPtr ) { u8 NumBytes ; u8 * SrcPtr ; u8 * DestPtr ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( StatsPtr != NULL ) ; SrcPtr = ( u8 * ) & InstancePtr -> Stats ; DestPtr = ( u8 * ) StatsPtr ; for ( NumBytes = 0 ; NumBytes < sizeof ( XIicStats ) ; NumBytes ++ ) { * DestPtr ++ = * SrcPtr ++ ; } }
Gets a copy of the statistics for an IIC device.
Gets a copy of the statistics for an IIC device .
/*
	 * Setup pointers to copy the stats structure
	 */ /*
	 * Copy the current statistics to the structure passed in
	 */