DevChapter9.h File Reference

#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

Detailed Description

Module for device mode request processing. This module allows for the processing of standard control requests to the default control endpoint while in device mode.

See also:
Chapter 9 of the USB 2.0 specification.

Function Documentation

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).

See also:
Events.h for more information on this event.

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.

See also:
Events.h for more information on this event.

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.

See also:
Events.h for more information on this event.


Variable Documentation

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.

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

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.

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


Generated on Thu Oct 2 18:01:17 2008 for MyUSB Library by  doxygen 1.5.5