MC Protocol Serial C++ 0.2.3
MC protocol serial library for MCU-oriented environments
Loading...
Searching...
No Matches
mcprotocol::serial::PosixSerialConfig Struct Reference

Host-side serial-port configuration used by PosixSerialPort. More...

#include <posix_serial.hpp>

Public Attributes

std::string_view device_path {}
 
std::uint32_t baud_rate = 9600
 
std::uint8_t data_bits = 8
 
std::uint8_t stop_bits = 1
 
char parity = 'N'
 
bool rts_cts = false
 

Detailed Description

Host-side serial-port configuration used by PosixSerialPort.

device_path accepts /dev/... style paths on POSIX systems and COM3 or \\.\COM10 style names on Windows.

Definition at line 16 of file posix_serial.hpp.

Member Data Documentation

◆ baud_rate

std::uint32_t mcprotocol::serial::PosixSerialConfig::baud_rate = 9600

Definition at line 18 of file posix_serial.hpp.

◆ data_bits

std::uint8_t mcprotocol::serial::PosixSerialConfig::data_bits = 8

Definition at line 19 of file posix_serial.hpp.

◆ device_path

std::string_view mcprotocol::serial::PosixSerialConfig::device_path {}

Definition at line 17 of file posix_serial.hpp.

◆ parity

char mcprotocol::serial::PosixSerialConfig::parity = 'N'

Definition at line 21 of file posix_serial.hpp.

◆ rts_cts

bool mcprotocol::serial::PosixSerialConfig::rts_cts = false

Definition at line 22 of file posix_serial.hpp.

◆ stop_bits

std::uint8_t mcprotocol::serial::PosixSerialConfig::stop_bits = 1

Definition at line 20 of file posix_serial.hpp.


The documentation for this struct was generated from the following file: