summaryrefslogtreecommitdiff
path: root/tinyusb/class/msc_device.h
diff options
context:
space:
mode:
Diffstat (limited to 'tinyusb/class/msc_device.h')
-rw-r--r--tinyusb/class/msc_device.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/tinyusb/class/msc_device.h b/tinyusb/class/msc_device.h
index a50e507f5..41ba6a67f 100644
--- a/tinyusb/class/msc_device.h
+++ b/tinyusb/class/msc_device.h
@@ -50,7 +50,7 @@
/** \addtogroup ClassDriver_MSC
* @{
* \defgroup MSC_Device Device
- * @{ */
+ * @{ */
//--------------------------------------------------------------------+
// APPLICATION API
@@ -59,9 +59,17 @@
//--------------------------------------------------------------------+
// APPLICATION CALLBACK API
//--------------------------------------------------------------------+
+/** \brief Callback function that will be invoked when this interface 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 interface-related data
+ */
void tusbd_msc_mounted_cb(uint8_t coreid);
-void tusbd_msc_unmounted_cb(uint8_t coreid);
+/** \brief Callback function that will be invoked when this interface 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 interface-related data
+ */
+void tusbd_msc_unmounted_cb(uint8_t coreid);
/** \brief Callback that is invoked when tinyusb stack received \ref SCSI_CMD_READ_10 command from host
* \param[in] coreid USB Controller ID