Macros | Functions | Variables
usbdmsc.c File Reference
#include <stdbool.h>
#include <stdint.h>
#include "ti/devices/msp432e4/driverlib/driverlib.h"
#include "ti/usblib/msp432e4/usblib.h"
#include "ti/usblib/msp432e4/usblibpriv.h"
#include "ti/usblib/msp432e4/usbmsc.h"
#include "usbdevice.h"
#include "usbdmsc.h"

Macros

#define USBD_FLAG_DMA_IN   0x00000001
 
#define USBD_FLAG_DMA_OUT   0x00000002
 
#define USBD_FLAG_ALLOW_REMOVAL   0x00000004
 
#define USB_RX_ERROR_FLAGS
 
#define USB_MSC_SUBCLASS_SCSI   0x6
 
#define USB_MSC_PROTO_BULKONLY   0x50
 
#define DATA_IN_ENDPOINT   USB_EP_1
 
#define DATA_OUT_ENDPOINT   USB_EP_1
 
#define DATA_IN_EP_MAX_SIZE   64
 
#define DATA_OUT_EP_MAX_SIZE   64
 
#define COMMAND_BUFFER_SIZE   64
 
#define STATE_SCSI_IDLE   0x00
 
#define STATE_SCSI_SEND_BLOCKS   0x01
 
#define STATE_SCSI_RECEIVE_BLOCKS   0x02
 
#define STATE_SCSI_SEND_STATUS   0x03
 
#define STATE_SCSI_SENT_STATUS   0x04
 
#define NUM_MSC_SECTIONS
 

Functions

uint32_t USBDSCSICommand (tUSBDMSCDevice *psMSCDevice, tMSCCBW *psSCSICBW)
 
void USBDMSCMediaChange (void *pvMSCDevice, tUSBDMSCMediaStatus iMediaStatus)
 
void * USBDMSCInit (uint32_t ui32Index, tUSBDMSCDevice *psMSCDevice)
 
void * USBDMSCCompositeInit (uint32_t ui32Index, tUSBDMSCDevice *psMSCDevice, tCompositeEntry *psCompEntry)
 
void USBDMSCTerm (void *pvMSCDevice)
 

Variables

const uint8_t g_pui8MSCInterface [MSCINTERFACE_SIZE]
 
const tConfigSection g_sMSCConfigSection
 
const tConfigSection g_sMSCInterfaceSection
 
const tConfigSectiong_psMSCSections []
 
const tConfigHeader g_sMSCConfigHeader
 
const tConfigHeader *const g_ppsMSCConfigDescriptors []
 
const tCustomHandlers g_sMSCHandlers
 
Copyright 2017, Texas Instruments Incorporated