- Main Page
- Modules
- Data Structures
- Files
- Related Pages

# usb_host_enum.c File Reference

`#include "config.h"`
`#include "conf_usb.h"`
`#include "lib_mcu/usb/usb_drv.h"`
`#include "usb_host_enum.h"`
`#include "modules/usb/usb_task.h"`
`#include "usb_host_task.h"`

Include dependency graph for usb_host_enum.c:

Go to the source code of this file.

## Defines
#define | SAVE_INTERRUPT_PIPE_FOR_DMS_INTERFACE ENABLE
## Functions
U8 | host_check_VID_PID (void)
| host_check_VID_PID
U8 | host_check_class (void)
| host_check_class
U8 | host_auto_configure_endpoint ()
U8 | get_interface_descriptor_offset (U8 interface, U8 alt)
| get_interface_descriptor_offset
U8 | host_get_hwd_pipe_nb (U8 ep_addr)
U8 | host_send_control (U8 *data_pointer)
| host_send_control.
void | init_usb_tree (void)
| init_usb_tree
void | remove_device_entry (U8 device_index)
| remove_device_entry
void | freeze_user_periodic_pipe (void)
void | unfreeze_user_periodic_pipe (void)
void | host_select_device (U8 i)
## Variables
S_usb_setup_data | usb_request
| For control requests management over pipe 0.
U16 | registered_VID_PID [] = VID_PID_TABLE
| Const table of known devices (see conf_usb.h for table content).
U8 | registered_class [] = CLASS_SUBCLASS_PROTOCOL
| Const table of known class (see conf_usb.h for table content).
S_usb_tree | usb_tree
| The main structure that represents the usb tree connected to the host controller.
U8 | user_periodic_pipe = 0
U8 | user_periodic_pipe_freeze_state = 0
U8 | user_periodic_pipe_device_index = 0
U8 | selected_device = 0

## Detailed Description

This file manages the host enumeration process.

- Compiler: IAR EWAVR and GNU GCC for AVR
- Supported devices: AT90USB1287, AT90USB1286, AT90USB647, AT90USB646

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

Definition in file usb_host_enum.c.

## Define Documentation

#define SAVE_INTERRUPT_PIPE_FOR_DMS_INTERFACE ENABLE

Definition at line 63 of file usb_host_enum.c.

## Variable Documentation

S_usb_setup_data usb_request

For control requests management over pipe 0.

Definition at line 155 of file usb_host_task.c.

U16 registered_VID_PID[] = VID_PID_TABLE

Const table of known devices (see conf_usb.h for table content).

Definition at line 91 of file usb_host_enum.c.

Referenced by host_check_VID_PID().

U8 registered_class[] = CLASS_SUBCLASS_PROTOCOL

Const table of known class (see conf_usb.h for table content).

Definition at line 94 of file usb_host_enum.c.

Referenced by host_check_class().

U8 user_periodic_pipe_freeze_state = 0

Definition at line 101 of file usb_host_enum.c.

Referenced by freeze_user_periodic_pipe(), and unfreeze_user_periodic_pipe().

U8 user_periodic_pipe_device_index = 0

Definition at line 102 of file usb_host_enum.c.

Referenced by host_auto_configure_endpoint(), init_usb_tree(), and unfreeze_user_periodic_pipe().