Microchip® Advanced Software Framework

conf_usb.h File Reference

USB configuration file for CDC application.

Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.

#include "compiler.h"
#include "udi_cdc_conf.h"
#include "cdc.h"

Macros

#define USB_DEVICE_VENDOR_ID   USB_VID_ATMEL
 USB Device Configuration. More...
 
#define USB_DEVICE_PRODUCT_ID   USB_PID_ATMEL_XPLAINED
 
#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 ASF"
 USB Device string definitions (Optional) More...
 
#define USB_DEVICE_PRODUCT_NAME   "CDC Virtual Com"
 
#define USB_DEVICE_SERIAL_NAME
 
#define USB_DEVICE_GET_SERIAL_NAME_POINTER   cdc_serial_number
 
#define USB_DEVICE_GET_SERIAL_NAME_LENGTH   12
 
#define USB_DEVICE_HS_SUPPORT
 Device speeds support Low speed not supported by CDC. More...
 
#define UDI_CDC_ENABLE_EXT(port)   true
 USB Device Callbacks definitions (Optional) More...
 
#define UDI_CDC_DISABLE_EXT(port)
 
#define UDI_CDC_RX_NOTIFY(port)
 
#define UDI_CDC_SET_CODING_EXT(port, cfg)
 
#define UDI_CDC_SET_DTR_EXT(port, set)   cdc_set_dtr(set)
 
#define UDI_CDC_SET_RTS_EXT(port, set)
 
#define UDI_CDC_DEFAULT_RATE   115200
 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_STOPBITS   CDC_STOP_BITS_1
 
#define UDI_CDC_DEFAULT_PARITY   CDC_PAR_NONE
 
#define UDI_CDC_DEFAULT_DATABITS   8
 

#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

Define it when the transfer CDC Device to Host is a low rate (<512000 bauds) to reduce CDC buffers size.

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)

Referenced by udi_cdc_data_disable().

#define UDI_CDC_ENABLE_EXT (   port)    true

USB Device Callbacks definitions (Optional)

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 interfaceInterface callback definition

Referenced by udi_cdc_comm_enable().

#define UDI_CDC_RX_NOTIFY (   port)

Referenced by udi_cdc_rx_start().

#define UDI_CDC_SET_CODING_EXT (   port,
  cfg 
)
#define UDI_CDC_SET_DTR_EXT (   port,
  set 
)    cdc_set_dtr(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_GET_SERIAL_NAME_LENGTH   12
#define USB_DEVICE_GET_SERIAL_NAME_POINTER   cdc_serial_number
#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 ASF"

USB Device string definitions (Optional)

#define USB_DEVICE_MINOR_VERSION   0
#define USB_DEVICE_POWER   100
#define USB_DEVICE_PRODUCT_ID   USB_PID_ATMEL_XPLAINED
#define USB_DEVICE_PRODUCT_NAME   "CDC Virtual Com"
#define USB_DEVICE_SERIAL_NAME
#define USB_DEVICE_VENDOR_ID   USB_VID_ATMEL

USB Device Configuration.

Device definition (mandatory)