LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
MassStorage.c File Reference
#include "MassStorage.h"

Go to the source code of this file.

Functions

static void SetupHardware (void)
 
int main (void)
 Main program entry point.
 
void EVENT_USB_Device_Connect (void)
 Event handler for the library USB Connection event.
 
void EVENT_USB_Device_Disconnect (void)
 Event handler for the library USB Disconnection event.
 
void EVENT_USB_Device_ConfigurationChanged (void)
 Event handler for the library USB Configuration Changed event.
 
void EVENT_USB_Device_ControlRequest (void)
 Event handler for the library USB Control Request reception event.
 
bool CALLBACK_MS_Device_SCSICommandReceived (USB_ClassInfo_MS_Device_t *const MSInterfaceInfo)
 Mass Storage class driver callback function.
 

Variables

static USB_ClassInfo_MS_Device_t Disk_MS_Interface
 

Function Documentation

static void SetupHardware ( void  )
static

Definition at line 123 of file MassStorage.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,
.PortNumber = 0,
},
}

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 49 of file MassStorage.c.