public function dm_tty_open(tty, path, baud_rate, byte_size, parity, stop_bits, flush) result(rc)
proc~~dm_tty_open~~UsesGraph
proc~dm_tty_open
dm_tty_open
module~dm_c
dm_c
proc~dm_tty_open->module~dm_c
module~dm_util
dm_util
proc~dm_tty_open->module~dm_util
unix
unix
proc~dm_tty_open->unix
module~dm_c->unix
module~dm_kind
dm_kind
module~dm_c->module~dm_kind
module~dm_error
dm_error
module~dm_util->module~dm_error
module~dm_util->module~dm_kind
module~dm_error->module~dm_kind
module~dm_ascii
dm_ascii
module~dm_error->module~dm_ascii
iso_fortran_env
iso_fortran_env
module~dm_kind->iso_fortran_env
Nodes of different colours represent the following:
Graph Key
Module
Module
Submodule
Submodule
Subroutine
Subroutine
Function
Function
Program
Program
This Page's Entity
This Page's Entity
Solid arrows point from a submodule to the (sub)module which it is
descended from. Dashed arrows point from a module or program unit to
modules which it uses.
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 input and output buffers
are flushed after connecting, unless argument flush
is .false.
.
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.
Arguments
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 (TTY_B*
).
integer,
intent(in),
optional
::
byte_size
Byte size enumerator (TTY_BYTE_SIZE*
).
integer,
intent(in),
optional
::
parity
Parity enumerator (TTY_PARITY_*
).
integer,
intent(in),
optional
::
stop_bits
Stop bits enumerator (TTY_STOP_BITS*
).
logical,
intent(in),
optional
::
flush
Do not flush buffers if .false.
.
Return Value
integer
proc~~dm_tty_open~~CallsGraph
proc~dm_tty_open
dm_tty_open
c_open
c_open
proc~dm_tty_open->c_open
interface~dm_present
dm_present
proc~dm_tty_open->interface~dm_present
proc~dm_f_c_string
dm_f_c_string
proc~dm_tty_open->proc~dm_f_c_string
proc~dm_is_error
dm_is_error
proc~dm_tty_open->proc~dm_is_error
proc~dm_tty_baud_rate_is_valid
dm_tty_baud_rate_is_valid
proc~dm_tty_open->proc~dm_tty_baud_rate_is_valid
proc~dm_tty_byte_size_is_valid
dm_tty_byte_size_is_valid
proc~dm_tty_open->proc~dm_tty_byte_size_is_valid
proc~dm_tty_flush
dm_tty_flush
proc~dm_tty_open->proc~dm_tty_flush
proc~dm_tty_is_connected
dm_tty_is_connected
proc~dm_tty_open->proc~dm_tty_is_connected
proc~dm_tty_parity_is_valid
dm_tty_parity_is_valid
proc~dm_tty_open->proc~dm_tty_parity_is_valid
proc~dm_tty_set_attributes
dm_tty_set_attributes
proc~dm_tty_open->proc~dm_tty_set_attributes
proc~dm_tty_stop_bits_is_valid
dm_tty_stop_bits_is_valid
proc~dm_tty_open->proc~dm_tty_stop_bits_is_valid
proc~dm_tty_flush->interface~dm_present
c_tcflush
c_tcflush
proc~dm_tty_flush->c_tcflush
c_cc
c_cc
proc~dm_tty_set_attributes->c_cc
c_cfsetispeed
c_cfsetispeed
proc~dm_tty_set_attributes->c_cfsetispeed
c_cfsetospeed
c_cfsetospeed
proc~dm_tty_set_attributes->c_cfsetospeed
c_ioctl
c_ioctl
proc~dm_tty_set_attributes->c_ioctl
c_tcgetattr
c_tcgetattr
proc~dm_tty_set_attributes->c_tcgetattr
c_tcsetattr
c_tcsetattr
proc~dm_tty_set_attributes->c_tcsetattr
interface~dm_to_signed
dm_to_signed
proc~dm_tty_set_attributes->interface~dm_to_signed
interface~dm_to_unsigned
dm_to_unsigned
proc~dm_tty_set_attributes->interface~dm_to_unsigned
proc~dm_tty_set_blocking
dm_tty_set_blocking
proc~dm_tty_set_attributes->proc~dm_tty_set_blocking
proc~dm_uint16_to_int32
dm_uint16_to_int32
interface~dm_to_signed->proc~dm_uint16_to_int32
proc~dm_uint32_to_int64
dm_uint32_to_int64
interface~dm_to_signed->proc~dm_uint32_to_int64
proc~dm_int32_to_uint16
dm_int32_to_uint16
interface~dm_to_unsigned->proc~dm_int32_to_uint16
proc~dm_int64_to_uint32
dm_int64_to_uint32
interface~dm_to_unsigned->proc~dm_int64_to_uint32
c_fcntl
c_fcntl
proc~dm_tty_set_blocking->c_fcntl
Nodes of different colours represent the following:
Graph Key
Subroutine
Subroutine
Function
Function
Interface
Interface
Type Bound Procedure
Type Bound Procedure
Unknown Procedure Type
Unknown Procedure Type
Program
Program
This Page's Entity
This Page's Entity
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.