![7.2Windows USB driver framework](/images/new-backgrounds/123202/12320231x1.webp)
CC2511 Dongle
As shown in Figure 10 the USB library is divided into five modules:
The USB Framework (usbfw) contains all USB status information and functions for initialization, device reset handling, and transfers on endpoint 0. It also contains basic macros and functions for endpoint control and FIFO access. Vendor and class requests are passed up to the application, and standard requests further down for internal processing.
The USB Standard Requests (usbsr) module contains automated processing functions for almost all standard requests. The automated handling and endpoint configuration relies on the USB descriptor set and two
The USB Descriptor Parser (usbdp) module provides a mechanism for locating standard- formatted USB descriptors. The user must provide a USB descriptor set, and two simple lookup tables - one for locating other descriptor formats, and another for setting up endpoint
The USB Suspend (usbsusp) module provides easy to use, fully automated support for USB suspend, USB resume and USB remote wakeup functionality.
To implement USB suspend and USB resume the user only need to add a short piece of code to the main loop.
USB remote wakeup is performed by a single function call.
The complete documentation of the CC2511 USB embedded firmware framework is available in a compressed HTML file, cc2511_USB_library.chm found in “CC2511DK\embedded_sw\Library\cc2511\CC2511UsbLibrary\doc”.
7.2Windows USB driver framework
CUDAL (Chipcon USB Dongle Access Library) provides an
The following features are supported in CUDAL:
•The standard requests:
oGET_DESCRIPTOR o GET_STATUS
o SET_CONFIGURATION o GET_CONFIGURATION o SET_INTERFACE
o GET_INTERFACE
•All vendor requests
•All class requests
•BULK and INTERRUPT transfers, with asynchronous and synchronous read and write functions
The following features are not supported in CUDAL:
•The following standard requests:
o SET_DESCRIPTOR o SET_FEATURE
o CLEAR_FEATURE
•Isochronous transfers
SWRU082 | Page 16 of 24 |