keil_examples/USBHostLite/UsbHost/Host/usbhost_lpc17xx.c
/*
**************************************************************************************************************
*                                          READ LE 16U
*
* Description: This function is used to read an unsigned short integer from a charecter buffer in the platform
*              containing little endian processor
*
* Arguments  : pmem    Pointer to the charecter buffer
*
* Returns    : val     Unsigned short integer
*
**************************************************************************************************************
*/
READ LE 16U
Description: This function is used to read an unsigned short integer from a charecter buffer in the platform
containing little endian processor

Arguments  : pmem    Pointer to the charecter buffer

Returns    : val     Unsigned short integer
READ LE 16U Description : This function is used to read an unsigned short integer from a charecter buffer in the platform containing little endian processor Arguments : pmem Pointer to the charecter buffer Returns : val Unsigned short integer
uint16_t  ReadLE16U (volatile  uint8_t  *pmem)
{
    uint16_t   val;
    ((uint8_t *)&val)[0] = pmem[0];
    ((uint8_t *)&val)[1] = pmem[1];
    return (val);
}
uint16_t ReadLE16U ( volatile uint8_t * pmem ) { uint16_t val ; ( ( uint8_t * ) & val ) [ 0 ] = pmem [ 0 ] ; ( ( uint8_t * ) & val ) [ 1 ] = pmem [ 1 ] ; return ( val ) ; }
READ LE 16U
Description: This function is used to read an unsigned short integer from a charecter buffer in the platform
containing little endian processor
READ LE 16U Description : This function is used to read an unsigned short integer from a charecter buffer in the platform containing little endian processor