Opens TTY/PTS device in set access mode and applies serial port
attributes. The arguments baud_rate
, byte_size
, parity
, and
stop_bits
must be valid enumerators.
The function returns the following error codes:
E_EXIST
if the TTY is already connected.E_INVALID
if the TTY parameters or flags are invalid.E_IO
if opening the TTY failed.E_SYSTEM
if setting the TTY attributes or flushing the buffers failed.Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tty_type), | intent(inout) | :: | tty |
TTY type. |
||
character(len=*), | intent(in), | optional | :: | path |
Device path. |
|
integer, | intent(in), | optional | :: | baud_rate |
Baud rate enumerator ( |
|
integer, | intent(in), | optional | :: | byte_size |
Byte size enumerator ( |
|
integer, | intent(in), | optional | :: | parity |
Parity enumerator ( |
|
integer, | intent(in), | optional | :: | stop_bits |
Stop bits enumerator ( |