LUFA Library  120219
USB Mode Tokens

USB mode and feature support definitions. More...

Defines

#define USB_SERIES_2_AVR
#define USB_SERIES_4_AVR
#define USB_SERIES_6_AVR
#define USB_SERIES_7_AVR
#define USB_SERIES_UC3A0_AVR
#define USB_SERIES_UC3A1_AVR
#define USB_SERIES_UC3A3_AVR
#define USB_SERIES_UC3B0_AVR
#define USB_SERIES_UC3B1_AVR
#define USB_SERIES_A1U_XMEGA
#define USB_SERIES_A3U_XMEGA
#define USB_SERIES_A4U_XMEGA
#define USB_SERIES_B1_XMEGA
#define USB_SERIES_B3_XMEGA
#define USB_CAN_BE_DEVICE
#define USB_CAN_BE_HOST
#define USB_CAN_BE_BOTH

Detailed Description

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.


Define 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.

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

#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.

Indicates that the target AVR microcontroller belongs to the Series 2 AVR8 USB controller (i.e. AT90USBxxx2 or ATMEGAxxU2) when defined.

Indicates that the target AVR microcontroller belongs to the Series 4 AVR8 USB controller (i.e. ATMEGAxxU4) when defined.

Indicates that the target AVR microcontroller belongs to the Series 6 AVR8 USB controller (i.e. AT90USBxxx6) when defined.

Indicates that the target AVR microcontroller belongs to the Series 7 AVR8 USB controller (i.e. AT90USBxxx7) when defined.

Indicates that the target AVR microcontroller belongs to the XMEGA A1U Series USB controller (i.e. ATXMEGA*A1U) when defined.

Indicates that the target AVR microcontroller belongs to the XMEGA A3U Series USB controller (i.e. ATXMEGA*A3U) when defined.

Indicates that the target AVR microcontroller belongs to the XMEGA A4U Series USB controller (i.e. ATXMEGA*A4U) when defined.

Indicates that the target AVR microcontroller belongs to the XMEGA B1 Series USB controller (i.e. ATXMEGA*B1) when defined.

Indicates that the target AVR microcontroller belongs to the XMEGA B3 Series USB controller (i.e. ATXMEGA*B3) when defined.

Indicates that the target AVR microcontroller belongs to the AVR32 UC3A0 Series USB controller (i.e. AT32UC3A0*) when defined.

Indicates that the target AVR microcontroller belongs to the AVR32 UC3A1 Series USB controller (i.e. AT32UC3A1*) when defined.

Indicates that the target AVR microcontroller belongs to the AVR32 UC3A3 Series USB controller (i.e. AT32UC3A3*) when defined.

Indicates that the target AVR microcontroller belongs to the AVR32 UC3B0 Series USB controller (i.e. AT32UC3B0*) when defined.

Indicates that the target AVR microcontroller belongs to the AVR32 UC3B1 Series USB controller (i.e. AT32UC3B1*) when defined.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines