LowLevel.c File Reference

#include "USBMode.h"
#include "LowLevel.h"

Functions

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

Variables

volatile uint8_t USB_CurrentMode = USB_MODE_NONE
volatile uint8_t USB_Options

Function Documentation

void USB_Init ( const uint8_t  Options  ) 

void USB_ResetInterface ( void   ) 

Resets the interface, when already initialized. This will re-enumerate the device if already connected to a host, or re-enumerate an already attached device when in host mode.

void USB_ShutDown ( void   ) 

Shuts down the USB interface. This turns off the USB interface after deallocating all USB FIFO memory, endpoints and pipes. When turned off, no USB functionality can be used until the interface is restarted with the USB_Init() function.


Variable Documentation

volatile uint8_t USB_CurrentMode = USB_MODE_NONE

Indicates the mode that the USB interface is currently initialized to. This value will be one of the USB_MODE_* masks defined elsewhere in this module.

Note:
This variable should be treated as read-only in the user application, and never manually changed in value.

volatile uint8_t USB_Options


Generated on Mon Feb 9 20:19:00 2009 for LUFA Library by  doxygen 1.5.7.1