#include <ser.h>
Definition at line 17 of file ser.h.
Enumerator |
---|
UXBUS_START_FROMID |
|
UXBUS_START_TOOID |
|
UXBUS_STATE_LENGTH |
|
UXBUS_STATE_DATA |
|
UXBUS_STATE_CRC1 |
|
UXBUS_STATE_CRC2 |
|
Definition at line 42 of file ser.h.
SerialPort::SerialPort |
( |
const char * |
port, |
|
|
int |
baud, |
|
|
int |
que_num, |
|
|
int |
que_maxlen |
|
) |
| |
SerialPort::~SerialPort |
( |
void |
| ) |
|
void SerialPort::close_port |
( |
void |
| ) |
|
void SerialPort::flush |
( |
void |
| ) |
|
int SerialPort::init_serial |
( |
const char * |
port, |
|
|
int |
baud |
|
) |
| |
|
private |
int SerialPort::is_ok |
( |
void |
| ) |
|
void SerialPort::parse_put |
( |
unsigned char * |
data, |
|
|
int |
len |
|
) |
| |
|
private |
int SerialPort::read_char |
( |
unsigned char * |
ch | ) |
|
|
private |
int SerialPort::read_frame |
( |
unsigned char * |
data | ) |
|
void SerialPort::recv_proc |
( |
void |
| ) |
|
int SerialPort::write_char |
( |
unsigned char |
ch | ) |
|
|
private |
int SerialPort::write_frame |
( |
unsigned char * |
data, |
|
|
int |
len |
|
) |
| |
Definition at line 32 of file ser.h.
int SerialPort::que_maxlen_ |
Definition at line 28 of file ser.h.
Definition at line 29 of file ser.h.
unsigned char SerialPort::rx_buf_[128] |
|
private |
Definition at line 56 of file ser.h.
int SerialPort::rx_data_idx_ |
|
private |
Definition at line 54 of file ser.h.
int SerialPort::rx_length_ |
|
private |
Definition at line 57 of file ser.h.
Definition at line 36 of file ser.h.
int SerialPort::rx_state_ |
|
private |
Definition at line 55 of file ser.h.
Definition at line 21 of file ser.h.
Definition at line 33 of file ser.h.
std::thread SerialPort::thread_id_ |
|
private |
Definition at line 34 of file ser.h.
unsigned char SerialPort::UXBUS_PROT_FROMID_ |
|
private |
Definition at line 51 of file ser.h.
unsigned char SerialPort::UXBUS_PROT_TOID_ |
|
private |
Definition at line 52 of file ser.h.
The documentation for this class was generated from the following files: