summaryrefslogtreecommitdiff
path: root/src/host/usbh.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-03-04 21:14:59 +0700
committerhathach <[email protected]>2022-03-04 21:14:59 +0700
commit2bdf4d811aaa08841e9a5bdf6bbfe338e45acff6 (patch)
tree1e6f6dc83cda6281b7412e6477f859377a067e17 /src/host/usbh.h
parent7480c2e46b10faa0cbdac5c9db803dbb1597cd34 (diff)
add tuh_descriptor_configuration_get()
Diffstat (limited to 'src/host/usbh.h')
-rw-r--r--src/host/usbh.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/host/usbh.h b/src/host/usbh.h
index 9af139283..6926fce8a 100644
--- a/src/host/usbh.h
+++ b/src/host/usbh.h
@@ -67,6 +67,9 @@ bool tuh_descriptor_get(uint8_t daddr, uint8_t type, uint8_t index,
// Get device descriptor
bool tuh_descriptor_device_get(uint8_t daddr, void* buffer, uint16_t len, tuh_control_complete_cb_t complete_cb);
+// Get configuration descriptor
+bool tuh_descriptor_configuration_get(uint8_t daddr, uint8_t index, void* buffer, uint16_t len, tuh_control_complete_cb_t complete_cb);
+
bool tuh_vid_pid_get(uint8_t daddr, uint16_t* vid, uint16_t* pid);
// Gets the string indices for common device descriptor data.