modm API documentation
xpcc::BackendInterface Class Referenceabstract

The BackendInterface provides a common interface for using different hardware modules to transmit messages. More...

#include <modm/communication/xpcc/backend/backend_interface.hpp>

Inheritance diagram for xpcc::BackendInterface:
xpcc::CanConnector< modm_test::platform::CanDriver > FakeBackend xpcc::CanConnector< Driver > TestingCanConnector

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 HeadergetPacketHeader () const = 0
 Access the packet.
 
virtual const modm::SmartPointer getPacketPayload () const = 0
 
virtual void dropPacket () = 0
 

Detailed Description

The BackendInterface provides a common interface for using different hardware modules to transmit messages.

All backends have to implement this interface.

Author
Martin Rosekeit, Fabian Greif

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