O2S C Library 1.8.2
Provide high-level data-structures and other fundamental tools for C projects
Loading...
Searching...
No Matches
serial_options.h File Reference

Verbose alternative to the termios structure. More...

#include <termios.h>
#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  serial_input_modes
 Verbose alternative to termios.c_iflag. More...
struct  serial_output_modes
 Verbose alternative to termios.c_oflag. More...
struct  serial_control_modes
 Verbose alternative to termios.c_cflag. More...
struct  serial_local_modes
 Verbose alternative to termios.c_lflag. More...
union  serial_control_characters
 Terminal special characters. More...
union  serial_options_t
 Holds a struct termios that can be modified using the verbose alternatives. More...

Enumerations

enum  character_size { character_size_5 , character_size_6 , character_size_7 , character_size_8 }
 Possible values of serial_control_modes::character_size. More...

Detailed Description

Verbose alternative to the termios structure.

Author
Antoine GAGNIERE

Definition in file serial_options.h.

Enumeration Type Documentation

◆ character_size

Possible values of serial_control_modes::character_size.

Used to specify the number of data bits per byte.

8 data bits are almost universally used in newer applications. 5 or 7 bits generally only make sense with older equipment such as teleprinters.

Enumerator
character_size_5 

for Baudot code

character_size_6 

rarely used

character_size_7 

for true ASCII

character_size_8 

for most kinds of data

Definition at line 131 of file serial_options.h.