#include <serial_port.h>
Public Member Functions | |
void | close () |
bool | init (char *param) |
bool | isOpen () const |
int | read (char *buf, unsigned count) |
int | readByte () |
SerialPort () | |
template<typename Duration > | |
int | waitData (const Duration &duration) |
bool | write (uint8_t *data, int length) |
bool | write (const std::string &line) |
~SerialPort () | |
Private Attributes | |
int | ser_port |
Definition at line 27 of file serial_port.h.
SerialPort::SerialPort | ( | ) | [inline] |
Definition at line 69 of file serial_port.h.
SerialPort::~SerialPort | ( | ) | [inline] |
Definition at line 70 of file serial_port.h.
void SerialPort::close | ( | ) | [inline] |
Definition at line 66 of file serial_port.h.
bool SerialPort::init | ( | char * | param | ) | [inline] |
Definition at line 33 of file serial_port.h.
bool SerialPort::isOpen | ( | ) | const [inline] |
Definition at line 30 of file serial_port.h.
int SerialPort::read | ( | char * | buf, |
unsigned | count | ||
) | [inline] |
Definition at line 56 of file serial_port.h.
int SerialPort::readByte | ( | ) | [inline] |
Definition at line 53 of file serial_port.h.
int SerialPort::waitData | ( | const Duration & | duration | ) | [inline] |
Definition at line 45 of file serial_port.h.
bool SerialPort::write | ( | uint8_t * | data, |
int | length | ||
) | [inline] |
Definition at line 59 of file serial_port.h.
bool SerialPort::write | ( | const std::string & | line | ) | [inline] |
Definition at line 63 of file serial_port.h.
int SerialPort::ser_port [private] |
Definition at line 28 of file serial_port.h.