From 6682720b2aecb777d8f8aceedbd49aaff4fbbc27 Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 31 Mar 2014 11:59:43 +0700 Subject: implement & document all the device class _mounted_cb & _unmounted_cb callbacks --- tinyusb/class/msc_device.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'tinyusb/class/msc_device.h') 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 -- cgit v1.3.1