Termios device handler.
More...
#include <termiostypes.h>
Termios device handler.
- See also
- rtems_termios_device_install().
◆ first_open
First open of this device.
- Parameters
-
[in] | tty | The Termios control. This parameter may be passed to interrupt service routines since it must be provided for the rtems_termios_enqueue_raw_characters() and rtems_termios_dequeue_characters() functions. |
[in] | context | The Termios device context. |
[in] | term | The current Termios attributes. |
[in] | args | The open/close arguments. This is parameter provided to support legacy drivers. It must not be used by new drivers. |
- Return values
-
true | Successful operation. |
false | Cannot open device. |
- See also
- rtems_termios_get_device_context() and rtems_termios_set_best_baud().
◆ last_close
Last close of this device.
- Parameters
-
[in] | tty | The Termios control. |
[in] | context | The Termios device context. |
[in] | args | The open/close arguments. This is parameter provided to support legacy drivers. It must not be used by new drivers. |
◆ poll_read
Polled read.
In case mode is TERMIOS_IRQ_DRIVEN or TERMIOS_TASK_DRIVEN, then data is received via rtems_termios_enqueue_raw_characters().
- Parameters
-
[in] | context | The Termios device context. |
- Return values
-
char | The received data encoded as unsigned char. |
-1 | No data currently available. |
◆ set_attributes
Set attributes after a Termios settings change.
- Parameters
-
[in] | context | The Termios device context. |
[in] | term | The new Termios attributes. |
- Return values
-
true | Successful operation. |
false | Invalid attributes. |
◆ write
Polled write in case mode is TERMIOS_POLLED or write support otherwise.
- Parameters
-
[in] | context | The Termios device context. |
[in] | buf | The output buffer. |
[in] | len | The output buffer length in characters. |
The documentation for this struct was generated from the following file:
- /mnt/data0/chrisj/rtems/releases/rtems-release.git/4.11.3/ws-rtems/rtems-4.11.3/cpukit/libcsupport/include/rtems/termiostypes.h