27#ifndef _TUSB_MSC_HOST_H_
28#define _TUSB_MSC_HOST_H_
40#ifndef CFG_TUH_MSC_MAXLUN
41#define CFG_TUH_MSC_MAXLUN 4
59bool tuh_msc_mounted(uint8_t dev_addr);
62bool tuh_msc_ready(uint8_t dev_addr);
65uint8_t tuh_msc_get_maxlun(uint8_t dev_addr);
68uint32_t tuh_msc_get_block_count(uint8_t dev_addr, uint8_t lun);
71uint32_t tuh_msc_get_block_size(uint8_t dev_addr, uint8_t lun);
76bool tuh_msc_scsi_command(uint8_t dev_addr,
msc_cbw_t const* cbw,
void* data, tuh_msc_complete_cb_t complete_cb, uintptr_t arg);
80bool tuh_msc_inquiry(uint8_t dev_addr, uint8_t lun,
scsi_inquiry_resp_t* response, tuh_msc_complete_cb_t complete_cb, uintptr_t arg);
84bool tuh_msc_test_unit_ready(uint8_t dev_addr, uint8_t lun, tuh_msc_complete_cb_t complete_cb, uintptr_t arg);
88bool tuh_msc_request_sense(uint8_t dev_addr, uint8_t lun,
void *response, tuh_msc_complete_cb_t complete_cb, uintptr_t arg);
92bool tuh_msc_read10(uint8_t dev_addr, uint8_t lun,
void * buffer, uint32_t lba, uint16_t block_count, tuh_msc_complete_cb_t complete_cb, uintptr_t arg);
96bool tuh_msc_write10(uint8_t dev_addr, uint8_t lun,
void const * buffer, uint32_t lba, uint16_t block_count, tuh_msc_complete_cb_t complete_cb, uintptr_t arg);
102bool tuh_msc_read_capacity(uint8_t dev_addr, uint8_t lun,
scsi_read_capacity10_resp_t* response, tuh_msc_complete_cb_t complete_cb, uintptr_t arg);
107TU_ATTR_WEAK
void tuh_msc_mount_cb(uint8_t dev_addr);
110TU_ATTR_WEAK
void tuh_msc_umount_cb(uint8_t dev_addr);
116void msch_init (
void);
117bool msch_open (uint8_t rhport, uint8_t dev_addr,
tusb_desc_interface_t const *desc_itf, uint16_t max_len);
118bool msch_set_config (uint8_t dev_addr, uint8_t itf_num);
119void msch_close (uint8_t dev_addr);
120bool msch_xfer_cb (uint8_t dev_addr, uint8_t ep_addr, xfer_result_t event, uint32_t xferred_bytes);
AUDIO Channel Cluster Descriptor (4.1)
Definition audio.h:647
SCSI Read Capacity 10 Response Data.
Definition msc.h:357