Atmel Software Framework

drivers/usbb/_asf_v1/enum/host/usb_host_enum.c File Reference
#include "conf_usb.h"
#include "compiler.h"
#include "usb_drv.h"
#include "usb_host_enum.h"
#include "usb_host_task.h"
#include "usb_task.h"

Macros

#define REG_CLASS_CNT   (sizeof(registered_class) / sizeof(registered_class[0]))
 
#define REG_VID_PID_CNT   (sizeof(registered_VID_PID) / sizeof(registered_VID_PID[0]))
 

Functions

bool host_check_class (void)
 This function checks if the device class is supported. More...
 
bool host_check_VID_PID (void)
 This function checks if the VID and the PID are supported (if the VID & PID belong to the VID_PID table). More...
 
U32 host_get_timeout (void)
 
Status_t host_transfer_control (void *data_pointer)
 This function is the generic control pipe management function. More...
 

Variables

volatile U8 bmattributes
 bmAttributes byte of connected device More...
 
volatile U16 device_PID
 PID of connected device. More...
 
volatile U16 device_VID
 VID of connected device. More...
 
volatile S_interface interface_supported [MAX_INTERFACE_SUPPORTED]
 Supported interfaces. More...
 
volatile U8 maxpower
 maxpower byte of connected device (unit is 2 mA) More...
 
volatile U8 nb_interface_supported = 0
 Number of interfaces the host is able to support in the connected device. More...
 
static const U8 registered_class [] = CLASS_SUBCLASS_PROTOCOL
 Table of registered classes (see conf_usb.h for table contents) More...
 
static const U16 registered_VID_PID [] = VID_PID_TABLE
 Table of registered devices (see conf_usb.h for table contents) More...
 

#define REG_CLASS_CNT   (sizeof(registered_class) / sizeof(registered_class[0]))

Referenced by host_check_class().

#define REG_VID_PID_CNT   (sizeof(registered_VID_PID) / sizeof(registered_VID_PID[0]))

Referenced by host_check_VID_PID().

const U8 registered_class[] = CLASS_SUBCLASS_PROTOCOL
static

Table of registered classes (see conf_usb.h for table contents)

Referenced by host_check_class().

const U16 registered_VID_PID[] = VID_PID_TABLE
static

Table of registered devices (see conf_usb.h for table contents)

Referenced by host_check_VID_PID().