Zao SDK for Jetson / libzep API Reference
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
zep::serial::PortConfig Class 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
 パリティを設定する。
 

Detailed Description

Class to store settings for general serial ports.

一般的なシリアルポートに対する設定を格納するクラス。

Member Enumeration Documentation

◆ Parity

パリティチェックの種類を表す列挙型。

Enumerator
kNone 

パリティ無し

kEven 

偶数パリティ

kOdd 

奇数パリティ

◆ StopBits [1/2]

Enumerated type representing the type of stop bit count.

Enumerator
kOne 

1 bit

kOnePointFive 

1.5 bits

Parity 

2 bits

Enumerated type representing the type of parity check.

kOne 

1ビット

kOnePointFive 

1.5ビット

kTwo 

2ビット

◆ StopBits [2/2]

ストップビット数の種類を表す列挙型。

Enumerator
kOne 

1 bit

kOnePointFive 

1.5 bits

Parity 

2 bits

Enumerated type representing the type of parity check.

kOne 

1ビット

kOnePointFive 

1.5ビット

kTwo 

2ビット

Constructor & Destructor Documentation

◆ PortConfig()

zep::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パリティ

Member Function Documentation

◆ SetBaudRate()

void zep::serial::PortConfig::SetBaudRate ( int  new_value)
inlinenoexcept

ボーレート(bps単位)を設定する。

Parameters
new_valueボーレート [bps]

◆ SetDataBits()

void zep::serial::PortConfig::SetDataBits ( int  new_value)
inlinenoexcept

データ(キャラクタ)のビット数を設定する。

Parameters
new_valueデータ(キャラクタ)のビット数 [bit]

◆ SetParity()

void zep::serial::PortConfig::SetParity ( Parity  new_value)
inlinenoexcept

パリティを設定する。

Parameters
new_valueパリティ

◆ SetStopBits()

void zep::serial::PortConfig::SetStopBits ( StopBits  new_value)
inlinenoexcept

ストップビット数を取得する。

Parameters
new_valueストップビット数

The documentation for this class was generated from the following files: