Syntax
typedef struct {
  VM_DCL_SIO_UART_BAUDRATE baud_rate;
  VMUINT8 data_bits_per_char_length;
  VMUINT8 stop_bits;
  VMUINT8 parity;
  VMUINT8 flow_control;
  VMUCHAR sw_xon_char;
  VMUCHAR sw_xoff_char;
  VMBOOL dsr_check;
} vm_dcl_sio_config_t;
ContentsIndex
PreviousUpNext
vm_dcl_sio_config_t
Syntax
typedef struct {
  VM_DCL_SIO_UART_BAUDRATE baud_rate;
  VMUINT8 data_bits_per_char_length;
  VMUINT8 stop_bits;
  VMUINT8 parity;
  VMUINT8 flow_control;
  VMUCHAR sw_xon_char;
  VMUCHAR sw_xoff_char;
  VMBOOL dsr_check;
} vm_dcl_sio_config_t;
Description

This structure is part of the parameter structure vm_dcl_sio_control_dcb_t struct for command VM_DCL_SIO_COMMAND_SET_DCB_CONFIG. This structure allows developer to configure UART parameters such as baud rate and parity bits. Refer to vm_dcl_sio_config_t for usage example.

File

vmdcl_sio.h

Members
Members 
Description 
VM_DCL_SIO_UART_BAUDRATE baud_rate; 
Baud rate for the serial port, e.g. VM_DCL_SIO_UART_BAUDRATE_115200. Refer to VM_DCL_SIO_UART_BAUDRATE for other possible values. 
VMUINT8 data_bits_per_char_length; 
Length of data bit, refer to VM_DCL_SIO_UART_BITS_PER_CHAR_LENGTH for possible values. 
VMUINT8 stop_bits; 
Stop bit(s), refer to VM_DCL_SIO_UART_STOP_BITS for possible values. 
VMUINT8 parity; 
Parity bit setting. Refer to VM_DCL_SIO_UART_PARITY for possible values. 
VMUINT8 flow_control; 
Flow control by hardware or software. Refer to VM_DCL_SIO_UART_FLOW_CONTROL_MODE for enumeration to use. 
VMUCHAR sw_xon_char; 
Software flow control character for XON(transmit on). If the hardware does not support software flow control, assign 0x0 to this field. 
VMUCHAR sw_xoff_char; 
Software flow control character for XFF(transmit off). If the hardware does not support software flow control, assign 0x0 to this field. 
VMBOOL dsr_check; 
Reserved, always assign 0x0 to this field. 
Group
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.