1 #ifndef ZEP_SERIAL_PORT_CONFIG_HPP_ 2 #define ZEP_SERIAL_PORT_CONFIG_HPP_ 56 : baud_rate_(baud_rate),
57 data_bits_(data_bits),
58 stop_bits_(stop_bits),
71 void SetBaudRate(
int new_value) noexcept { baud_rate_ = new_value; }
83 void SetDataBits(
int new_value) noexcept { data_bits_ = new_value; }
113 int baud_rate_ = 9600;
134 #endif // ZEP_SERIAL_PORT_CONFIG_HPP_ void SetStopBits(StopBits new_value) noexcept
ストップビット数を取得する。
Definition: PortConfig.hpp:95
PortConfig(int baud_rate, int data_bits, StopBits stop_bits, Parity parity) noexcept
PortConfigオブジェクトを初期値付きで構築する。
Definition: PortConfig.hpp:54
Parity
パリティチェックの種類を表す列挙型。
Definition: PortConfig.hpp:29
ZEP SDK用名前空間
Definition: FactoryInterface.hpp:10
int GetDataBits() const noexcept
データ(キャラクタ)のビット数を取得する。
Definition: PortConfig.hpp:76
StopBits
ストップビット数の種類を表す列挙型。
Definition: PortConfig.hpp:15
Parity GetParity() const noexcept
パリティを取得する。
Definition: PortConfig.hpp:100
PortConfig() noexcept
PortConfigオブジェクトをデフォルト構築する。
Definition: PortConfig.hpp:44
一般的なシリアルポートに対する設定を格納するクラス。
Definition: PortConfig.hpp:10
void SetDataBits(int new_value) noexcept
データ(キャラクタ)のビット数を設定する。
Definition: PortConfig.hpp:83
StopBits GetStopBits() const noexcept
ストップビット数を取得する。
Definition: PortConfig.hpp:88
int GetBaudRate() const noexcept
ボーレート(bps単位)を取得する。
Definition: PortConfig.hpp:64
void SetBaudRate(int new_value) noexcept
ボーレート(bps単位)を設定する。
Definition: PortConfig.hpp:71
void SetParity(Parity new_value) noexcept
パリティを設定する。
Definition: PortConfig.hpp:107