diff options
| author | Ha Thach <[email protected]> | 2021-01-21 16:35:13 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-21 16:35:13 +0700 |
| commit | 1e134cbb31cb0fcd593d47e9865dd2c4dba68686 (patch) | |
| tree | 4638eb5eb885e89be071a83a9297ad9da126cdf8 /src/device/usbd.h | |
| parent | e0aa405d19e35dbf58cf502b8106455c1a3c2a5c (diff) | |
| parent | 7aaccd94d2e11ee2329353b4119526c75279b3ba (diff) | |
Merge branch 'master' into pico
Diffstat (limited to 'src/device/usbd.h')
| -rw-r--r-- | src/device/usbd.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h index e88f64ba8..360567743 100644 --- a/src/device/usbd.h +++ b/src/device/usbd.h @@ -56,6 +56,9 @@ extern void dcd_int_handler(uint8_t rhport); // Get current bus speed tusb_speed_t tud_speed_get(void); +// Check if device is connected (may not mounted/configured yet) +bool tud_connected(void); + // Check if device is connected and configured bool tud_mounted(void); @@ -125,11 +128,7 @@ TU_ATTR_WEAK void tud_suspend_cb(bool remote_wakeup_en); TU_ATTR_WEAK void tud_resume_cb(void); // Invoked when received control request with VENDOR TYPE -TU_ATTR_WEAK bool tud_vendor_control_request_cb(uint8_t rhport, tusb_control_request_t const * request); - -// Invoked when vendor control request is complete -TU_ATTR_WEAK bool tud_vendor_control_complete_cb(uint8_t rhport, tusb_control_request_t const * request); - +TU_ATTR_WEAK bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t const * request); //--------------------------------------------------------------------+ // Binary Device Object Store (BOS) Descriptor Templates |
