一般的なシリアルポートに対する設定を格納するクラス
More...
#include <PortConfig.hpp>
|
| PortConfig () noexcept |
| PortConfigオブジェクトをデフォルト構築する。
|
|
| PortConfig (int baud_rate, int data_bits, StopBits stop_bits, Parity parity) noexcept |
| PortConfigオブジェクトを初期値付きで構築する。
|
|
int | GetBaudRate () const noexcept |
| ボーレート(bps単位)を取得する。
|
|
void | SetBaudRate (int new_value) noexcept |
| ボーレート(bps単位)を設定する。
|
|
int | GetDataBits () const noexcept |
| データ(キャラクタ)のビット数を取得する。
|
|
void | SetDataBits (int new_value) noexcept |
| データ(キャラクタ)のビット数を設定する。
|
|
StopBits | GetStopBits () const noexcept |
| ストップビット数を取得する。
|
|
void | SetStopBits (StopBits new_value) noexcept |
| ストップビット数を取得する。
|
|
Parity | GetParity () const noexcept |
| パリティを取得する。
|
|
void | SetParity (Parity new_value) noexcept |
| パリティを設定する。
|
|
一般的なシリアルポートに対する設定を格納するクラス
◆ Parity
パリティチェックの種類を表す列挙型
Enumerator |
---|
kNone | パリティ無し
|
kOdd | 奇数パリティ
|
kEven | 偶数パリティ
|
◆ StopBits
ストップビット数の種類を表す列挙型
Enumerator |
---|
kOne | 1ビット
|
kOnePointFive | 1.5ビット
|
kTwo | 2ビット
|
◆ PortConfig()
zao::endpoint::serial::PortConfig::PortConfig |
( |
int |
baud_rate, |
|
|
int |
data_bits, |
|
|
StopBits |
stop_bits, |
|
|
Parity |
parity |
|
) |
| |
|
inlinenoexcept |
PortConfigオブジェクトを初期値付きで構築する。
- Parameters
-
baud_rate | ボーレート [bps] |
data_bits | データ(キャラクタ)のビット数 [bit] |
stop_bits | ストップビット数 |
parity | パリティ |
◆ SetBaudRate()
void zao::endpoint::serial::PortConfig::SetBaudRate |
( |
int |
new_value | ) |
|
|
inlinenoexcept |
ボーレート(bps単位)を設定する。
- Parameters
-
◆ SetDataBits()
void zao::endpoint::serial::PortConfig::SetDataBits |
( |
int |
new_value | ) |
|
|
inlinenoexcept |
データ(キャラクタ)のビット数を設定する。
- Parameters
-
new_value | データ(キャラクタ)のビット数 [bit] |
◆ SetParity()
void zao::endpoint::serial::PortConfig::SetParity |
( |
Parity |
new_value | ) |
|
|
inlinenoexcept |
◆ SetStopBits()
void zao::endpoint::serial::PortConfig::SetStopBits |
( |
StopBits |
new_value | ) |
|
|
inlinenoexcept |
ストップビット数を取得する。
- Parameters
-
The documentation for this class was generated from the following file:
- /home/jenkins/workspace/J2408.zao_sdk_jetson.build/zep_sdk/libzao-endpoint/include/zao/endpoint/serial/PortConfig.hpp