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

Go to the source code of this file.

Functions

void MS_Device_ProcessControlRequest (USB_ClassInfo_MS_Device_t *const MSInterfaceInfo)
 Processes incoming control requests from the host, that are directed to the given Mass Storage class interface. This should be linked to the library EVENT_USB_Device_ControlRequest() event.
 
bool MS_Device_ConfigureEndpoints (USB_ClassInfo_MS_Device_t *const MSInterfaceInfo)
 Configures the endpoints of a given Mass Storage interface, ready for use. This should be linked to the library EVENT_USB_Device_ConfigurationChanged() event so that the endpoints are configured when the configuration containing the given Mass Storage interface is selected.
 
void MS_Device_USBTask (USB_ClassInfo_MS_Device_t *const MSInterfaceInfo)
 General management task for a given Mass Storage class interface, required for the correct operation of the interface. This should be called frequently in the main program loop, before the master USB management task USB_USBTask().
 
static bool MS_Device_ReadInCommandBlock (USB_ClassInfo_MS_Device_t *const MSInterfaceInfo)
 
static void MS_Device_ReturnCommandStatus (USB_ClassInfo_MS_Device_t *const MSInterfaceInfo)
 

Function Documentation

static bool MS_Device_ReadInCommandBlock ( USB_ClassInfo_MS_Device_t *const  MSInterfaceInfo)
static

Definition at line 164 of file MassStorageClassDevice.c.

static void MS_Device_ReturnCommandStatus ( USB_ClassInfo_MS_Device_t *const  MSInterfaceInfo)
static

Definition at line 206 of file MassStorageClassDevice.c.