USB Library
Data Types and Constants
Macros
 
Name 
Description 
 
The DESC_CONFIG_uint32_t() macro is implemented for convenience. Since the configuration descriptor array is a uint8_t array, each entry needs to be a uint8_t in LSB format. The DESC_CONFIG_uint32_t() macro breaks up a uint32_t into the appropriate uint8_t entries in LSB. 
 
The DESC_CONFIG_uint8_t() macro is implemented for convenience. The DESC_CONFIG_uint8_t() macro provides a consistent macro for use with a byte when generating a configuration descriptor when using either the DESC_CONFIG_WORD() or DESC_CONFIG_uint32_t() macros. 
 
The DESC_CONFIG_WORD() macro is implemented for convenience. Since the configuration descriptor array is a uint8_t array, each entry needs to be a uint8_t in LSB format. The DESC_CONFIG_WORD() macro breaks up a uint16_t into the appropriate uint8_t entries in LSB. Typical Usage:  
 
The PIPE is busy 
 
include a trailing zero packet 
 
no data to send 
 
no options set 
 
Data comes from const 
 
Data comes from RAM 
 
USB_HANDLE is a pointer to an entry in the BDT. This pointer can be used to read the length of the last transfer, the status of the last transfer, and various other information. Insure to initialize USB_HANDLE objects to NULL so that they are in a known state during their first usage. 
Module
Types
 
Name 
Description 
 
USB device stack events description here - DWF 
 
USB Device States as returned by USBGetDeviceState(). Only the defenitions for these states should be used. The actual value for each state should not be relied upon as constant and may change based on the implementation. 
MLA - USB Library Help Version : 2.16
http://www.microchip.com/mla