usb.h File Reference

Definition of global compile time configuration options. More...

Detailed Description

Definition of global compile time configuration options.

Author
Koen Zandberg koen@.nosp@m.berg.nosp@m.zand..nosp@m.net

Definition in file usb.h.

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define USB_CONFIG_VID
 USB peripheral device vendor ID. More...
 
#define USB_CONFIG_PID
 USB peripheral device product ID. More...
 
#define USB_CONFIG_MANUF_STR   "RIOT-os.org"
 USB peripheral manufacturer string.
 
#define USB_CONFIG_PRODUCT_STR   "USB device"
 USB peripheral product string.
 
#define USB_CONFIG_CONFIGURATION_STR   "USB config"
 USB peripheral configuration string.
 
#define USB_CONFIG_PRODUCT_BCDVERSION   0x0100
 USB peripheral device version. More...
 
#define USB_CONFIG_SPEC_BCDVERSION   0x0200
 USB specification version.
 
#define USB_CONFIG_SELF_POWERED   (0)
 USB peripheral setting to indicate self powered devices.
 
#define USB_CONFIG_MAX_POWER   (100)
 USB device max power draw in mA, between 0 and 500mA.
 
#define USB_CONFIG_DEFAULT_LANGID   0x0409 /* EN-US */
 Default LANG ID reported to the host.
 

Enumerations

enum  usb_version_t { USB_VERSION_1x, USB_VERSION_20 }
 USB version definitions.
 
enum  usb_speed_t { USB_SPEED_LOW, USB_SPEED_FULL, USB_SPEED_HIGH }
 USB speed definitions.
 
enum  usb_ep_type_t {
  USB_EP_TYPE_NONE = 0, USB_EP_TYPE_CONTROL, USB_EP_TYPE_INTERRUPT, USB_EP_TYPE_BULK,
  USB_EP_TYPE_ISOCHRONOUS
}
 USB endpoint types. More...
 
enum  usb_ep_dir_t { USB_EP_DIR_OUT, USB_EP_DIR_IN }
 USB endpoint directions. More...