USB configuration file for CDC application.
Copyright (c) 2009-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | UDD_USB_INT_LEVEL configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY |
#define | USB_DEVICE_VENDOR_ID USB_VID_ATMEL |
USB Device Configuration. More... | |
#define | USB_DEVICE_PRODUCT_ID USB_PID_ATMEL_ASF_CDC |
#define | USB_DEVICE_MAJOR_VERSION 1 |
#define | USB_DEVICE_MINOR_VERSION 0 |
#define | USB_DEVICE_POWER 100 |
#define | USB_DEVICE_ATTR (USB_CONFIG_ATTR_SELF_POWERED) |
#define | USB_DEVICE_MANUFACTURE_NAME "Atmel" |
USB Device string definitions (Optional) More... | |
#define | USB_DEVICE_PRODUCT_NAME "Billy Bob Buttons" |
#define | USB_DEVICE_HS_SUPPORT |
Device speeds support Low speed not supported by CDC. More... | |
#define | UDC_VBUS_EVENT(b_vbus_high) cli_vbus_event(b_vbus_high) |
USB Device Callbacks definitions (Optional) More... | |
#define | UDI_CDC_PORT_NB 1 |
Mandatory when USB_DEVICE_ATTR authorizes remote wakeup feature. More... | |
#define | UDI_CDC_ENABLE_EXT(port) cli_cdc_enable(port) |
Interface callback definition. More... | |
#define | UDI_CDC_DISABLE_EXT(port) cli_cdc_disable(port) |
#define | UDI_CDC_RX_NOTIFY(port) cli_cdc_rx_notify(port) |
#define | UDI_CDC_SET_CODING_EXT(port, cfg) |
#define | UDI_CDC_SET_DTR_EXT(port, set) |
#define | UDI_CDC_SET_RTS_EXT(port, set) |
#define | UDI_CDC_LOW_RATE |
Define it when the transfer CDC Device to Host is a low rate (<512000 bauds) to reduce CDC buffers size. More... | |
#define | UDI_CDC_DEFAULT_RATE 115200 |
Default configuration of communication port. More... | |
#define | UDI_CDC_DEFAULT_STOPBITS CDC_STOP_BITS_1 |
#define | UDI_CDC_DEFAULT_PARITY CDC_PAR_NONE |
#define | UDI_CDC_DEFAULT_DATABITS 8 |
Functions | |
void | cli_cdc_disable (uint8_t port) |
bool | cli_cdc_enable (uint8_t port) |
void | cli_cdc_rx_notify (uint8_t port) |
void | cli_vbus_event (bool b_vbus_high) |
#define UDC_VBUS_EVENT | ( | b_vbus_high | ) | cli_vbus_event(b_vbus_high) |
USB Device Callbacks definitions (Optional)
Referenced by if().
#define UDD_USB_INT_LEVEL configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY |
Referenced by udd_enable().
#define UDI_CDC_DEFAULT_DATABITS 8 |
Referenced by udi_cdc_comm_enable().
#define UDI_CDC_DEFAULT_PARITY CDC_PAR_NONE |
Referenced by udi_cdc_comm_enable().
#define UDI_CDC_DEFAULT_RATE 115200 |
Default configuration of communication port.
Referenced by udi_cdc_comm_enable().
#define UDI_CDC_DEFAULT_STOPBITS CDC_STOP_BITS_1 |
Referenced by udi_cdc_comm_enable().
#define UDI_CDC_DISABLE_EXT | ( | port | ) | cli_cdc_disable(port) |
Referenced by udi_cdc_data_disable().
#define UDI_CDC_ENABLE_EXT | ( | port | ) | cli_cdc_enable(port) |
Interface callback definition.
Referenced by udi_cdc_comm_enable().
#define UDI_CDC_LOW_RATE |
Define it when the transfer CDC Device to Host is a low rate (<512000 bauds) to reduce CDC buffers size.
#define UDI_CDC_PORT_NB 1 |
Mandatory when USB_DEVICE_ATTR authorizes remote wakeup feature.
When a extra string descriptor must be supported other than manufacturer, product and serial string USB Interface Configuration Configuration of CDC interfaceNumber of communication port used (1 to 3)
Referenced by udi_cdc_comm_enable(), udi_cdc_ctrl_state_change(), udi_cdc_data_enable(), udi_cdc_data_received(), udi_cdc_data_sent(), udi_cdc_data_sof_notify(), udi_cdc_rx_start(), udi_cdc_serial_state_msg_sent(), udi_cdc_setup_to_port(), and udi_cdc_tx_send().
#define UDI_CDC_RX_NOTIFY | ( | port | ) | cli_cdc_rx_notify(port) |
Referenced by udi_cdc_rx_start().
#define UDI_CDC_SET_CODING_EXT | ( | port, | |
cfg | |||
) |
Referenced by udi_cdc_comm_enable(), and udi_cdc_line_coding_received().
#define UDI_CDC_SET_DTR_EXT | ( | port, | |
set | |||
) |
Referenced by udi_cdc_comm_setup().
#define UDI_CDC_SET_RTS_EXT | ( | port, | |
set | |||
) |
Referenced by udi_cdc_comm_setup().
#define USB_DEVICE_ATTR (USB_CONFIG_ATTR_SELF_POWERED) |
#define USB_DEVICE_HS_SUPPORT |
Device speeds support Low speed not supported by CDC.
To authorize the High speed
#define USB_DEVICE_MAJOR_VERSION 1 |
#define USB_DEVICE_MANUFACTURE_NAME "Atmel" |
USB Device string definitions (Optional)
#define USB_DEVICE_MINOR_VERSION 0 |
#define USB_DEVICE_POWER 100 |
#define USB_DEVICE_PRODUCT_ID USB_PID_ATMEL_ASF_CDC |
#define USB_DEVICE_PRODUCT_NAME "Billy Bob Buttons" |
#define USB_DEVICE_VENDOR_ID USB_VID_ATMEL |
USB Device Configuration.
Device definition (mandatory)
void cli_cdc_disable | ( | uint8_t | port | ) |
References cdc_connected.
bool cli_cdc_enable | ( | uint8_t | port | ) |
References cdc_connected.
void cli_cdc_rx_notify | ( | uint8_t | port | ) |
References cdc_new_data_semaphore, configASSERT, pdFALSE, and xSemaphoreGiveFromISR.
void cli_vbus_event | ( | bool | b_vbus_high | ) |
References udc_attach(), and udc_detach().
Referenced by usb_cdc_command_console_task().