This is the HCC Embedded Product Documentation.

HCC Embedded Main Website   |    HCC Documentation Home Page  |     Contacting HCC Embedded



Set the system configuration options in the file src/config/config_usbd_cdcacm.h. This section lists the available configuration options and their default values.


USBD_CDCACM_NOTIFY_ON_IT_EP

Set this to 1 (the default) to send notifications over the Interrupt channel. This is the method defined by the standard. The built-in windows XP driver ignores notifications.

USBD_CDCACM_N_LINES

The number of serial lines to implement. The default is 1. The USB device configuration must match this value. The maximum allowed value is 4 lines.

USBD_CDCACM_DEFAULT_BPS

The default baud rate setting for serial lines. The default is 9600.

USBD_CDCACM_DEFAULT_STOP

The default number of stop bits for serial lines. The default is LCT_STOP_1.

USBD_CDCACM_DEFAULT_PARITY

The default parity type for serial lines. The default is LCT_PARITY_NONE.

USBD_CDCACM_DEFAULT_CLEN

The default number of data bits for serial lines. The default is 8.

USBD_CDCACM_DEFAULT_RXMODE

The default Receive mode after start. Possible settings are:

  • USBD_CDCACM_RXMODE_NORMAL (the default).
  • USBD_CDCACM_RXMODE_DIRECT.

Set this to USBD_CDCACM_RXMODE_DIRECT if USBD_CDCACM_RX_BUFFER_SIZE is 0.

USBD_CDCACM_CDC_RX_BUFFER_SIZE

The size of a receive buffer for Normal receive mode. Set this to the maximum Bulk IN endpoint packet size. Set it to 0 if Direct mode receive is used. The default is 512.

USBD_CDCACM_TASK_STACK_SIZE

The task stack size. The default is 1024.

USBD_CDCACM_BUF_NUM_LINE_0

The number of Receive buffers on CDC line 0. The default is 2.

USBD_CDCACM_BUF_NUM_LINE_1

The number of Receive buffers on CDC line 1. Keep the default of 0 if USBD_CDCACM_N_LINES < 2.

USBD_CDCACM_BUF_NUM_LINE_2

The number of Receive buffers on CDC line 2. Keep the default of 0 if USBD_CDCACM_N_LINES < 3.

USBD_CDCACM_BUF_NUM_LINE_3

The number of Receive buffers on CDC line 3. Keep the default of 0 if USBD_CDCACM_N_LINES < 4.