summaryrefslogtreecommitdiff
path: root/tinyusb/class/msc_device.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2014-03-31 11:59:43 +0700
committerhathach <[email protected]>2014-03-31 11:59:43 +0700
commit6682720b2aecb777d8f8aceedbd49aaff4fbbc27 (patch)
tree9fcb36a06d168b31b0027affdcb8265560b33a79 /tinyusb/class/msc_device.h
parent0bb2cc64b0e1248bfc8e564755a0850b5e5ad762 (diff)
implement & document all the device class _mounted_cb & _unmounted_cb callbacks
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