#define DESC_CONFIG_uint32_t(a) (a&0xFF),((a>>8)&0xFF),((a>>16)&0xFF),((a>>24)&0xFF)
The DESC_CONFIG_uint32_t() macro is implemented for convenience. Since the configuration descriptor array is a uint8_t array, each entry needs to be a uint8_t in LSB format. The DESC_CONFIG_uint32_t() macro breaks up a uint32_t into the appropriate uint8_t entries in LSB.
MLA - USB Library Help Version : 2.16
![]() |