Zao SDK for Jetson / libzep API Reference
|
Class to store settings for general serial ports. More...
#include <PortConfig.hpp>
Public Types | |
enum class | StopBits { kOne = 10 , kOnePointFive = 15 , Parity , kOne = 10 , kOnePointFive = 15 , kTwo = 20 } |
Enumerated type representing the type of stop bit count. More... | |
enum class | StopBits { kOne = 10 , kOnePointFive = 15 , Parity , kOne = 10 , kOnePointFive = 15 , kTwo = 20 } |
ストップビット数の種類を表す列挙型。 More... | |
enum class | Parity { kNone , kEven , kOdd } |
パリティチェックの種類を表す列挙型。 More... | |
Public Member Functions | |
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 |
パリティを設定する。 | |
Class to store settings for general serial ports.
一般的なシリアルポートに対する設定を格納するクラス。
|
strong |
|
strong |
|
strong |
|
inlinenoexcept |
PortConfigオブジェクトを初期値付きで構築する。
baud_rate | ボーレート [bps] |
data_bits | データ(キャラクタ)のビット数 [bit] |
stop_bits | ストップビット数 |
parity | パリティ |
|
inlinenoexcept |
ボーレート(bps単位)を設定する。
new_value | ボーレート [bps] |
|
inlinenoexcept |
データ(キャラクタ)のビット数を設定する。
new_value | データ(キャラクタ)のビット数 [bit] |
|
inlinenoexcept |
パリティを設定する。
new_value | パリティ |
|
inlinenoexcept |
ストップビット数を取得する。
new_value | ストップビット数 |