summaryrefslogtreecommitdiff
path: root/src/device/usbd.h
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2024-05-11 12:44:16 +0200
committerHiFiPhile <[email protected]>2024-05-11 12:44:16 +0200
commit33882b3e89ead1d8b27e858ac8a932b4cbb9b165 (patch)
tree6b4bac21569d9c01cb027ca7cc30068fbf1dd0aa /src/device/usbd.h
parent9ce44db56f145d2efeec6b67d0786230c1a735c4 (diff)
parentd707ea56b47e2fbbe5eaa4854a427a3a7873dea3 (diff)
Merge remote-tracking branch 'remotes/tinyusb/master' into rx_fb
Diffstat (limited to 'src/device/usbd.h')
-rw-r--r--src/device/usbd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h
index 3caaaca25..6216d97ac 100644
--- a/src/device/usbd.h
+++ b/src/device/usbd.h
@@ -97,6 +97,9 @@ bool tud_disconnect(void);
// Return false on unsupported MCUs
bool tud_connect(void);
+// Enable or disable the Start Of Frame callback support
+bool tud_sof_cb_enable(bool en);
+
// Carry out Data and Status stage of control transfer
// - If len = 0, it is equivalent to sending status only
// - If len > wLength : it will be truncated
@@ -152,6 +155,9 @@ TU_ATTR_WEAK void tud_resume_cb(void);
// Invoked when there is a new usb event, which need to be processed by tud_task()/tud_task_ext()
void tud_event_hook_cb(uint8_t rhport, uint32_t eventid, bool in_isr);
+// Invoked when a new (micro) frame started
+void tud_sof_cb(uint32_t frame_count);
+
// Invoked when received control request with VENDOR TYPE
TU_ATTR_WEAK bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t const * request);