7 #ifndef CORE_PORT_SERIAL_H_ 8 #define CORE_PORT_SERIAL_H_ 19 SerialPort(
const char *port,
int baud,
int que_num,
int que_maxlen);
40 void parse_put(
unsigned char *data,
int len);
int read_frame(unsigned char *data)
unsigned char UXBUS_PROT_FROMID_
int write_char(unsigned char ch)
int write_frame(unsigned char *data, int len)
void parse_put(unsigned char *data, int len)
enum SerialPort::_UXBUS_RECV_STATE UXBUS_RECV_STATE
unsigned char UXBUS_PROT_TOID_
unsigned char rx_buf_[128]
int read_char(unsigned char *ch)
SerialPort(const char *port, int baud, int que_num, int que_maxlen)
int init_serial(const char *port, int baud)