| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
usbd_msc.h File Reference

## Detailed Description

Mass Storage calss (MSC) descriptors.

Definition of MSC class descriptors and their bit defines.

Definition in file usbd_msc.h.

`#include "usbd.h"`

Go to the source code of this file.

## Macros
#define | MSC_SUBCLASS_RBC 0x01
#define | MSC_SUBCLASS_SFF8020I_MMC2 0x02
#define | MSC_SUBCLASS_QIC157 0x03
#define | MSC_SUBCLASS_UFI 0x04
#define | MSC_SUBCLASS_SFF8070I 0x05
#define | MSC_SUBCLASS_SCSI 0x06
#define | MSC_PROTOCOL_CBI_INT 0x00
#define | MSC_PROTOCOL_CBI_NOINT 0x01
#define | MSC_PROTOCOL_BULK_ONLY 0x50
#define | MSC_REQUEST_RESET 0xFF
#define | MSC_REQUEST_GET_MAX_LUN 0xFE
#define | MSC_BS_CBW 0 /* Command Block Wrapper */
#define | MSC_BS_DATA_OUT 1 /* Data Out Phase */
#define | MSC_BS_DATA_IN 2 /* Data In Phase */
#define | MSC_BS_DATA_IN_LAST 3 /* Data In Last Phase */
#define | MSC_BS_DATA_IN_LAST_STALL 4 /* Data In Last Phase with Stall */
#define | MSC_BS_CSW 5 /* Command Status Wrapper */
#define | MSC_BS_ERROR 6 /* Error */
#define | MSC_CBW_Signature 0x43425355
#define | MSC_CSW_Signature 0x53425355
#define | CSW_CMD_PASSED 0x00
#define | CSW_CMD_FAILED 0x01
#define | CSW_PHASE_ERROR 0x02
#define | SCSI_TEST_UNIT_READY 0x00
#define | SCSI_REQUEST_SENSE 0x03
#define | SCSI_FORMAT_UNIT 0x04
#define | SCSI_INQUIRY 0x12
#define | SCSI_MODE_SELECT6 0x15
#define | SCSI_MODE_SENSE6 0x1A
#define | SCSI_START_STOP_UNIT 0x1B
#define | SCSI_MEDIA_REMOVAL 0x1E
#define | SCSI_READ_FORMAT_CAPACITIES 0x23
#define | SCSI_READ_CAPACITY 0x25
#define | SCSI_READ10 0x28
#define | SCSI_WRITE10 0x2A
#define | SCSI_VERIFY10 0x2F
#define | SCSI_READ12 0xA8
#define | SCSI_WRITE12 0xAA
#define | SCSI_MODE_SELECT10 0x55
#define | SCSI_MODE_SENSE10 0x5A

## Macro Definition Documentation

#define CSW_CMD_FAILED 0x01

Definition at line 95 of file usbd_msc.h.

#define CSW_CMD_PASSED 0x00

Definition at line 94 of file usbd_msc.h.

#define CSW_PHASE_ERROR 0x02

Definition at line 96 of file usbd_msc.h.

#define MSC_BS_CBW 0 /* Command Block Wrapper */

Definition at line 57 of file usbd_msc.h.

#define MSC_BS_CSW 5 /* Command Status Wrapper */

Definition at line 62 of file usbd_msc.h.

#define MSC_BS_DATA_IN 2 /* Data In Phase */

Definition at line 59 of file usbd_msc.h.

#define MSC_BS_DATA_IN_LAST 3 /* Data In Last Phase */

Definition at line 60 of file usbd_msc.h.

#define MSC_BS_DATA_IN_LAST_STALL 4 /* Data In Last Phase with Stall */

Definition at line 61 of file usbd_msc.h.

#define MSC_BS_DATA_OUT 1 /* Data Out Phase */

Definition at line 58 of file usbd_msc.h.

#define MSC_BS_ERROR 6 /* Error */

Definition at line 63 of file usbd_msc.h.

#define MSC_CBW_Signature 0x43425355

Definition at line 89 of file usbd_msc.h.

#define MSC_CSW_Signature 0x53425355

Definition at line 90 of file usbd_msc.h.

#define MSC_PROTOCOL_BULK_ONLY 0x50

Definition at line 48 of file usbd_msc.h.

#define MSC_PROTOCOL_CBI_INT 0x00

Definition at line 46 of file usbd_msc.h.

#define MSC_PROTOCOL_CBI_NOINT 0x01

Definition at line 47 of file usbd_msc.h.

#define MSC_REQUEST_GET_MAX_LUN 0xFE

Definition at line 53 of file usbd_msc.h.

#define MSC_REQUEST_RESET 0xFF

Definition at line 52 of file usbd_msc.h.

#define MSC_SUBCLASS_QIC157 0x03

Definition at line 40 of file usbd_msc.h.

#define MSC_SUBCLASS_RBC 0x01

Definition at line 38 of file usbd_msc.h.

#define MSC_SUBCLASS_SCSI 0x06

Definition at line 43 of file usbd_msc.h.

#define MSC_SUBCLASS_SFF8020I_MMC2 0x02

Definition at line 39 of file usbd_msc.h.

#define MSC_SUBCLASS_SFF8070I 0x05

Definition at line 42 of file usbd_msc.h.

#define MSC_SUBCLASS_UFI 0x04

Definition at line 41 of file usbd_msc.h.

#define SCSI_FORMAT_UNIT 0x04

Definition at line 102 of file usbd_msc.h.

#define SCSI_INQUIRY 0x12

Definition at line 103 of file usbd_msc.h.

#define SCSI_MEDIA_REMOVAL 0x1E

Definition at line 107 of file usbd_msc.h.

#define SCSI_MODE_SELECT10 0x55

Definition at line 115 of file usbd_msc.h.

#define SCSI_MODE_SELECT6 0x15

Definition at line 104 of file usbd_msc.h.

#define SCSI_MODE_SENSE10 0x5A

Definition at line 116 of file usbd_msc.h.

#define SCSI_MODE_SENSE6 0x1A

Definition at line 105 of file usbd_msc.h.

#define SCSI_READ10 0x28

Definition at line 110 of file usbd_msc.h.

#define SCSI_READ12 0xA8

Definition at line 113 of file usbd_msc.h.

#define SCSI_READ_CAPACITY 0x25

Definition at line 109 of file usbd_msc.h.

#define SCSI_READ_FORMAT_CAPACITIES 0x23

Definition at line 108 of file usbd_msc.h.

#define SCSI_REQUEST_SENSE 0x03

Definition at line 101 of file usbd_msc.h.

#define SCSI_START_STOP_UNIT 0x1B

Definition at line 106 of file usbd_msc.h.

#define SCSI_TEST_UNIT_READY 0x00

Definition at line 100 of file usbd_msc.h.

#define SCSI_VERIFY10 0x2F

Definition at line 112 of file usbd_msc.h.

#define SCSI_WRITE10 0x2A

Definition at line 111 of file usbd_msc.h.

#define SCSI_WRITE12 0xAA

Definition at line 114 of file usbd_msc.h.