USB configuration file for CDC application. More...
Go to the source code of this file.
USB configuration file for CDC application.
Copyright (c) 2009-2018 Microchip Technology Inc. and its subsidiaries.
Definition in file conf_usb.h.
#define UDI_CDC_DEFAULT_DATABITS 8 |
Definition at line 151 of file conf_usb.h.
#define UDI_CDC_DEFAULT_PARITY CDC_PAR_NONE |
Definition at line 150 of file conf_usb.h.
#define UDI_CDC_DEFAULT_RATE 921600 |
Default configuration of communication port.
Define it when the transfer CDC Device to Host is a low rate (<512000 bauds) to reduce CDC buffers size
Definition at line 148 of file conf_usb.h.
#define UDI_CDC_DEFAULT_STOPBITS CDC_STOP_BITS_1 |
Definition at line 149 of file conf_usb.h.
#define UDI_CDC_DISABLE_EXT | ( | port | ) | d_usartDMA_callback_cdc_disable() |
Definition at line 125 of file conf_usb.h.
#define UDI_CDC_ENABLE_EXT | ( | port | ) | true |
Interface callback definition.
Definition at line 121 of file conf_usb.h.
#define UDI_CDC_PORT_NB 1 |
Number of communication port used (1 to 3)
USB Device Callbacks definitions (Optional) USB Interface Configuration Configuration of CDC interface
Definition at line 118 of file conf_usb.h.
#define UDI_CDC_RX_NOTIFY | ( | port | ) |
Definition at line 127 of file conf_usb.h.
#define UDI_CDC_SET_CODING_EXT | ( | port, | |
cfg | |||
) | callback_cdc_set_config(port,cfg) |
Definition at line 134 of file conf_usb.h.
#define UDI_CDC_SET_DTR_EXT | ( | port, | |
set | |||
) | callback_cdc_set_dtr(port,set) |
Definition at line 137 of file conf_usb.h.
#define UDI_CDC_SET_RTS_EXT | ( | port, | |
set | |||
) |
Definition at line 139 of file conf_usb.h.
#define UDI_CDC_TX_EMPTY_NOTIFY | ( | port | ) |
Definition at line 130 of file conf_usb.h.
#define USB_DEVICE_ATTR (USB_CONFIG_ATTR_SELF_POWERED) |
Definition at line 58 of file conf_usb.h.
#define USB_DEVICE_HS_SUPPORT |
USB Device string definitions (Optional)
Definition at line 79 of file conf_usb.h.
#define USB_DEVICE_MAJOR_VERSION 1 |
Definition at line 55 of file conf_usb.h.
#define USB_DEVICE_MINOR_VERSION 0 |
Definition at line 56 of file conf_usb.h.
#define USB_DEVICE_POWER 100 |
Definition at line 57 of file conf_usb.h.
#define USB_DEVICE_PRODUCT_ID 0x6124 |
Definition at line 54 of file conf_usb.h.
#define USB_DEVICE_VENDOR_ID USB_VID_ATMEL |
void callback_cdc_set_config | ( | uint8_t | port, |
usb_cdc_line_coding_t * | cfg | ||
) |
Definition at line 103 of file communications.cpp.
void callback_cdc_set_dtr | ( | uint8_t | port, |
bool | b_enable | ||
) |
Definition at line 209 of file communications.cpp.
void d_usartDMA_callback_cdc_disable | ( | void | ) |
Definition at line 166 of file d_usartDMA.c.