#include <serial_com.h>
Public Member Functions | |
void | connect (std::string port, int baudrate) |
int | read (byte buff[], size_t size) |
int | read () |
bool | send (const byte buff[], size_t size) |
~SerialCom () | |
Private Member Functions | |
void | setAttributes () |
Private Attributes | |
int | baudrate_ |
int | file_handle_ |
Definition at line 18 of file serial_com.h.
|
inline |
Definition at line 28 of file serial_com.h.
void SerialCom::connect | ( | std::string | port, |
int | baudrate | ||
) |
Definition at line 6 of file serial_com.cpp.
int SerialCom::read | ( | byte | buff[], |
size_t | size | ||
) |
Definition at line 52 of file serial_com.cpp.
int SerialCom::read | ( | ) |
Definition at line 76 of file serial_com.cpp.
bool SerialCom::send | ( | const byte | buff[], |
size_t | size | ||
) |
Definition at line 85 of file serial_com.cpp.
|
private |
Definition at line 23 of file serial_com.cpp.
|
private |
Definition at line 22 of file serial_com.h.
|
private |
Definition at line 22 of file serial_com.h.