LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
SCSI.h File Reference
#include "board.h"
#include "DataRam.h"
#include "USB.h"
#include "../MassStorage.h"
#include "../Descriptors.h"

Go to the source code of this file.

Macros

#define SCSI_SET_SENSE(Key, Acode, Aqual)
 
#define DATA_READ   true
 
#define DATA_WRITE   false
 
#define DEVICE_TYPE_BLOCK   0x00
 
#define DEVICE_TYPE_CDROM   0x05
 

Functions

bool SCSI_DecodeSCSICommand (USB_ClassInfo_MS_Device_t *const MSInterfaceInfo)
 Main routine to process the SCSI command located in the Command Block Wrapper read from the host. This dispatches to the appropriate SCSI command handling routine if the issued command is supported by the device, else it returns a command failure due to a ILLEGAL REQUEST.