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

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

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.


Generated on Thu Jul 31 09:24:15 2008 for MyUSB Library by  doxygen 1.5.5