/* This function is used for copying 16 bit to stream while converting to little endian format. 
UINT16_TO_STREAM_f */
UINT8* UINT16_TO_STREAM_f(UINT8 *p, UINT16 u16)
/* This function is used for copying 16 bit to stream while converting to little endian format. 
UINT16_TO_STREAM_f */
UINT8* UINT16_TO_STREAM_f(UINT8 *p, UINT16 u16)
{
	*(p)++ = (UINT8)(u16);
	*(p)++ = (UINT8)((u16) >> 8);
	return p;
}