◆ Init()
void HL7800Serial::Init |
( |
void |
| ) |
|
シリアルドライバ初期化
- Parameters
-
- Returns
- なし
◆ ReadResponse()
char * HL7800Serial::ReadResponse |
( |
const char * |
patternOK, |
|
|
const char * |
patternNG, |
|
|
unsigned long |
timeout_ms |
|
) |
| |
モデム受信待ち
- Parameters
-
patternOK | 期待する成功文字列 |
patternNG | 期待するエラー文字列 |
timeout_ms | タイムアウト時間(ms) |
- Returns
- 受信データ(NULL終端)
◆ WriteCommand()
void HL7800Serial::WriteCommand |
( |
char * |
command | ) |
|
モデムにコマンド/データ送信
- Parameters
-
- Returns
- なし
◆ WriteCommandAndReadResponse()
char * HL7800Serial::WriteCommandAndReadResponse |
( |
char * |
command, |
|
|
const char * |
patternOK, |
|
|
const char * |
patternNG, |
|
|
unsigned long |
timeout_ms |
|
) |
| |
モデムへコマンド送信とレスポンス受信を同時に行う
- Parameters
-
command | 送信したいバイト列(NULL終端) |
patternOK | 期待する成功文字列 |
patternNG | 期待するエラー文字列 |
timeout_ms | タイムアウト時間(ms) |
- Returns
- 受信データ(NULL終端)
◆ WriteData()
void HL7800Serial::WriteData |
( |
const uint8_t * |
data, |
|
|
int |
length |
|
) |
| |
モデムにバイナリデータ送信
- Parameters
-
- Returns
- なし
The documentation for this class was generated from the following files: