LowLevel.h File Reference

#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 "../HighLevel/USBInterrupt.h"
#include "Host.h"
#include "Pipe.h"
#include "OTG.h"
#include "Device.h"
#include "Endpoint.h"
#include "DevChapter9.h"
#include "../HighLevel/Events.h"
#include "../HighLevel/USBInterrupt.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

Generated by  doxygen 1.6.2