Atmel Software Framework

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

Functions

Status_t host_get_data (U8 pipe, U16 *nb_data, void *ptr_buf)
 This function receives nb_data bytes pointed to by ptr_buf on the specified pipe. More...
 
bool host_get_data_interrupt (U8 pipe, U16 nb_data, void *ptr_buf, Pipe_handler *handler)
 This function receives nb_data bytes pointed to by ptr_buf on the specified pipe. More...
 
Status_t host_send_data (U8 pipe, U16 nb_data, const void *ptr_buf)
 This function sends nb_data bytes pointed to by ptr_buf on the specified pipe. More...
 
bool host_send_data_interrupt (U8 pipe, U16 nb_data, const void *ptr_buf, Pipe_handler *handler)
 This function sends nb_data bytes pointed to by ptr_buf on the specified pipe. More...
 
bool is_any_interrupt_pipe_active (void)
 
void reset_it_pipe_str (void)
 
void usb_host_task (void)
 Entry point of the USB host management. More...
 
void usb_host_task_init (void)
 This function initializes the USB host controller. More...
 
void usb_pipe_interrupt (U8 pipe)
 USB pipe interrupt subroutine. More...
 

Variables

U8 data_stage [SIZEOF_DATA_STAGE]
 Public: U8 data_stage[SIZEOF_DATA_STAGE] Internal RAM buffer for USB data stage content This buffer is required to setup host enumeration process It contains the device descriptors received. More...
 
volatile U8 device_state
 Public: U8 device_state Its value represents the current state of the device connected to the USB host controller Value can be: More...
 
volatile U8 device_status
 
volatile bool g_sav_int_sof_enable
 
volatile S_pipe_int it_pipe_str [MAX_PEP_NB]
 
static const char log_device_connected [] = "Device connected\r\n"
 
static const char log_device_enumerated [] = "Device enumerated\r\n"
 
static const char log_unsupported_device [] = "Unsupported device\r\n"
 
static const char log_usb_resumed [] = "USB resumed\r\n"
 
static const char log_usb_suspended [] = "USB suspended\r\n"
 
volatile bool request_resume
 
static U16 sof_cnt
 As internal host Start-of-Frame counter. More...
 
volatile S_usb_setup_data usb_request
 For control requests management over control pipe. More...
 

volatile S_pipe_int it_pipe_str[MAX_PEP_NB]
const char log_device_connected[] = "Device connected\r\n"
static

Referenced by usb_host_task().

const char log_device_enumerated[] = "Device enumerated\r\n"
static

Referenced by usb_host_task().

const char log_unsupported_device[] = "Unsupported device\r\n"
static

Referenced by usb_host_task().

const char log_usb_resumed[] = "USB resumed\r\n"
static

Referenced by usb_host_task().

const char log_usb_suspended[] = "USB suspended\r\n"
static

Referenced by usb_host_task().

U16 sof_cnt
static

As internal host Start-of-Frame counter.

Referenced by usb_host_task(), and usb_host_task_init().