SS.ComSt Get Status
From NitrOS-9
Returns serial port configuration information.
Entry Conditions | |
A | path number |
B | SS.ComSt ($28) |
Exit Conditions | |
Y | high byte: parity |
low byte: baud rate | |
(See the SS.ComSt SetStat call for values) | |
Error Output | |
CC | carry set on error |
B | error code |
Additional Information
Baud Configuration. The high order byte of Y determines the baud rate, the word length, and number of stop bits. The byte is configured as follows:
PD.BAU 7 6 5 4 3 2 1 0 | | | | | | | +-+ | +-----+ | | | | | | | +----- Baud rate | | +---------- Reserved | +------------- Word length +---------------- Stop bits
Stop bits: | |
0 | 1 |
1 | 2 |
Word length: | |
00 | 8 bit |
01 | 7 bit |
Baud rate | |
0000 | 110 |
0001 | 300 |
0010 | 600 |
0011 | 1200 |
0100 | 2400 |
0101 | 4800 |
0110 | 9600 |
0111 | 19200 |
1xxx | undefined |
Parity Configuration. The low order byte of Y determines parity. The byte is configured as follows:
PD.BAU 7 6 5 4 3 2 1 0 | | | | +---+ +-------+ | | | +----- Special use +------------- Parity
Parity | |
xx0 | none |
001 | odd (ACIAPAK or MODPAK only) |
011 | even (ACIAPAK or MODPAK only) |
101 | transmit: mark |
receive: ignore | |
111 | transmit: space |
receive: ignore |
- The SCF manager uses this call when performing an SS.Opt GetStat on an SCF-type device. User calls to SS.ComSt do not update the path descriptor. Use the SS.Opt GetStat call for most applications because it automatically updates the path descriptor.