qrk::SerialDevice Class Reference
シリアル通信クラス
More...
#include <SerialDevice.h>
List of all members.
Detailed Description
シリアル通信クラス
Definition at line 22 of file SerialDevice.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
qrk::SerialDevice::SerialDevice |
( |
void |
|
) |
|
qrk::SerialDevice::~SerialDevice |
( |
void |
|
) |
|
qrk::SerialDevice::SerialDevice |
( |
const SerialDevice & |
rhs |
) |
[private] |
Member Function Documentation
long qrk::SerialDevice::baudrate |
( |
void |
|
) |
const [virtual] |
void qrk::SerialDevice::clear |
( |
void |
|
) |
[virtual] |
bool qrk::SerialDevice::connect |
( |
const char * |
device, |
|
|
long |
baudrate = DefaultBaudrate | |
|
) |
| | [virtual] |
デバイスへの接続
- Parameters:
-
[in] | device | 接続デバイス名 |
[in] | baudrate | 接続ボーレート |
- Return values:
-
Implements qrk::Connection.
void qrk::SerialDevice::disconnect |
( |
void |
|
) |
[virtual] |
void qrk::SerialDevice::flush |
( |
void |
|
) |
[virtual] |
bool qrk::SerialDevice::isConnected |
( |
void |
|
) |
const [virtual] |
int qrk::SerialDevice::receive |
( |
char * |
data, |
|
|
size_t |
count, |
|
|
int |
timeout | |
|
) |
| | [virtual] |
受信
- Parameters:
-
[out] | data | 受信用バッファ |
[in] | count | 受信バッファの最大サイズ |
[in] | timeout | タイムアウト時間 [msec] |
Implements qrk::Connection.
int qrk::SerialDevice::send |
( |
const char * |
data, |
|
|
size_t |
count | |
|
) |
| | [virtual] |
送信
- Parameters:
-
[in] | data | 送信データ |
[in] | count | 送信バイト数 |
- Returns:
- 送信したバイト数
Implements qrk::Connection.
bool qrk::SerialDevice::setBaudrate |
( |
long |
baudrate |
) |
[virtual] |
size_t qrk::SerialDevice::size |
( |
void |
|
) |
const [virtual] |
void qrk::SerialDevice::ungetc |
( |
const char |
ch |
) |
[virtual] |
const char* qrk::SerialDevice::what |
( |
void |
|
) |
const [virtual] |
Member Data Documentation
The documentation for this class was generated from the following file: