Wyatt
1.0.1
|
#include <MockHardwareInterface.h>
Public Member Functions | |
void | write (IMessage *msg) |
std::list< IMessage * > * | read () |
void | setReadMessages (std::list< IMessage * > *messages) |
std::list< IMessage * > * | getWriteMessages () |
Public Member Functions inherited from IHardwareInterface | |
virtual | ~IHardwareInterface () |
Mock class for a hardware interface that can have hardware messages injected and logs the messages written to it.
Definition at line 13 of file MockHardwareInterface.h.
|
virtual |
Read data from the peripheral
Implements IHardwareInterface.
Definition at line 17 of file MockHardwareInterface.cpp.
|
virtual |
Write a message to the peripheral. Deletes the message pointer.
msg | A Message to be sent |
Implements IHardwareInterface.
Definition at line 13 of file MockHardwareInterface.cpp.