Definition at line 7 of file test_comms.cpp.
◆ SetUp()
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.
◆ TearDown()
virtual void FakeSerial::TearDown |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ write_serial()
void FakeSerial::write_serial |
( |
const std::string & |
msg | ) |
|
|
inlineprotected |
◆ master_fd
int FakeSerial::master_fd |
|
private |
◆ ser
◆ ser_name
char* FakeSerial::ser_name |
|
private |
The documentation for this class was generated from the following file: