1#ifndef ZAO_ENDPOINT_SERIAL_PORT_CONFIG_HPP_
2#define ZAO_ENDPOINT_SERIAL_PORT_CONFIG_HPP_
84 : baud_rate_(baud_rate),
85 data_bits_(data_bits),
86 stop_bits_(stop_bits),
101 void SetBaudRate(
int new_value)
noexcept { baud_rate_ = new_value; }
116 void SetDataBits(
int new_value)
noexcept { data_bits_ = new_value; }
153 int baud_rate_ = 9600;
一般的なシリアルポートに対する設定を格納するクラス
Definition PortConfig.hpp:12
Parity
パリティチェックの種類を表す列挙型
Definition PortConfig.hpp:42
void SetBaudRate(int new_value) noexcept
ボーレート(bps単位)を設定する。
Definition PortConfig.hpp:101
StopBits
ストップビット数の種類を表す列挙型
Definition PortConfig.hpp:18
int GetDataBits() const noexcept
データ(キャラクタ)のビット数を取得する。
Definition PortConfig.hpp:107
int GetBaudRate() const noexcept
ボーレート(bps単位)を取得する。
Definition PortConfig.hpp:93
void SetParity(Parity new_value) noexcept
パリティを設定する。
Definition PortConfig.hpp:146
PortConfig(int baud_rate, int data_bits, StopBits stop_bits, Parity parity) noexcept
PortConfigオブジェクトを初期値付きで構築する。
Definition PortConfig.hpp:82
StopBits GetStopBits() const noexcept
ストップビット数を取得する。
Definition PortConfig.hpp:122
PortConfig() noexcept
PortConfigオブジェクトをデフォルト構築する。
Definition PortConfig.hpp:67
void SetStopBits(StopBits new_value) noexcept
ストップビット数を取得する。
Definition PortConfig.hpp:131
void SetDataBits(int new_value) noexcept
データ(キャラクタ)のビット数を設定する。
Definition PortConfig.hpp:116
Parity GetParity() const noexcept
パリティを取得する。
Definition PortConfig.hpp:137
Zao製品共通の名前空間
Definition FactoryInterface.hpp:11