implement hid host set report with control transfer

rename mount, umount callback
This commit is contained in:
hathach
2021-05-22 21:48:42 +07:00
parent 63c57ed1a4
commit df65c35b31
6 changed files with 63 additions and 17 deletions

View File

@@ -300,7 +300,7 @@ void msch_close(uint8_t dev_addr)
tu_memclr(p_msc, sizeof(msch_interface_t));
// invoke Application Callback
if (tuh_msc_unmount_cb) tuh_msc_unmount_cb(dev_addr);
if (tuh_msc_umount_cb) tuh_msc_umount_cb(dev_addr);
}
bool msch_xfer_cb(uint8_t dev_addr, uint8_t ep_addr, xfer_result_t event, uint32_t xferred_bytes)

View File

@@ -109,7 +109,7 @@ bool tuh_msc_read_capacity(uint8_t dev_addr, uint8_t lun, scsi_read_capacity10_r
TU_ATTR_WEAK void tuh_msc_mount_cb(uint8_t dev_addr);
// Invoked when a device with MassStorage interface is unmounted
TU_ATTR_WEAK void tuh_msc_unmount_cb(uint8_t dev_addr);
TU_ATTR_WEAK void tuh_msc_umount_cb(uint8_t dev_addr);
//--------------------------------------------------------------------+
// Internal Class Driver API