SCSI interface for Mass Storage Devices (MSD). More...
Go to the source code of this file.
Data Structures | |
struct | MSDSCSI_Inquiry_TypeDef |
SCSI Inquiry Command Descriptor Block (CDB) typedef. More... | |
struct | MSDSCSI_InquiryData_TypeDef |
SCSI Inquiry response data typedef. More... | |
struct | MSDSCSI_RequestSense_TypeDef |
SCSI Request Sense Command Descriptor Block (CDB) typedef. More... | |
struct | MSDSCSI_RequestSenseData_TypeDef |
SCSI Request Sense response data typedef. More... | |
struct | MSDSCSI_ReadCapacity_TypeDef |
SCSI Read Capacity Command Descriptor Block (CDB) typedef. More... | |
struct | MSDSCSI_ReadCapacityData_TypeDef |
SCSI Read Capacity response data typedef. More... | |
struct | MSDSCSI_Read10_TypeDef |
SCSI Read 10 Command Descriptor Block (CDB) typedef. More... | |
struct | MSDSCSI_Write10_TypeDef |
SCSI Write 10 Command Descriptor Block (CDB) typedef. More... | |
struct | MSDSCSI_Verify10_TypeDef |
SCSI Verify 10 Command Descriptor Block (CDB) typedef. More... | |
Defines | |
#define | SCSI_TESTUNIT_READY 0x00 |
SCSI Test Unit Ready command opcode. | |
#define | SCSI_REQUESTSENSE 0x03 |
SCSI Request Sense command opcode. | |
#define | SCSI_INQUIRY 0x12 |
SCSI Inquiry command opcode. | |
#define | SCSI_STARTSTOP_UNIT 0x1B |
SCSI Start Stop Unit command opcode. | |
#define | SCSI_READCAPACITY 0x25 |
SCSI Read Capacity command opcode. | |
#define | SCSI_READ10 0x28 |
SCSI Read (10) command opcode. | |
#define | SCSI_WRITE10 0x2A |
SCSI Write (10) command opcode. | |
#define | SCSI_VERIFY10 0x2F |
SCSI Verify (10) command opcode. | |
#define | SCSI_READ10_LEN 10U |
SCSI Read (10) CBD length. | |
#define | SCSI_WRITE10_LEN 10U |
SCSI Write (10) CDB length. | |
#define | SCSI_VERIFY10_LEN 10U |
SCSI Verify (10) CDB length. | |
#define | SCSI_INQUIRYDATA_LEN 36U |
SCSI Inquiry response data length. | |
#define | SCSI_REQUESTSENSE_LEN 6U |
SCSI Request Sense CDB length. | |
#define | SCSI_REQUESTSENSEDATA_LEN 18U |
SCSI Request Sense response data length. | |
#define | SCSI_READCAPACITY_LEN 10U |
SCSI Read Capacity CDB length. | |
#define | SCSI_READCAPACITYDATA_LEN 8U |
SCSI Read Capacity response data length. | |
Functions | |
bool | MSDSCSI_Init (USBH_Ep_TypeDef *out, USBH_Ep_TypeDef *in) |
MSDSCSI module initialization. | |
bool | MSDSCSI_Inquiry (MSDSCSI_InquiryData_TypeDef *data) |
Issue a SCSI Inquiry command. | |
bool | MSDSCSI_Read10 (uint32_t lba, uint16_t sectors, void *data) |
Issue a SCSI Read(10) command. | |
bool | MSDSCSI_ReadCapacity (MSDSCSI_ReadCapacityData_TypeDef *data) |
Issue a SCSI Read Capacity command. | |
bool | MSDSCSI_RequestSense (MSDSCSI_RequestSenseData_TypeDef *data) |
Issue a SCSI Request Sense command. | |
bool | MSDSCSI_TestUnitReady (void) |
Issue a SCSI Test Unit Ready command. | |
bool | MSDSCSI_Write10 (uint32_t lba, uint16_t sectors, const void *data) |
Perform a SCSI Write(10) command. |
SCSI interface for Mass Storage Devices (MSD).
(C) Copyright 2014 Silicon Labs, http://www.silabs.com
This file is licensed under the Silabs License Agreement. See the file "Silabs_License_Agreement.txt" for details. Before using this software for any purpose, you must agree to the terms of that agreement.
Definition in file msdscsi.h.