- add tuh_descriptor_get_string_langid() API

- host enumeration always get language id, manufacturer, product and serial string. Which is required by some device such as 8bitdo
This commit is contained in:
hathach
2025-03-03 23:22:23 +07:00
parent 93ff3daa11
commit 5f447b76ad
5 changed files with 123 additions and 72 deletions

View File

@@ -462,7 +462,7 @@ TU_VERIFY_STATIC( sizeof(tusb_desc_interface_assoc_t) == 8, "size is not correct
typedef struct TU_ATTR_PACKED {
uint8_t bLength ; ///< Size of this descriptor in bytes
uint8_t bDescriptorType ; ///< Descriptor Type
uint16_t unicode_string[];
uint16_t utf16le[];
} tusb_desc_string_t;
// USB Binary Device Object Store (BOS)