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

Verbose alternative to termios.c_oflag. More...

#include <serial_options.h>

Data Fields

uint32_t enable_processing:1
 Post-process output.
uint32_t map_lower_to_upper:1
 Map lowercase characters to lowercase on output.
uint32_t map_nl_to_crnl:1
 Map \n to \r\n on output.
uint32_t map_cr_to_nl:1
 Map \r to \n on output.
uint32_t no_cr:1
 No \r output at colum 0.
uint32_t nl_returns:1
 \n performs \r function
uint32_t use_fill:1
 Use fill characters for delay.
uint32_t fill_is_del:1
 Fill is DEL

Detailed Description

Verbose alternative to termios.c_oflag.

Definition at line 55 of file serial_options.h.

Field Documentation

◆ enable_processing

uint32_t serial_output_modes::enable_processing

Post-process output.

If this bit is set, output data is processed in some unspecified way so that it is displayed appropriately on the terminal device.

This typically includes mapping newline characters (\n) onto carriage return and linefeed pairs.

If this bit isn’t set, the characters are transmitted as-is.

Definition at line 57 of file serial_options.h.

◆ map_nl_to_crnl

uint32_t serial_output_modes::map_nl_to_crnl

Map \n to \r\n on output.

If this bit is set, convert the newline character on output into a pair of characters, carriage return followed by linefeed.

Definition at line 60 of file serial_options.h.