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