Microchip® Advanced Software Framework

conf_usb.h File Reference

USB configuration file for CDC application.

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

#include <compiler.h>
#include <udi_cdc_conf.h>
#include "sio2host.h"

Macros

#define UDI_CDC_PORT_NB   1
 
#define USB_ENABLE
 Device speeds support Low speed not supported by CDC. More...
 
#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_MANUFACTURE_NAME   "ATMEL ASF"
 
#define USB_DEVICE_PRODUCT_NAME   "CDC"
 
#define USB_DEVICE_ATTR   (USB_CONFIG_ATTR_SELF_POWERED)
 
#define UDC_VBUS_EVENT(b_vbus_high)
 USB Device Callbacks definitions. More...
 
#define UDC_SOF_EVENT()
 
#define UDC_SUSPEND_EVENT()
 
#define UDC_RESUME_EVENT()
 
#define UDI_CDC_ENABLE_EXT(port)   main_cdc_enable(port)
 USB Interface Configuration. More...
 
#define UDI_CDC_DISABLE_EXT(port)   main_cdc_disable(port)
 
#define UDI_CDC_RX_NOTIFY(port)   usb_rx_notify()
 
#define UDI_CDC_SET_CODING_EXT(port, cfg)
 
#define UDI_CDC_SET_DTR_EXT(port, set)   dtr_cb(set)
 
#define UDI_CDC_SET_RTS_EXT(port, set)
 
#define UDI_CDC_DEFAULT_RATE   115200
 
#define UDI_CDC_DEFAULT_STOPBITS   CDC_STOP_BITS_1
 
#define UDI_CDC_DEFAULT_PARITY   CDC_PAR_NONE
 
#define UDI_CDC_DEFAULT_DATABITS   8
 
bool main_cdc_enable (uint8_t port)
 
void main_cdc_disable (uint8_t port)
 Called by CDC interface Callback running when USB Host disable cdc interface. More...
 

#define UDC_RESUME_EVENT ( )

Referenced by ISR().

#define UDC_SOF_EVENT ( )

Referenced by ISR().

#define UDC_SUSPEND_EVENT ( )

Referenced by ISR().

#define UDC_VBUS_EVENT (   b_vbus_high)

USB Device Callbacks definitions.

Referenced by udd_vbus_handler().

#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

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)    main_cdc_disable(port)

Referenced by udi_cdc_data_disable().

#define UDI_CDC_ENABLE_EXT (   port)    main_cdc_enable(port)

USB Interface Configuration.

Configuration of CDC interface

Referenced by udi_cdc_comm_enable().

#define UDI_CDC_RX_NOTIFY (   port)    usb_rx_notify()

Referenced by udi_cdc_rx_start().

#define UDI_CDC_SET_CODING_EXT (   port,
  cfg 
)
#define UDI_CDC_SET_DTR_EXT (   port,
  set 
)    dtr_cb(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_MAJOR_VERSION   1
#define USB_DEVICE_MANUFACTURE_NAME   "ATMEL ASF"
#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   "CDC"
#define USB_DEVICE_VENDOR_ID   USB_VID_ATMEL

USB Device Configuration.

#define USB_ENABLE

Device speeds support Low speed not supported by CDC.

void main_cdc_disable ( uint8_t  port)

Called by CDC interface Callback running when USB Host disable cdc interface.

References main_b_cdc_enable.

bool main_cdc_enable ( uint8_t  port)

References main_b_cdc_enable.