|
modm API documentation
|
The BackendInterface provides a common interface for using different hardware modules to transmit messages. More...
#include <modm/communication/xpcc/backend/backend_interface.hpp>
Public Member Functions | |
| virtual void | update () = 0 |
| virtual void | sendPacket (const Header &header, modm::SmartPointer payload=modm::SmartPointer ()) = 0 |
| Send a Message. | |
| virtual bool | isPacketAvailable () const = 0 |
| Check if a new packet was received by the backend. | |
| virtual const Header & | getPacketHeader () const = 0 |
| Access the packet. | |
| virtual const modm::SmartPointer | getPacketPayload () const = 0 |
| virtual void | dropPacket () = 0 |
The BackendInterface provides a common interface for using different hardware modules to transmit messages.
All backends have to implement this interface.