typedef struct { VMUINT32 owner_id; vm_dcl_sio_config_t config; } vm_dcl_sio_control_dcb_t;
typedef struct { VMUINT32 owner_id; vm_dcl_sio_config_t config; } vm_dcl_sio_control_dcb_t;
Parameter structure for command VM_DCL_SIO_COMMAND_SET_DCB_CONFIG, which configures the parameter for the serial port device.
VM_DCL_HANDLE uart_handle; VM_DCL_MODULE_TYPE usr_id; vm_dcl_sio_control_dcb_t config; usr_id = vm_dcl_get_ownerid(); uart_handle = vm_dcl_open(VM_DCL_SIO_UART_PORT1, usr_id); if(VM_DCL_HANDLE_INVALID==uart_handle) return; config.owner_id = usr_id; config.config.dsr_check = 0; config.config.data_bits_per_char_length = VM_DCL_SIO_UART_BITS_PER_CHAR_LENGTH_8; config.config.flow_control = VM_DCL_SIO_UART_FLOW_CONTROL_NONE; config.config.parity = VM_DCL_SIO_UART_PARITY_NONE; config.config.stop_bits = VM_DCL_SIO_UART_STOP_BITS_1; config.config.baud_rate = VM_DCL_SIO_UART_BAUDRATE_115200; config.config.sw_xoff_char = 0x13; config.config.sw_xon_char = 0x11; vm_dcl_control(uart_handle, VM_DCL_SIO_COMMAND_SET_DCB_CONFIG,&config);
vmdcl_sio.h
|
Members |
Description |
|
VMUINT32 owner_id; |
Owner id of the device. Require owner id by calling vm_dcl_get_ownerid. |
|
vm_dcl_sio_config_t config; |
Configuration parameters. Refer to vm_dcl_sio_config_t for each field. |
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.