Enumerations | Functions

Device.h File Reference

USB device mode definitions. More...

#include <avr/io.h>
#include <avr/pgmspace.h>
#include <avr/eeprom.h>
#include "../../../Common/Common.h"
#include "../HighLevel/StdDescriptors.h"
#include "USBInterrupt.h"
#include "Endpoint.h"

Defines

USB Device Mode Option Masks
#define USB_DEVICE_OPT_LOWSPEED   (1 << 0)
#define USB_DEVICE_OPT_FULLSPEED   (0 << 0)

Enumerations

enum  USB_Device_States_t {
  DEVICE_STATE_Unattached = 0,
  DEVICE_STATE_Powered = 1,
  DEVICE_STATE_Default = 2,
  DEVICE_STATE_Addressed = 3,
  DEVICE_STATE_Configured = 4,
  DEVICE_STATE_Suspended = 5
}

Functions

void USB_Device_SendRemoteWakeup (void)
static uint16_t USB_Device_GetFrameNumber (void)
static void USB_Device_EnableSOFEvents (void) ATTR_ALWAYS_INLINE
static void USB_Device_DisableSOFEvents (void) ATTR_ALWAYS_INLINE
uint16_t CALLBACK_USB_GetDescriptor (const uint16_t wValue, const uint8_t wIndex, const void **const DescriptorAddress, uint8_t *MemoryAddressSpace) ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(3)

Detailed Description

This file contains structures, function prototypes and macros related to USB device mode.

Note:
This file should not be included directly. It is automatically included as needed by the USB driver dispatch header located in LUFA/Drivers/USB/USB.h.