diff options
| author | hathach <[email protected]> | 2023-03-21 12:54:43 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-03-21 12:55:52 +0700 |
| commit | e44e461ce3295f5680ea211048ade473963ba016 (patch) | |
| tree | cff522682c8cc58816125cb82aad40b42ae4b81f /src/host/usbh.h | |
| parent | cbcf5d8c0866e6c0090b98ad9b3d6d504e313135 (diff) | |
add tuh_set_interface
Diffstat (limited to 'src/host/usbh.h')
| -rw-r--r-- | src/host/usbh.h | 5 |
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) //--------------------------------------------------------------------+ |
