| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
Main definitions
Mass Storage Device | Mass Storage Device | Mass Storage Device

## Detailed Description

## Macros
#define | LEDMASK_USB_NOTREADY LEDS_LED1
#define | LEDMASK_USB_ENUMERATING (LEDS_LED2 | LEDS_LED3)
#define | LEDMASK_USB_READY (LEDS_LED2 | LEDS_LED4)
#define | LEDMASK_USB_ERROR (LEDS_LED1 | LEDS_LED3)
#define | LEDMASK_USB_BUSY LEDS_LED2
#define | TOTAL_LUNS 1
#define | LUN_MEDIA_BLOCKS (VIRTUAL_MEMORY_BLOCKS / TOTAL_LUNS)
#define | DISK_READ_ONLY false

## Macro Definition Documentation

#define DISK_READ_ONLY false

Indicates if the disk is write protected or not.

Definition at line 220 of file MassStorage.h.

#define LEDMASK_USB_BUSY LEDS_LED2

LED mask for the library LED driver, to indicate that the USB interface is busy.

Definition at line 208 of file MassStorage.h.

#define LEDMASK_USB_ENUMERATING (LEDS_LED2 | LEDS_LED3)

LED mask for the library LED driver, to indicate that the USB interface is enumerating.

Definition at line 199 of file MassStorage.h.

#define LEDMASK_USB_ERROR (LEDS_LED1 | LEDS_LED3)

LED mask for the library LED driver, to indicate that an error has occurred in the USB interface.

Definition at line 205 of file MassStorage.h.

#define LEDMASK_USB_NOTREADY LEDS_LED1

LED mask for the library LED driver, to indicate that the USB interface is not ready.

Definition at line 196 of file MassStorage.h.

#define LEDMASK_USB_READY (LEDS_LED2 | LEDS_LED4)

LED mask for the library LED driver, to indicate that the USB interface is ready.

Definition at line 202 of file MassStorage.h.

#define LUN_MEDIA_BLOCKS (VIRTUAL_MEMORY_BLOCKS / TOTAL_LUNS)

Blocks in each LUN, calculated from the total capacity divided by the total number of Logical Units in the device.

Definition at line 217 of file MassStorage.h.

#define TOTAL_LUNS 1

Total number of logical drives within the device - must be non-zero.

Definition at line 211 of file MassStorage.h.