added tud_descriptor_bos_cb(), add support for BOS get descriptor

This commit is contained in:
hathach
2019-07-12 00:12:14 +07:00
parent 92134b5ef2
commit e74aa41552
3 changed files with 29 additions and 1 deletions

View File

@@ -67,6 +67,10 @@ bool tud_remote_wakeup(void);
// Application return pointer to descriptor
uint8_t const * tud_descriptor_device_cb(void);
// Invoked when received GET BOS DESCRIPTOR request
// Application return pointer to descriptor
TU_ATTR_WEAK uint8_t const * tud_descriptor_bos_cb(void);
// Invoked when received GET CONFIGURATION DESCRIPTOR request
// Application return pointer to descriptor, whose contents must exist long enough for transfer to complete
uint8_t const * tud_descriptor_configuration_cb(uint8_t index);