diff options
| author | hathach <[email protected]> | 2018-03-02 00:18:21 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-02 00:18:21 +0700 |
| commit | 2580b4c6a7e45c762e09020719af805f1be46117 (patch) | |
| tree | bf1bc0a3e722fe9bb71aa7287c932d2f6c73cd7b /tinyusb/device | |
| parent | 0afa0ce4ccf493e7684c753ab0af2411eb198f14 (diff) | |
add tud_mount_cb, tud_umount_cb
remove device class/interface callback
Diffstat (limited to 'tinyusb/device')
| -rw-r--r-- | tinyusb/device/usbd.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tinyusb/device/usbd.h b/tinyusb/device/usbd.h index 59128db84..28923dfae 100644 --- a/tinyusb/device/usbd.h +++ b/tinyusb/device/usbd.h @@ -90,7 +90,16 @@ typedef struct { bool tud_mounted(uint8_t coreid);
/*------------- Callback -------------*/
+/** \brief Callback function that will be invoked device is mounted (configured) by USB host
+ * \param[in] coreid USB Controller ID of the interface
+ * \note This callback should be used by Application to \b set-up application data
+ */
void tud_mount_cb(uint8_t coreid);
+
+/** \brief Callback function that will be invoked when device is unmounted (bus reset/unplugged)
+ * \param[in] coreid USB Controller ID of the interface
+ * \note This callback should be used by Application to \b tear-down application data
+ */
void tud_umount_cb(uint8_t coreid);
//void tud_device_suspended_cb(uint8_t coreid);
|
