Definition at line 7 of file test_comms.cpp.
virtual void FakeSerial::SetUp |
( |
| ) |
|
|
inlineprotectedvirtual |
What's going on here? The posix_openpt() call establishes a pseudo terminal and gives us a fd for the other end of it. So we can connect up a Serial instance to the pty, and have full control over reading-from and writing-to the driver.
Definition at line 16 of file test_comms.cpp.
virtual void FakeSerial::TearDown |
( |
| ) |
|
|
inlineprotectedvirtual |
void FakeSerial::write_serial |
( |
const std::string & |
msg | ) |
|
|
inlineprotected |
int FakeSerial::master_fd |
|
private |
char* FakeSerial::ser_name |
|
private |
The documentation for this class was generated from the following file: