ContentsIndex
Example
vm_dcl_sio_control_dcb_t
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);
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.