OTG operating modes configuration
[USB application configuration]

Collaboration diagram for OTG operating modes configuration:

defines to enable device or host usb operating modes supported by the application More...

Defines

#define USB_OTG_FEATURE   ENABLED
 ENABLE to enable OTG module (support A- and B- Device roles).
#define OTG_VBUS_AUTO_WHEN_A_PLUG   DISABLED
 Selects the general Vbus delivery mode : insertion OR usage based.
#define OTG_MESSAGING_OUTPUT   OTGMSG_FAIL
 Selects the messaging method for OTG No Silent Failure spec.
#define OTG_USE_TIMER   TIMER16_1
 Timer selection for OTG timings requirements.
#define USE_TIMER16   BOTH_TIMER16
 Possible values : OTG_USE_TIMER (if no more timer needed), or BOTH_TIMER16 (if user application uses another timer).
#define OTG_ENABLE_HNP_AFTER_SRP   ENABLED
 ENABLE to make the A-Device send a SetFeature(b_hnp_enable) just after a SRP has been received.
#define OTG_ADEV_SRP_REACTION   VBUS_PULSE
 Selects the SRP pulse for which the A Device will react and rise Vbus.

Detailed Description

defines to enable device or host usb operating modes supported by the application


Define Documentation

#define USB_OTG_FEATURE   ENABLED

ENABLE to enable OTG module (support A- and B- Device roles).

Possible values ENABLE or DISABLE

Definition at line 34 of file conf_usb.h.

Referenced by usb_host_task(), and usb_set_feature().

#define OTG_VBUS_AUTO_WHEN_A_PLUG   DISABLED

Selects the general Vbus delivery mode : insertion OR usage based.

Possible values are : ENABLE for an application that never release Vbus when A-plug inserted DISABLE for an application where Vbus is delivered after a SRP or user request

Definition at line 40 of file conf_usb.h.

Referenced by usb_host_task().

#define OTG_MESSAGING_OUTPUT   OTGMSG_FAIL

Selects the messaging method for OTG No Silent Failure spec.

A compliant OTG device must at least handle 3 Failure messages : "Device No Response", "Unsupported Device" and "Unsupported Hub" Functions must be defined for communicating messages to user (LCD display, LEDs...) The values available for this parameter are :

Definition at line 60 of file conf_usb.h.

#define OTG_USE_TIMER   TIMER16_1

Timer selection for OTG timings requirements.

Possible values TIMER16_1 or TIMER16_3

Definition at line 65 of file conf_usb.h.

Referenced by otg_timer_interrupt(), and usb_general_interrupt().

#define USE_TIMER16   BOTH_TIMER16

Possible values : OTG_USE_TIMER (if no more timer needed), or BOTH_TIMER16 (if user application uses another timer).

Definition at line 67 of file conf_usb.h.

#define OTG_ENABLE_HNP_AFTER_SRP   ENABLED

ENABLE to make the A-Device send a SetFeature(b_hnp_enable) just after a SRP has been received.

This feature must be ENABLED to pass the OTG compliance program Possible values ENABLE or DISABLE

Definition at line 73 of file conf_usb.h.

Referenced by usb_host_task().

#define OTG_ADEV_SRP_REACTION   VBUS_PULSE

Selects the SRP pulse for which the A Device will react and rise Vbus.

The value is VBUS_PULSE or DATA_PULSE

Definition at line 78 of file conf_usb.h.


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