Thunderbots Project
Loading...
Searching...
No Matches
MockUart Class Reference
Inheritance diagram for MockUart:
Collaboration diagram for MockUart:

Public Member Functions

 MOCK_METHOD1 (serialWrite, bool(const std::vector< unsigned char > &write_val))
 
 MOCK_METHOD1 (serialRead, std::vector< unsigned char >(size_t num_read_bytes))
 
 MOCK_METHOD1 (flushSerialPort, bool(FlushType flush_type))
 
- Public Member Functions inherited from UartCommunication
 UartCommunication (const UartCommunication &)=delete
 
UartCommunicationoperator= (const UartCommunication &)=delete
 
virtual bool serialWrite (const std::vector< unsigned char > &write_val)=0
 
virtual std::vector< unsigned char > serialRead (size_t num_read_bytes)=0
 
virtual bool flushSerialPort (FlushType flush_type)=0
 

Additional Inherited Members

- Public Types inherited from UartCommunication
enum  FlushType { flush_receive = TCIFLUSH , flush_send = TCOFLUSH , flush_both = TCIOFLUSH }
 

The documentation for this class was generated from the following file: