summaryrefslogtreecommitdiff
path: root/src/host/usbh.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-03-21 12:54:43 +0700
committerhathach <[email protected]>2023-03-21 12:55:52 +0700
commite44e461ce3295f5680ea211048ade473963ba016 (patch)
treecff522682c8cc58816125cb82aad40b42ae4b81f /src/host/usbh.h
parentcbcf5d8c0866e6c0090b98ad9b3d6d504e313135 (diff)
add tuh_set_interface
Diffstat (limited to 'src/host/usbh.h')
-rw-r--r--src/host/usbh.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/host/usbh.h b/src/host/usbh.h
index 7942de5c2..45e6356bc 100644
--- a/src/host/usbh.h
+++ b/src/host/usbh.h
@@ -171,6 +171,11 @@ bool tuh_edpt_open(uint8_t dev_addr, tusb_desc_endpoint_t const * desc_ep);
bool tuh_configuration_set(uint8_t daddr, uint8_t config_num,
tuh_xfer_cb_t complete_cb, uintptr_t user_data);
+// Set Interface (control transfer)
+// true on success, false if there is on-going control transfer or incorrect parameters
+bool tuh_interface_set(uint8_t daddr, uint8_t itf_num, uint8_t itf_alt,
+ tuh_xfer_cb_t complete_cb, uintptr_t user_data);
+
//--------------------------------------------------------------------+
// Descriptors Asynchronous (non-blocking)
//--------------------------------------------------------------------+