usb_device_task.c File Reference

This file manages the USB device controller. More...

#include "config.h"
#include "conf_usb.h"
#include "usb_device_task.h"
#include "modules\usb\usb_task.h"
#include "lib_mcu\usb\usb_drv.h"
#include "usb_descriptors.h"
#include "modules\usb\device_chap9\usb_standard_request.h"
#include "lib_mcu\pll\pll_drv.h"

Include dependency graph for usb_device_task.c:

Go to the source code of this file.

Functions

void usb_device_task_init (void)
 This function initializes the USB device controller.
void usb_start_device (void)
 This function initializes the USB device controller.
void usb_device_task (void)
 Entry point of the USB device mamagement.

Variables

bit usb_connected
U8 usb_configuration_nb


Detailed Description

This file manages the USB device controller.

,v

Copyright (c) 2004 Atmel.

Please read file license.txt for copyright notice.

The USB task checks the income of new requests from the USB Host. When a Setup request occurs, this task will launch the processing of this setup contained in the usb_standard_request.c file. Other class specific requests are also processed in this file.

Version:
1.5 at90usb128-demo-hidgen-std-2_0_0
Id
usb_device_task.c,v 1.5 2006/07/27 07:04:41 rletendu Exp
Todo:
Bug:
/

Definition in file usb_device_task.c.


Variable Documentation

bit usb_connected

Public : (bit) usb_connected usb_connected is set to TRUE when VBUS has been detected usb_connected is set to FALSE otherwise /

Definition at line 46 of file usb_device_task.c.

U8 usb_configuration_nb

Public : (U8) usb_configuration_nb Store the number of the USB configuration used by the USB device when its value is different from zero, it means the device mode is enumerated Used with USB_DEVICE_FEATURE == ENABLED only /

Definition at line 70 of file usb_standard_request.c.


Generated on Fri Jan 26 17:33:04 2007 for Atmel by  doxygen 1.5.1-p1