udc_desc.h
Go to the documentation of this file.
1 
33 /*
34  * Support and FAQ: visit <a href="https://www.microchip.com/support/">Microchip Support</a>
35  */
36 
37 #ifndef _UDC_DESC_H_
38 #define _UDC_DESC_H_
39 
40 #include "conf_usb.h"
41 #include "usb_protocol.h"
42 #include "udi.h"
43 
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
47 
70 #define UDC_DESC_STORAGE
71  // Descriptor storage in internal RAM
72 #if (defined UDC_DATA_USE_HRAM_SUPPORT)
73 # if defined(__GNUC__)
74 # define UDC_DATA(x) COMPILER_WORD_ALIGNED __attribute__((__section__(".data_hram0")))
75 # define UDC_BSS(x) COMPILER_ALIGNED(x) __attribute__((__section__(".bss_hram0")))
76 # elif defined(__ICCAVR32__)
77 # define UDC_DATA(x) COMPILER_ALIGNED(x) __data32
78 # define UDC_BSS(x) COMPILER_ALIGNED(x) __data32
79 # endif
80 #else
81 # define UDC_DATA(x) COMPILER_ALIGNED(x)
82 # define UDC_BSS(x) COMPILER_ALIGNED(x)
83 #endif
84 
85 
86 
90 typedef struct {
96 
97 
101 typedef struct {
106 #ifdef USB_DEVICE_HS_SUPPORT
107  usb_dev_desc_t UDC_DESC_STORAGE *confdev_hs;
113 #endif
115 } udc_config_t;
116 
119 
121 
122 #ifdef __cplusplus
123 }
124 #endif
125 #endif // _UDC_DESC_H_
USB configuration file for CDC application.
USB protocol definitions.
Common API for USB Device Interface.
Standard USB device descriptor structure.
Definition: usb_protocol.h:313
Standard USB configuration descriptor structure.
Definition: usb_protocol.h:410
Configuration descriptor and UDI link for one USB speed.
Definition: udc_desc.h:90
Standard USB device qualifier descriptor structure.
Definition: usb_protocol.h:338
UDI API.
Definition: udi.h:64
udc_config_speed_t UDC_DESC_STORAGE * conf_lsfs
USB configuration descriptor and UDI API pointers for low or full speed.
Definition: udc_desc.h:105
udi_api_t UDC_DESC_STORAGE *UDC_DESC_STORAGE * udi_apis
Array of UDI API pointer.
Definition: udc_desc.h:94
All information about the USB Device.
Definition: udc_desc.h:101
UDC_DESC_STORAGE udc_config_t udc_config
Global variables of USB Device Descriptor and UDI links.
Definition: udi_cdc_desc.c:228
usb_dev_desc_t UDC_DESC_STORAGE * confdev_lsfs
USB device descriptor for low or full speed.
Definition: udc_desc.h:103
#define UDC_DESC_STORAGE
Defines the memory&#39;s location of USB descriptors.
Definition: udc_desc.h:70
usb_conf_desc_t UDC_DESC_STORAGE * desc
USB configuration descriptor.
Definition: udc_desc.h:92
usb_dev_bos_desc_t UDC_DESC_STORAGE * conf_bos
Definition: udc_desc.h:114
USB Device BOS descriptor structure.
Definition: usb_protocol.h:362


inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:58