Usb Configuration; Usb Implementation; Usb Device Control - Atmel AVR4901 Application Note

Table of Contents

Advertisement

7.2 USB configuration

Table 7-1. UDI vendor – configuration.
Define name
UDI_VENDOR_ENABLE_EXT
UDI_VENDOR_DISABLE_EXT
UDI_VENDOR_SETUP_OUT_RECEIVED
UDI_VENDOR_SETUP_IN_RECEIVED
UDI_VENDOR_EPS_SIZE_INT_FS
UDI_VENDOR_EPS_SIZE_BULK_FS
UDI_VENDOR_EPS_SIZE_ISO_FS
UDI_VENDOR_EPS_SIZE_INT_HS
UDI_VENDOR_EPS_SIZE_BULK_HS
UDI_VENDOR_EPS_SIZE_ISO_HS
NOTE

7.3 USB implementation

7.3.1 USB device control

8481A-AVR-01/12
All USB stack configurations are stored in the
module. These configurations are simple and do not require any specific USB
knowledge.
There is one configuration section for each USB modules: UDC, UDI and UDD.
The UDC configuration possibilities are described in the
Device Stack application note
The UDD configuration possibilities are described in the
Device Stack application note
The UDI which is the vendor interface require some configuration described in
7-1.
Type
Call-back function
Call-back function
Call-back function
Call-back function
constant
constant
It is important to verify the configuration defined in
USB hardware requires a specific clock frequency (see comment in
file).
This section describes source code to add to run a USB device vendor application.
The implementation is made of three steps:
1. Start USB device.
2. Wait the enable of vendor interface by the Host.
3. Transfer data on USB bus.
Only two function calls are needed to start a USB device application, see
conf_usb.h
in the Section 7.1.1: USB device configuration".
in the Section 7.1.3: USB drivers' configuration".
Description
Call-back function called when vendor interface is enabled
Call-back function called when vendor interface is disabled
Call-back function called when OUT setup request is received
Call-back function called when IN setup request is received
Interrupt endpoints size for full speed (up to 64)
Bulk endpoints size for full speed (8, 16, 32 or 64)
Isochronous size for full speed (up to 1023)
Interrupt endpoints size for full speed (up to 1024)
Bulk endpoints size for full speed (8, 16, 32,..,512)
Isochronous size for full speed (up to 1024)
Atmel AVR49011
file in the application
Atmel AVR4900: ASF – USB
Atmel AVR4900: ASF – USB
file, because the
conf_clock.h
conf_clock.h
Figure
Table
7-1.
13

Advertisement

Table of Contents
loading

Table of Contents