#include <avr/io.h>
#include <avr/pgmspace.h>
#include <avr/eeprom.h>
#include "../HighLevel/StdDescriptors.h"
#include "../HighLevel/Events.h"
#include "LowLevel.h"
#include "StdRequestType.h"
Functions | |
RAISES_EVENT (USB_UnhandledControlPacket) | |
RAISES_EVENT (USB_ConfigurationChanged) | |
RAISES_EVENT (USB_DeviceEnumerationComplete) | |
Variables | |
uint8_t | USB_ConfigurationNumber |
bool | USB_RemoteWakeupEnabled |
bool | USB_CurrentlySelfPowered |
RAISES_EVENT | ( | USB_DeviceEnumerationComplete | ) |
This module raises the USB_DeviceEnumerationComplete event when the host has completed its enumeration of the device (i.e. when a REQ_SetConfiguration request changes the current configuration number from 0 to a non-zero value).
RAISES_EVENT | ( | USB_ConfigurationChanged | ) |
This module raises the USB_ConfigurationChanged event when the host issues a REQ_SetConfiguration device request, to change the currently selected configuration number.
RAISES_EVENT | ( | USB_UnhandledControlPacket | ) |
This module raises the USB_UnhandledControlPacket event when a request to the default control endpoint has been received, but the library does not implement an internal handler for it.
uint8_t USB_ConfigurationNumber |
Indicates the currently set configuration number of the device. USB devices may have several different configurations which the host can select between; this indicates the currently selected value, or 0 if no configuration has been selected.
If a device has only one single configuration, the token USE_SINGLE_DEVICE_CONFIGURATION may be defined in the project makefile and passed to the compiler using the -D switch. This optimize for a single configuration, saving a small amount of space in the resulting compiled binary.
Indicates if the device is currently being powered by its own power supply, rather than being powered by the host's USB supply. This flag should remain cleared if the device does not support self powered mode, as indicated in the device descriptors.
Indicates if the host is currently allowing the device to issue remote wakeup events. If this flag is cleared, the device should not issue remote wakeup events to the host.