yarp-devices
Loading...
Searching...
No Matches
roboticslab::ICanSenderDelegate Class Referenceabstract

Implementation-agnostic consumer for TX CAN transfers. More...

#include <ICanSenderDelegate.hpp>

Inheritance diagram for roboticslab::ICanSenderDelegate:
roboticslab::YarpCanSenderDelegate roboticslab::test::FakeCanSenderDelegate

Public Member Functions

virtual ~ICanSenderDelegate ()=default
 Virtual destructor.
virtual bool prepareMessage (const can_message &msg)=0
 Register CAN message for write.
virtual void reportAvailability (bool available, unsigned int id)=0
 Report availability of CAN node.

Detailed Description

Implementors can use this class to forward implementation-specific CAN message structures from the point of creation down to the internal TX buffer (if any) and the final CAN write routines.

Cf. ICanMessageNotifier.

Member Function Documentation

◆ prepareMessage()

virtual bool roboticslab::ICanSenderDelegate::prepareMessage ( const can_message & msg)
pure virtual

◆ reportAvailability()

virtual void roboticslab::ICanSenderDelegate::reportAvailability ( bool available,
unsigned int id )
pure virtual

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