usb_standard_request.h File Reference


Detailed Description

Processing of USB device enumeration requests.

This file contains the USB control endpoint management routines corresponding to the standard enumeration process (refer to chapter 9 of the USB specification). This file calls routines of the usb_specific_request.c file for non-standard request management. The enumeration parameters (descriptor tables) are contained in the usb_descriptors.c file.

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file usb_standard_request.h.

#include "conf_usb.h"
#include "usb_task.h"
#include "usb_descriptors.h"

Go to the source code of this file.

Defines

#define ADDRESSED   3
#define ATTACHED   0
#define CONFIGURED   4
#define DEFAULT   2
#define Is_device_enumerated()   (usb_configuration_nb != 0)
 Returns TRUE when device connected and correctly enumerated with a host.
#define POWERED   1
#define SUSPENDED   5
#define USB_CONFIG_ATTRIBUTES_RESERVED   0x80
#define USB_CONFIG_BUSPOWERED   (USB_CONFIG_ATTRIBUTES_RESERVED | 0x00)
#define USB_CONFIG_REMOTEWAKEUP   (USB_CONFIG_ATTRIBUTES_RESERVED | 0x20)
#define USB_CONFIG_SELFPOWERED   (USB_CONFIG_ATTRIBUTES_RESERVED | 0x40)

Functions

void usb_process_request (void)
 This function reads the SETUP request sent to the default control endpoint and calls the appropriate function.

Variables

volatile U8 usb_configuration_nb


Generated on Fri Feb 19 02:27:51 2010 for AVR32 - USB Enumeration Example by  doxygen 1.5.5