#include <serialcomm.hpp>
Public Member Functions | |
bool | isConnected () |
int | read (uint8_t *buf, int len) |
uint8_t | readOneByte () |
SerialComm (const std::string &port, int baud=DEFAULT_BAUD) | |
int | write (uint8_t *buf, int len) |
~SerialComm () | |
Private Attributes | |
bool | connected |
int | fd |
struct termios | oldtio |
fd_set | rfds |
struct timeval | tv |
Definition at line 31 of file serialcomm.hpp.
SerialComm::SerialComm | ( | const std::string & | port, |
int | baud = DEFAULT_BAUD |
||
) |
Definition at line 20 of file serialcomm.cpp.
Definition at line 50 of file serialcomm.cpp.
Definition at line 91 of file serialcomm.cpp.
int SerialComm::read | ( | uint8_t * | buf, |
int | len | ||
) |
Definition at line 62 of file serialcomm.cpp.
uint8_t SerialComm::readOneByte | ( | ) |
Definition at line 66 of file serialcomm.cpp.
int SerialComm::write | ( | uint8_t * | buf, |
int | len | ||
) |
Definition at line 57 of file serialcomm.cpp.
bool SerialComm::connected [private] |
Definition at line 45 of file serialcomm.hpp.
int SerialComm::fd [private] |
Definition at line 43 of file serialcomm.hpp.
struct termios SerialComm::oldtio [private] |
Definition at line 44 of file serialcomm.hpp.
fd_set SerialComm::rfds [private] |
Definition at line 46 of file serialcomm.hpp.
struct timeval SerialComm::tv [private] |
Definition at line 47 of file serialcomm.hpp.