![]() |
LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
|
#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 |
#define CSW_CMD_FAILED 0x01 |
Definition at line 99 of file usbd_msc.h.
#define CSW_CMD_PASSED 0x00 |
Definition at line 98 of file usbd_msc.h.
#define CSW_PHASE_ERROR 0x02 |
Definition at line 100 of file usbd_msc.h.
#define MSC_BS_CBW 0 /* Command Block Wrapper */ |
Definition at line 61 of file usbd_msc.h.
Definition at line 66 of file usbd_msc.h.
#define MSC_BS_DATA_IN 2 /* Data In Phase */ |
Definition at line 63 of file usbd_msc.h.
#define MSC_BS_DATA_IN_LAST 3 /* Data In Last Phase */ |
Definition at line 64 of file usbd_msc.h.
#define MSC_BS_DATA_IN_LAST_STALL 4 /* Data In Last Phase with Stall */ |
Definition at line 65 of file usbd_msc.h.
#define MSC_BS_DATA_OUT 1 /* Data Out Phase */ |
Definition at line 62 of file usbd_msc.h.
#define MSC_BS_ERROR 6 /* Error */ |
Definition at line 67 of file usbd_msc.h.
#define MSC_CBW_Signature 0x43425355 |
Definition at line 93 of file usbd_msc.h.
#define MSC_CSW_Signature 0x53425355 |
Definition at line 94 of file usbd_msc.h.
#define MSC_PROTOCOL_BULK_ONLY 0x50 |
Definition at line 52 of file usbd_msc.h.
#define MSC_PROTOCOL_CBI_INT 0x00 |
Definition at line 50 of file usbd_msc.h.
#define MSC_PROTOCOL_CBI_NOINT 0x01 |
Definition at line 51 of file usbd_msc.h.
#define MSC_REQUEST_GET_MAX_LUN 0xFE |
Definition at line 57 of file usbd_msc.h.
#define MSC_REQUEST_RESET 0xFF |
Definition at line 56 of file usbd_msc.h.
#define MSC_SUBCLASS_QIC157 0x03 |
Definition at line 44 of file usbd_msc.h.
#define MSC_SUBCLASS_RBC 0x01 |
Definition at line 42 of file usbd_msc.h.
#define MSC_SUBCLASS_SCSI 0x06 |
Definition at line 47 of file usbd_msc.h.
#define MSC_SUBCLASS_SFF8020I_MMC2 0x02 |
Definition at line 43 of file usbd_msc.h.
#define MSC_SUBCLASS_SFF8070I 0x05 |
Definition at line 46 of file usbd_msc.h.
#define MSC_SUBCLASS_UFI 0x04 |
Definition at line 45 of file usbd_msc.h.
#define SCSI_FORMAT_UNIT 0x04 |
Definition at line 106 of file usbd_msc.h.
#define SCSI_INQUIRY 0x12 |
Definition at line 107 of file usbd_msc.h.
#define SCSI_MEDIA_REMOVAL 0x1E |
Definition at line 111 of file usbd_msc.h.
#define SCSI_MODE_SELECT10 0x55 |
Definition at line 119 of file usbd_msc.h.
#define SCSI_MODE_SELECT6 0x15 |
Definition at line 108 of file usbd_msc.h.
#define SCSI_MODE_SENSE10 0x5A |
Definition at line 120 of file usbd_msc.h.
#define SCSI_MODE_SENSE6 0x1A |
Definition at line 109 of file usbd_msc.h.
#define SCSI_READ10 0x28 |
Definition at line 114 of file usbd_msc.h.
#define SCSI_READ12 0xA8 |
Definition at line 117 of file usbd_msc.h.
#define SCSI_READ_CAPACITY 0x25 |
Definition at line 113 of file usbd_msc.h.
#define SCSI_READ_FORMAT_CAPACITIES 0x23 |
Definition at line 112 of file usbd_msc.h.
#define SCSI_REQUEST_SENSE 0x03 |
Definition at line 105 of file usbd_msc.h.
#define SCSI_START_STOP_UNIT 0x1B |
Definition at line 110 of file usbd_msc.h.
#define SCSI_TEST_UNIT_READY 0x00 |
Definition at line 104 of file usbd_msc.h.
#define SCSI_VERIFY10 0x2F |
Definition at line 116 of file usbd_msc.h.
#define SCSI_WRITE10 0x2A |
Definition at line 115 of file usbd_msc.h.
#define SCSI_WRITE12 0xAA |
Definition at line 118 of file usbd_msc.h.
uint32_t CALLBACK_UsbdMsc_Register_BlockCount | ( | void | ) |
uint32_t CALLBACK_UsbdMsc_Register_BlockSize | ( | void | ) |
uint32_t CALLBACK_UsbdMsc_Register_InquiryData | ( | void | ) |
uint32_t CALLBACK_UsbdMsc_Register_InterfaceDescriptor | ( | void | ) |
uint32_t CALLBACK_UsbdMsc_Register_MemorySize | ( | void | ) |
uint32_t CALLBACK_UsbdMsc_Register_MSCGetWriteBuf | ( | void | ) |
uint32_t CALLBACK_UsbdMsc_Register_MSCRead | ( | void | ) |
uint32_t CALLBACK_UsbdMsc_Register_MSCVerify | ( | void | ) |
uint32_t CALLBACK_UsbdMsc_Register_MSCWrite | ( | void | ) |