LowLevel.h File Reference

USB low level USB controller definitions. More...

#include <avr/io.h>
#include <avr/interrupt.h>
#include <stdbool.h>
#include "../HighLevel/USBMode.h"
#include "../../../Common/Common.h"
#include "../HighLevel/Events.h"
#include "../HighLevel/USBTask.h"
#include "USBInterrupt.h"
#include "Host.h"
#include <util/delay.h>
#include "../HighLevel/StdDescriptors.h"
#include "Pipe.h"
#include <avr/pgmspace.h>
#include <avr/eeprom.h>
#include "Endpoint.h"
#include <avr/boot.h>
#include <util/atomic.h>
#include "../HighLevel/StdRequestType.h"

Defines

#define USB_MODE_NONE   0
#define USB_MODE_DEVICE   1
#define USB_MODE_HOST   2
#define USB_MODE_UID   3
#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)
#define EP_TYPE_CONTROL   0x00
#define EP_TYPE_ISOCHRONOUS   0x01
#define EP_TYPE_BULK   0x02
#define EP_TYPE_INTERRUPT   0x03
#define USB_VBUS_GetStatus()   ((USBSTA & (1 << VBUS)) ? true : false)
#define USB_Detach()   MACROS{ UDCON |= (1 << DETACH); }MACROE
#define USB_Attach()   MACROS{ UDCON &= ~(1 << DETACH); }MACROE
#define USB_STREAM_TIMEOUT_MS   100

Enumerations

enum  USB_InitErrorCodes_t { USB_INITERROR_NoUSBModeSpecified = 0 }

Functions

void USB_Init (const uint8_t Mode, const uint8_t Options)
void USB_ShutDown (void)
void USB_ResetInterface (void)

Variables

volatile uint8_t USB_CurrentMode
volatile uint8_t USB_Options

Detailed Description

This file contains structures, function prototypes and macros related to the low level configutation of the USB controller, to start, stop and reset the USB library core.

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.
Generated by  doxygen 1.6.3