Serial Communications Library
Copyright (c) 2005, Brian E. Heilig
Eiffel Forum License v2 (see license.txt)
-- Create an un-initialized termios structure
-- Fill the structure with the control settings of an extant, open
-- communications resource. Throws an exception if failed.
-- Device baud rate setting.
-- Describes the hardware control of the terminal
-- Number of bits per data word
-- Describes the basic terminal input modes
-- Inter-character read timer, in milliseconds.
-- Controls various terminal functions
-- Describes the basic terminal output modes
-- Total read timer, in milliseconds.
-- Parity scheme in use for received and transmitted data
-- Number of stop bits per data word
-- Is other attached to an object considered equal
-- to current object?
-- Indicates read operations block until the requested
-- number of bytes have been read.
-- Is canonical input mode processing enabled?
-- In canonical mode input processing, terminal input
-- is processed in units of lines.
-- Indicates read operations return immediately with the number of
-- bytes already received, even if no bytes have been received
-- Check input data for parity errors?
-- Is a_baud a valid baud rate? True only indicates the
-- operating system supports this rate. The device may not.
-- Is index a valid index for the control code array?
-- Is a_data_bits a valid data bits setting?
-- Is a_parity a valid parity setting?
-- Is a_stop_bit a valid stop bits setting?
-- Set is_parity_checked to a_value
-- Converts a_baud_rate in symbols per second
-- to a baud rate setting
-- Converts a_data_bits in number of data bits to a data bits setting
-- Converts a_parity_char to a parity setting
-- Converts a_stop_bits in number of stop bits to a stop bits setting
-- Fill the structure with the current state of dev.
-- Throws an exception if failed.
-- Set baud_rate with a_baud_rate
-- Set the timeout properties to be a pure blocking read.
-- Set control character at index to c
-- Set data_bits to a_data_bits
-- Change all settings to default values.
-- Default is 9600 8N1 with flow control
-- disabled. Do not disrupt timeouts
-- Set the timeout properties to be an inter-character timed read.
-- The timer is truncated to tenths of a second.
-- Set the timer to 0 to indicate the timer is not used.
-- Setting both timers to 0 defaults to blocking mode.
-- Set the timeout properties to be a non-blocking read.
-- Set the timeout properties to be an overall timed read.
-- Set the timer to 0 to indicate the timer is not used.
-- Setting both timers to 0 defaults to blocking mode.
-- Set parity to a_parity
-- Set stop_bits to a_stop_bits
Terminal I/O settings for a serial communications device.