| 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
USB Mode Tokens
USB Core - software/LPCUSBLib/Drivers/USB/USB.h

## Detailed Description

USB mode and feature support definitions.

This file defines macros indicating the type of USB controller the library is being compiled for, and its capabilities. These macros may then be referenced in the user application to selectively enable or disable code sections depending on if they are defined or not.

After the inclusion of the master USB driver header, one or more of the following tokens may be defined, to allow the user code to conditionally enable or disable code based on the USB controller family and allowable USB modes. These tokens may be tested against to eliminate code relating to a USB mode which is not enabled for the given compilation.

## Macros
#define | USB_CAN_BE_DEVICE
#define | USB_CAN_BE_HOST
#define | USB_CAN_BE_BOTH

## Macro Definition Documentation

#define USB_CAN_BE_BOTH

Indicates that the target microcontroller and compilation settings allow for the target to be configured in either USB Device or Host mode when defined.

Definition at line 80 of file USBMode.h.

#define USB_CAN_BE_DEVICE

Indicates that the target microcontroller and compilation settings allow for the target to be configured in USB Device mode when defined.

Definition at line 70 of file USBMode.h.

#define USB_CAN_BE_HOST

Indicates that the target microcontroller and compilation settings allow for the target to be configured in USB Host mode when defined.

Definition at line 75 of file USBMode.h.