udc.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_H_
38 #define _UDC_H_
39 
40 #include "conf_usb.h"
41 #include "usb_protocol.h"
42 #include "udc_desc.h"
43 #include "udd.h"
44 
45 #if USB_DEVICE_VENDOR_ID == 0
46 # error USB_DEVICE_VENDOR_ID cannot be equal to 0
47 #endif
48 
49 #if USB_DEVICE_PRODUCT_ID == 0
50 # error USB_DEVICE_PRODUCT_ID cannot be equal to 0
51 #endif
52 
53 #ifdef __cplusplus
54 extern "C" {
55 #endif
56 
165 static inline bool udc_include_vbus_monitoring(void)
166 {
168 }
169 
172 void udc_start(void);
173 
176 void udc_stop(void);
177 
185 static inline void udc_attach(void)
186 {
187  udd_attach();
188 }
189 
190 
196 static inline void udc_detach(void)
197 {
198  udd_detach();
199 }
200 
201 
205 static inline void udc_remotewakeup(void)
206 {
208 }
209 
210 
217 
219 
247 
249 #ifdef __cplusplus
250 }
251 #endif
252 
687 #endif // _UDC_H_
usb_iface_desc_t UDC_DESC_STORAGE * udc_get_interface_desc(void)
Returns a pointer on the current interface descriptor.
Definition: udc.c:155
void udd_attach(void)
Attach device to the bus when possible.
Definition: usbhs_device.c:898
Common API for USB Device Interface.
Common API for USB Device Drivers (UDD)
USB configuration file for CDC application.
void udc_start(void)
Start the USB Device stack.
Definition: udc.c:351
USB protocol definitions.
void udd_send_remotewakeup(void)
The USB driver sends a resume signal called Upstream Resume.
Definition: usbhs_device.c:984
static void udc_attach(void)
Attach device to the bus when possible.
Definition: udc.h:185
Standard USB interface descriptor structure.
Definition: usb_protocol.h:446
static void udc_detach(void)
Detaches the device from the bus.
Definition: udc.h:196
static bool udc_include_vbus_monitoring(void)
Authorizes the VBUS event.
Definition: udc.h:165
static void udc_remotewakeup(void)
The USB driver sends a resume signal called "Upstream Resume" This is authorized only when the remote...
Definition: udc.h:205
bool udd_include_vbus_monitoring(void)
Authorizes the VBUS event.
Definition: usbhs_device.c:754
void udd_detach(void)
Detaches the device from the bus.
Definition: usbhs_device.c:939
#define UDC_DESC_STORAGE
Defines the memory&#39;s location of USB descriptors.
Definition: udc_desc.h:70
void udc_stop(void)
Stop the USB Device stack.
Definition: udc.c:358


inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:05