summaryrefslogtreecommitdiff
path: root/bsp/synwit/libraries/SWM341_CSL/SWM341_UsbHost_Lib/MSC/usbh_msc_scsi.h
blob: 39e0220d1fc50d99c9bc9cb88fbb72f0253c558c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __USBH_MSC_SCSI_H__
#define __USBH_MSC_SCSI_H__

#include <stdint.h>


typedef enum {
    USBH_MSC_OK = 0,
    USBH_MSC_FAIL,
    USBH_MSC_PHASE_ERROR,
    USBH_MSC_BUSY = 0xFF,
} USBH_MSC_Status;  // 见 CSW.bCSWStatus 取值


USBH_MSC_Status USBH_MSC_TestUnitReady(void);
USBH_MSC_Status USBH_MSC_ReadCapacity10(void);
USBH_MSC_Status USBH_MSC_ModeSense6(void);
USBH_MSC_Status USBH_MSC_RequestSense(void);
USBH_MSC_Status USBH_MSC_Read10(uint8_t *buffer, uint32_t address, uint32_t nbOfbytes);
USBH_MSC_Status USBH_MSC_Write10(uint8_t *buffer, uint32_t address, uint32_t nbOfbytes);


#endif //__USBH_MSC_SCSI_H__