XilinxProcessorIPLib/drivers/axiethernet/examples/xaxiethernet_example_util.c
void AxiEthernetUtilFrameMemClear(EthernetFrame * FramePtr)
{
	u32 *Data32Ptr = (u32 *) FramePtr;
	u32 WordsLeft = sizeof(EthernetFrame) / sizeof(u32);

	/*
	 * Frame should be an integral number of words
	 */
	while (WordsLeft--) {
		*Data32Ptr++ = 0;
	}
}
/******************************************************************************/
/**
* This function sets all bytes of a frame to 0.
*
* @param	FramePtr is a pointer to the frame itself.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
This function sets all bytes of a frame to 0.
This function sets all bytes of a frame to 0 .
void AxiEthernetUtilFrameMemClear(EthernetFrame * FramePtr)
{
	u32 *Data32Ptr = (u32 *) FramePtr;
	u32 WordsLeft = sizeof(EthernetFrame) / sizeof(u32);
	while (WordsLeft--) {
		*Data32Ptr++ = 0;
	}
}
void AxiEthernetUtilFrameMemClear ( EthernetFrame * FramePtr ) { u32 * Data32Ptr = ( u32 * ) FramePtr ; u32 WordsLeft = sizeof ( EthernetFrame ) / sizeof ( u32 ) ; while ( WordsLeft -- ) { * Data32Ptr ++ = 0 ; } }
This function sets all bytes of a frame to 0.
This function sets all bytes of a frame to 0 .
/*
	 * Frame should be an integral number of words
	 */