USB host operating mode configuration
[USB application configuration]

Collaboration diagram for USB host operating mode configuration:


Modules

 USB host custom actions

Defines

#define HID_CLASS   0x03
#define MS_CLASS   0x08
#define VID_PID_TABLE
 VID/PID supported table list.
#define CLASS_SUBCLASS_PROTOCOL
 CLASS/SUBCLASS_PROTOCOL supported table list.
#define SIZEOF_DATA_STAGE   250
 The size of RAM buffer reserved of descriptors manipulation.
#define DEVICE_ADDRESS   0x05
 The address that will be assigned to the connected device.
#define HOST_STRICT_VID_PID_TABLE   DISABLE
 The host controller will be limited to the strict VID/PID list.
#define HOST_AUTO_CFG_ENDPOINT   ENABLE
 Try to configure the host pipe according to the device descriptors received.
#define HOST_CONTINUOUS_SOF_INTERRUPT   DISABLE
 Host start of frame interrupt always enable.
#define HOST_ERROR_RESTART   ENABLE
 When Host error state detected, goto unattached state.
#define ID_PIN_CHANGE_GENERATE_RESET   DISABLE
 Force WDT reset upon ID pin change.
#define NAK_TIMEOUT_DELAY   1
 NAK handshake in 1/4sec (250ms) before timeout.
#define User_configure_endpoint()
 If no auto configuration of EP, map here user function.

Functions

void host_suspend_action (void)

Define Documentation

#define HID_CLASS   0x03
 

Definition at line 61 of file conf_usb.h.

#define MS_CLASS   0x08
 

Definition at line 62 of file conf_usb.h.

#define VID_PID_TABLE
 

Value:

{0x03EB, 2, 0x201C, 0x2014 \
                                    ,0x0123, 3, 0x2000, 0x2100, 0x1258}
VID/PID supported table list.

This table contains the VID/PID that are supported by the reduced host application VID_PID_TABLE format definition:

define VID_PID_TABLE {VID1, number_of_pid_for_this_VID1, PID11_value,..., PID1X_Value
...
,VIDz, number_of_pid_for_this_VIDz, PIDz1_value,..., PIDzX_Value}

Definition at line 72 of file conf_usb.h.

#define CLASS_SUBCLASS_PROTOCOL
 

Value:

{0x0A, 0x00, 0x00, \
                                       0x00, 0x00, 0x00,\
                                       0xFF,0x00,0x00}
CLASS/SUBCLASS_PROTOCOL supported table list.

This table contains the CLASS/SUBCLASS/PROTOCOL that is supported by the reduced host application This table definition allows to extended the reduced application device support to an entire Class/ /subclass/protocol instead of a simple VID/PID table list.

CLASS_SUBCLASS_PROTOCOL format definition:
define CLASS_SUBCLASS_PROTOCOL {CLASS1, SUB_CLASS1,PROTOCOL1,
...
CLASSz, SUB_CLASSz,PROTOCOLz}

Definition at line 85 of file conf_usb.h.

#define SIZEOF_DATA_STAGE   250
 

The size of RAM buffer reserved of descriptors manipulation.

Definition at line 90 of file conf_usb.h.

#define DEVICE_ADDRESS   0x05
 

The address that will be assigned to the connected device.

Definition at line 93 of file conf_usb.h.

#define HOST_STRICT_VID_PID_TABLE   DISABLE
 

The host controller will be limited to the strict VID/PID list.

When enabled, if the device PID/VID does not belongs to the supported list, the host controller library will not go to deeper configuration, but to error state.

Definition at line 98 of file conf_usb.h.

#define HOST_AUTO_CFG_ENDPOINT   ENABLE
 

Try to configure the host pipe according to the device descriptors received.

Definition at line 101 of file conf_usb.h.

#define HOST_CONTINUOUS_SOF_INTERRUPT   DISABLE
 

Host start of frame interrupt always enable.

Definition at line 104 of file conf_usb.h.

#define HOST_ERROR_RESTART   ENABLE
 

When Host error state detected, goto unattached state.

Definition at line 107 of file conf_usb.h.

#define ID_PIN_CHANGE_GENERATE_RESET   DISABLE
 

Force WDT reset upon ID pin change.

Definition at line 110 of file conf_usb.h.

#define NAK_TIMEOUT_DELAY   1
 

NAK handshake in 1/4sec (250ms) before timeout.

Definition at line 113 of file conf_usb.h.

 
#define User_configure_endpoint  ) 
 

If no auto configuration of EP, map here user function.

Definition at line 117 of file conf_usb.h.


Function Documentation

void host_suspend_action void   ) 
 

Definition at line 403 of file usb_task.c.

00404 {
00405    //Enter_power_down_mode();
00406 }


Generated on Fri Mar 17 16:02:11 2006 for Atmel by  doxygen 1.4.6-NO