LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
MassStorage_freertos.c File Reference

Go to the source code of this file.

Functions

static void usb_msdev_func (void)
 
static void usb_msdev_task (void *arg)
 
void USBDEV_Init (void)
 USB Device example initialization.
 
void EVENT_USB_Device_Connect (void)
 USB Device connect event callback.
 
void EVENT_USB_Device_Disconnect (void)
 USB Device disconnect event callback.
 
void EVENT_USB_Device_ConfigurationChanged (void)
 USB Device configuration change event callback.
 
void EVENT_USB_Device_ControlRequest (void)
 USB Device control request receive event callback.
 
bool CALLBACK_MS_Device_SCSICommandReceived (USB_ClassInfo_MS_Device_t *const MSInterfaceInfo)
 Mass Storage class driver callback function.
 
void EVENT_USB_Device_TransferComplete (int logicalEP, int xfer_in)
 Mass Storage class device stack transfer complete callback.
 
void usb_device_tasks (void)
 Dual Core USB device task.
 

Variables

static USB_ClassInfo_MS_Device_t Disk_MS_Interface
 
static xSemaphoreHandle usb_dev_event
 

Function Documentation

void EVENT_USB_Device_TransferComplete ( int  logicalEP,
int  xfer_in 
)

Mass Storage class device stack transfer complete callback.

Parameters
logicalEP: Logical Endpoint number causing the event
xfer_in: 1 if event is IN, 0 when event is OUT
Returns
None Mass Storage class driver callback function for the reception or completion of any transfers.
Parameters
[in]logicalEPLogical Endpoint number causing the event
[in]xfer_in1 if event is IN, 0 when event is OUT
Returns
None

Definition at line 149 of file MassStorage_freertos.c.

static void usb_msdev_func ( void  )
static

Main program entry point. This routine contains the overall program flow, including initial setup of all components and the main program loop.

Definition at line 66 of file MassStorage_freertos.c.

static void usb_msdev_task ( void *  arg)
static

Definition at line 75 of file MassStorage_freertos.c.

Variable Documentation

USB_ClassInfo_MS_Device_t Disk_MS_Interface
static
Initial value:
= {
.Config = {
.InterfaceNumber = 0,
.DataINEndpointNumber = MASS_STORAGE_IN_EPNUM,
.DataINEndpointSize = MASS_STORAGE_IO_EPSIZE,
.DataINEndpointDoubleBank = false,
.DataOUTEndpointNumber = MASS_STORAGE_OUT_EPNUM,
.DataOUTEndpointSize = MASS_STORAGE_IO_EPSIZE,
.DataOUTEndpointDoubleBank = false,
.TotalLUNs = TOTAL_LUNS,
},
}

nxpUSBlib Mass Storage Class driver interface configuration and state information. This structure is passed to all Mass Storage Class driver functions, so that multiple instances of the same class within a device can be differentiated from one another.

Definition at line 45 of file MassStorage_freertos.c.

xSemaphoreHandle usb_dev_event
static

Definition at line 61 of file MassStorage_freertos.c.