EFM32 Happy Gecko Software Documentation
efm32hg-doc-5.1.2
|
Macros | |
#define | STATIC_USBX_BUF(x, y) |
Macro for creating WORD (4 byte) aligned static uint8_t array with size which is a multiple of WORD size. More... | |
#define | USBX_BUF(x, y) SL_ALIGN(4) uint8_t x[((y)+3)&~3] SL_ATTRIBUTE_ALIGN(4) |
Macro for creating WORD (4 byte) aligned uint8_t array with size which is a multiple of WORD size. More... | |
#define | USBX_STRING_DESC(_name, ...) |
Macro for creating USB-Compliant UTF-16LE UNICODE string descriptor. More... | |
#define STATIC_USBX_BUF | ( | x, | |
y | |||
) |
Macro for creating WORD (4 byte) aligned static uint8_t array with size which is a multiple of WORD size.
Example:
STATIC_USBX_BUF(rxBuffer, 37); => uint8_t rxBuffer[40];
Definition at line 218 of file em_usbxpress.h.
#define USBX_BUF | ( | x, | |
y | |||
) | SL_ALIGN(4) uint8_t x[((y)+3)&~3] SL_ATTRIBUTE_ALIGN(4) |
Macro for creating WORD (4 byte) aligned uint8_t array with size which is a multiple of WORD size.
Example:
USBX_BUF(rxBuffer, 37); => uint8_t rxBuffer[40];
Definition at line 204 of file em_usbxpress.h.
#define USBX_STRING_DESC | ( | _name, | |
... | |||
) |
Macro for creating USB-Compliant UTF-16LE UNICODE string descriptor.
Example: USBX_STRING_DESC(iManufacturer, 'S','i','l','i','c','o','n',' ' \ 'L','a','b','s');
Definition at line 173 of file em_usbxpress.h.