XilinxProcessorIPLib/drivers/axiethernet/examples/xaxiethernet_example_util.c
void AxiEthernetUtilFrameHdrFormatType(EthernetFrame *FramePtr, u16 FrameType)
{
	char *Frame = (char *) FramePtr;

	/*
	 * Increment to type field
	 */
	Frame = Frame + 12 + Padding;

	FrameType = Xil_Htons(FrameType);
	/*
	 * Set the type
	 */
	*(u16 *) Frame = FrameType;
}
/******************************************************************************/
/**
*
* Set the frame type for the specified frame.
*
* @param	FramePtr is the pointer to the frame.
* @param	FrameType is the Type to set in frame.
*
* @return	None.
*
* @note		None.
*
******************************************************************************/
Set the frame type for the specified frame.
Set the frame type for the specified frame .
void AxiEthernetUtilFrameHdrFormatType(EthernetFrame *FramePtr, u16 FrameType)
{
	char *Frame = (char *) FramePtr;
	Frame = Frame + 12 + Padding;
	FrameType = Xil_Htons(FrameType);
	*(u16 *) Frame = FrameType;
}
void AxiEthernetUtilFrameHdrFormatType ( EthernetFrame * FramePtr , u16 FrameType ) { char * Frame = ( char * ) FramePtr ; Frame = Frame + 12 + Padding ; FrameType = Xil_Htons ( FrameType ) ; * ( u16 * ) Frame = FrameType ; }
Set the frame type for the specified frame.
Set the frame type for the specified frame .
/*
	 * Increment to type field
	 */ /*
	 * Set the type
	 */