summaryrefslogtreecommitdiff
path: root/src/class/msc/msc_device.h
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2022-02-15 23:17:58 +0700
committerGitHub <[email protected]>2022-02-15 23:17:58 +0700
commitfcca8bb4ca219b2b43169997a5a00d65bc12c877 (patch)
tree7d2c407d6585d701cc325b1f1123791bc37d055d /src/class/msc/msc_device.h
parentde4932d9c5a4140a7c358f640d48c6f9ad3bc8a6 (diff)
parent46f4f7ff491e5a45229f9d35653fd29578b9e7db (diff)
Merge pull request #1327 from hathach/msc-request-sense
Add msc request sense callback
Diffstat (limited to 'src/class/msc/msc_device.h')
-rw-r--r--src/class/msc/msc_device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/class/msc/msc_device.h b/src/class/msc/msc_device.h
index d32694340..5839b168d 100644
--- a/src/class/msc/msc_device.h
+++ b/src/class/msc/msc_device.h
@@ -131,6 +131,9 @@ TU_ATTR_WEAK uint8_t tud_msc_get_maxlun_cb(void);
// - Start = 1 : active mode, if load_eject = 1 : load disk storage
TU_ATTR_WEAK bool tud_msc_start_stop_cb(uint8_t lun, uint8_t power_condition, bool start, bool load_eject);
+// Invoked when received REQUEST_SENSE
+TU_ATTR_WEAK int32_t tud_msc_request_sense_cb(uint8_t lun, void* buffer, uint16_t bufsize);
+
// Invoked when Read10 command is complete
TU_ATTR_WEAK void tud_msc_read10_complete_cb(uint8_t lun);