Macros | |
#define | USBStringDescriptor_ENGLISH_US 0x09, 0x04 |
#define | USBStringDescriptor_LENGTH(length) ((length) * 2 + 2) |
#define | USBStringDescriptor_UNICODE(ascii) (ascii), 0 |
This section lists the codes and macros for USB string descriptor definition.
#define USBStringDescriptor_ENGLISH_US 0x09, 0x04 |
Language ID for US English.
Definition at line 437 of file USBDescriptors.h.
Calculates the length of a string descriptor given the number of ascii characters/language IDs in it.
length | The ascii format string length. |
Definition at line 444 of file USBDescriptors.h.
#define USBStringDescriptor_UNICODE | ( | ascii | ) | (ascii), 0 |
Converts an ascii character to its unicode representation.
ascii | The ASCII character to convert |
Definition at line 450 of file USBDescriptors.h.