ser_setup
ser_setup — sets parameters for a serial port device.
Syntax
ser_setup (devno, baud, bits/char, parity, stopbits, min, time)
Arguments
- devno
- A file ID as returned from a call to
fd_open.
- baud
- A legal baud rate.
- bits/char
- Bits per character (6, 7 or
8).
- parity
- "none", "even", "odd", "mark" or
"space"
- stopbits
- Stop bits (0, 1 or 2).
- min
- Default minimum number of characters
for a read.
- time
- Default inter-character timeout for a
read.
Returns
t on success or
nil on failure.
Description
This function sets the most common parameters for a serial port
device, as opened by a call to fd_open.
The function is currently only available in QNX 4.
Example
Gamma> id = fd_open("/dev/ser1",O_RDWR);
4
Gamma> ser_setup(id,9600,8,"none",1,1,0);
t