conf_usb.h File Reference

USB configuration file for CDC application. More...

#include "compiler.h"
#include "usb_protocol_cdc.h"
#include "udi_cdc_conf.h"
Include dependency graph for conf_usb.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define USB_DEVICE_VENDOR_ID   USB_VID_ATMEL
 Device definition (mandatory) More...
 
#define USB_DEVICE_PRODUCT_ID   0x6124
 
#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_HS_SUPPORT
 USB Device string definitions (Optional) More...
 
#define UDI_CDC_PORT_NB   1
 Number of communication port used (1 to 3) More...
 
#define UDI_CDC_ENABLE_EXT(port)   true
 Interface callback definition. More...
 
#define UDI_CDC_DISABLE_EXT(port)   d_usartDMA_callback_cdc_disable()
 
#define UDI_CDC_RX_NOTIFY(port)
 
#define UDI_CDC_TX_EMPTY_NOTIFY(port)
 
#define UDI_CDC_SET_CODING_EXT(port, cfg)   callback_cdc_set_config(port,cfg)
 
#define UDI_CDC_SET_DTR_EXT(port, set)   callback_cdc_set_dtr(port,set)
 
#define UDI_CDC_SET_RTS_EXT(port, set)
 
#define UDI_CDC_DEFAULT_RATE   921600
 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
 
void d_usartDMA_callback_cdc_disable (void)
 
void callback_cdc_set_config (uint8_t port, usb_cdc_line_coding_t *cfg)
 
void callback_cdc_set_dtr (uint8_t port, bool b_enable)
 

Detailed Description

USB configuration file for CDC application.

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

Definition in file conf_usb.h.

Macro Definition Documentation

◆ UDI_CDC_DEFAULT_DATABITS

#define UDI_CDC_DEFAULT_DATABITS   8

Definition at line 151 of file conf_usb.h.

◆ UDI_CDC_DEFAULT_PARITY

#define UDI_CDC_DEFAULT_PARITY   CDC_PAR_NONE

Definition at line 150 of file conf_usb.h.

◆ UDI_CDC_DEFAULT_RATE

#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.

◆ UDI_CDC_DEFAULT_STOPBITS

#define UDI_CDC_DEFAULT_STOPBITS   CDC_STOP_BITS_1

Definition at line 149 of file conf_usb.h.

◆ UDI_CDC_DISABLE_EXT

#define UDI_CDC_DISABLE_EXT (   port)    d_usartDMA_callback_cdc_disable()

Definition at line 125 of file conf_usb.h.

◆ UDI_CDC_ENABLE_EXT

#define UDI_CDC_ENABLE_EXT (   port)    true

Interface callback definition.

Definition at line 121 of file conf_usb.h.

◆ UDI_CDC_PORT_NB

#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.

◆ UDI_CDC_RX_NOTIFY

#define UDI_CDC_RX_NOTIFY (   port)

Definition at line 127 of file conf_usb.h.

◆ UDI_CDC_SET_CODING_EXT

#define UDI_CDC_SET_CODING_EXT (   port,
  cfg 
)    callback_cdc_set_config(port,cfg)

Definition at line 134 of file conf_usb.h.

◆ UDI_CDC_SET_DTR_EXT

#define UDI_CDC_SET_DTR_EXT (   port,
  set 
)    callback_cdc_set_dtr(port,set)

Definition at line 137 of file conf_usb.h.

◆ UDI_CDC_SET_RTS_EXT

#define UDI_CDC_SET_RTS_EXT (   port,
  set 
)

Definition at line 139 of file conf_usb.h.

◆ UDI_CDC_TX_EMPTY_NOTIFY

#define UDI_CDC_TX_EMPTY_NOTIFY (   port)

Definition at line 130 of file conf_usb.h.

◆ USB_DEVICE_ATTR

#define USB_DEVICE_ATTR   (USB_CONFIG_ATTR_SELF_POWERED)

Definition at line 58 of file conf_usb.h.

◆ USB_DEVICE_HS_SUPPORT

#define USB_DEVICE_HS_SUPPORT

USB Device string definitions (Optional)

Definition at line 79 of file conf_usb.h.

◆ USB_DEVICE_MAJOR_VERSION

#define USB_DEVICE_MAJOR_VERSION   1

Definition at line 55 of file conf_usb.h.

◆ USB_DEVICE_MINOR_VERSION

#define USB_DEVICE_MINOR_VERSION   0

Definition at line 56 of file conf_usb.h.

◆ USB_DEVICE_POWER

#define USB_DEVICE_POWER   100

Definition at line 57 of file conf_usb.h.

◆ USB_DEVICE_PRODUCT_ID

#define USB_DEVICE_PRODUCT_ID   0x6124

Definition at line 54 of file conf_usb.h.

◆ USB_DEVICE_VENDOR_ID

#define USB_DEVICE_VENDOR_ID   USB_VID_ATMEL

Device definition (mandatory)

USB Device Configuration

Definition at line 52 of file conf_usb.h.

Function Documentation

◆ callback_cdc_set_config()

void callback_cdc_set_config ( uint8_t  port,
usb_cdc_line_coding_t cfg 
)

Definition at line 96 of file communications.cpp.

◆ callback_cdc_set_dtr()

void callback_cdc_set_dtr ( uint8_t  port,
bool  b_enable 
)

Definition at line 202 of file communications.cpp.

◆ d_usartDMA_callback_cdc_disable()

void d_usartDMA_callback_cdc_disable ( void  )

Definition at line 166 of file d_usartDMA.c.



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