usb_standard_request.h File Reference

,v More...

#include "modules/usb/usb_task.h"
#include "usb_descriptors.h"

Include dependency graph for usb_standard_request.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define ATTACHED   0
#define POWERED   1
#define DEFAULT   2
#define ADDRESSED   3
#define CONFIGURED   4
#define SUSPENDED   5
#define USB_CONFIG_ATTRIBUTES_RESERVED   0x80
#define USB_CONFIG_BUSPOWERED   (USB_CONFIG_ATTRIBUTES_RESERVED | 0x00)
#define USB_CONFIG_SELFPOWERED   (USB_CONFIG_ATTRIBUTES_RESERVED | 0x40)
#define USB_CONFIG_REMOTEWAKEUP   (USB_CONFIG_ATTRIBUTES_RESERVED | 0x20)
#define USB_REMOTE_WAKEUP   1
#define OTG_B_HNP_ENABLE   3
#define OTG_A_HNP_SUPPORT   4
#define OTG_A_ALT_HNP_SUPPORT   5
#define Is_device_enumerated()   ((usb_configuration_nb!=0) ? TRUE : FALSE)
 Returns true when device connected and correctly enumerated with an host.
#define Is_device_not_enumerated()   ((usb_configuration_nb!=0) ? FALSE : TRUE)
#define Is_host_supports_hnp()   (((otg_features_supported&OTG_A_HNP_SUPPORT) != 0) ? TRUE : FALSE)
 Returns the OTG features sent by the host by a SetFeature Allow also to clear the features (only on a bus Reset or Session End).
#define Is_host_requested_hnp()   (((otg_features_supported&OTG_B_HNP_ENABLE) != 0) ? TRUE : FALSE)
#define Clear_otg_features_from_host()   (otg_features_supported = 0)

Functions

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

Variables

U8 usb_configuration_nb
 Public : (U8) usb_configuration_nb Store the number of the USB configuration used by the USB device when its value is different from zero, it means the device mode is enumerated Used with USB_DEVICE_FEATURE == ENABLED only /.
U8 otg_device_nb_hnp_retry
 Public : (U8) otg_device_nb_hnp_retry; Counts the number of times a HNP fails, before aborting the operations.


Detailed Description

,v

Copyright (c) 2004 Atmel.

Use of this program is subject to Atmel's End User License Agreement. Please read file license.txt for copyright notice.

USB device enumeration requests header file.

This file contains the USB endpoint 0 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.

Version:
1.5 at90usb128-otg-dual_role-toggle-1_0_0
Id
usb_standard_request.h,v 1.5 2007/02/13 10:18:44 arobert Exp
Todo:
Bug:

Definition in file usb_standard_request.h.


Generated on Mon Feb 19 09:32:08 2007 for Atmel by  doxygen 1.5.1-p1