RZT Flexible Software Package Documentation  Release v2.2.0

 
USB PCDC Interface

Detailed Description

Interface for USB PCDC functions.

Summary

The USB PCDC interface provides USB PCDC functionality.

Data Structures

struct  usb_serial_state_bitmap_t
 
union  usb_sci_serialstate_t
 
struct  usb_pcdc_linecoding_t
 
struct  usb_pcdc_ctrllinestate_t
 

Macros

#define USB_PCDC_SET_LINE_CODING
 Set Line Coding.
 
#define USB_PCDC_GET_LINE_CODING
 Get Line Coding.
 
#define USB_PCDC_SET_CONTROL_LINE_STATE
 Control Line State.
 
#define USB_PCDC_SERIAL_STATE
 Serial State Code.
 
#define USB_PCDC_SETUP_TBL_BSIZE
 Setup packet table size (uint16_t * 5)
 

Data Structure Documentation

◆ usb_serial_state_bitmap_t

struct usb_serial_state_bitmap_t

Virtual UART signal state

Data Fields
uint16_t b_rx_carrier: 1 DCD signal.
uint16_t b_tx_carrier: 1 DSR signal.
uint16_t b_break: 1 Break signal.
uint16_t b_ring_signal: 1 Ring signal.
uint16_t b_framing: 1 Framing error.
uint16_t b_parity: 1 Parity error.
uint16_t b_over_run: 1 Overrun error.
uint16_t rsv: 9 Reserved.

◆ usb_sci_serialstate_t

union usb_sci_serialstate_t

Class Notification Serial State

Data Fields
uint32_t word Word Access.
usb_serial_state_bitmap_t bit Bit Access.

◆ usb_pcdc_linecoding_t

struct usb_pcdc_linecoding_t

Virtual UART communication settings

Data Fields
uint32_t dw_dte_rate Bitrate.
uint8_t b_char_format Stop bits.
uint8_t b_parity_type Parity.
uint8_t b_data_bits Data bits.
uint8_t rsv Reserved.

◆ usb_pcdc_ctrllinestate_t

struct usb_pcdc_ctrllinestate_t

Virtual UART control line state

Data Fields
uint16_t bdtr: 1 DTR.
uint16_t brts: 1 RTS.
uint16_t rsv: 14 Reserved.