yarp-devices
ICanSenderDelegate.hpp
1 // -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2 
3 #ifndef __I_CAN_SENDER_DELEGATE_HPP__
4 #define __I_CAN_SENDER_DELEGATE_HPP__
5 
6 #include "CanMessage.hpp"
7 
8 namespace roboticslab
9 {
10 
22 {
23 public:
25  virtual ~ICanSenderDelegate() = default;
26 
28  virtual bool prepareMessage(const can_message & msg) = 0;
29 
31  virtual void reportAvailability(bool available, unsigned int id) = 0;
32 };
33 
34 } // namespace roboticslab
35 
36 #endif // __I_CAN_SENDER_DELEGATE_HPP__
Implementation-agnostic consumer for TX CAN transfers.
Definition: ICanSenderDelegate.hpp:22
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.
virtual ~ICanSenderDelegate()=default
Virtual destructor.
The main, catch-all namespace for Robotics Lab UC3M.
Definition: groups.dox:6
Proxy CAN message structure.
Definition: CanMessage.hpp:20