LUFA Library  120219
USBController_AVR8.h File Reference

USB Controller definitions for the AVR8 microcontrollers. More...

#include "../../../../Common/Common.h"
#include "../USBMode.h"
#include "../Events.h"
#include "../USBTask.h"
#include "../USBInterrupt.h"
#include "../Host.h"
#include "../OTG.h"
#include "../Pipe.h"
#include "../HostStandardReq.h"
#include "../PipeStream.h"
#include "../Device.h"
#include "../Endpoint.h"
#include "../DeviceStandardReq.h"
#include "../EndpointStream.h"

Defines

#define USB_STREAM_TIMEOUT_MS   100
USB Controller Option Masks
#define USB_OPT_REG_DISABLED   (1 << 1)
#define USB_OPT_REG_ENABLED   (0 << 1)
#define USB_OPT_MANUAL_PLL   (1 << 2)
#define USB_OPT_AUTO_PLL   (0 << 2)

Enumerations

enum  USB_Modes_t {
  USB_MODE_None = 0,
  USB_MODE_Device = 1,
  USB_MODE_Host = 2,
  USB_MODE_UID = 3,
  USB_MODE_None = 0,
  USB_MODE_Device = 1,
  USB_MODE_Host = 2,
  USB_MODE_UID = 3,
  USB_MODE_None = 0,
  USB_MODE_Device = 1
}

Functions

static bool USB_VBUS_GetStatus (void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE
static void USB_Detach (void) ATTR_ALWAYS_INLINE
static void USB_Attach (void) ATTR_ALWAYS_INLINE
void USB_Init (const uint8_t Mode, const uint8_t Options)
void USB_Disable (void)
void USB_ResetInterface (void)

Variables

volatile uint8_t USB_CurrentMode
volatile uint8_t USB_Options

Detailed Description

Functions, macros, variables, enums and types related to the setup and management of the USB interface.

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.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines