Class blmc_drivers::CanBus¶
-
class CanBus : public blmc_drivers::CanBusInterface, public blmc_drivers::CanBusInterface¶
CanBus is the implementation of the CanBusInterface.
Public Functions
-
CanBus(const std::string &can_interface_name, const size_t &history_length = 1000)¶
Construct a new CanBus object.
- Parameters:
can_interface_name –
history_length –
-
inline virtual std::shared_ptr<const CanframeTimeseries> get_output_frame() const¶
Getters.
Get the output frame
- Returns:
std::shared_ptr<const CanframeTimeseries>
-
inline virtual std::shared_ptr<const CanframeTimeseries> get_input_frame()¶
Get the input frame.
- Returns:
std::shared_ptr<const CanframeTimeseries>
-
inline virtual std::shared_ptr<const CanframeTimeseries> get_sent_input_frame()¶
Get the input frame thas has been sent.
- Returns:
std::shared_ptr<const CanframeTimeseries>
-
inline virtual void set_input_frame(const CanBusFrame &input_frame)¶
Setters.
Set the input frame
- Parameters:
input_frame –
-
virtual void send_if_input_changed()¶
Sender.
Send the queue of message to the can network
-
CanBus(const std::string &can_interface_name, const size_t &history_length = 1000)
Construct a new CanBus object.
- Parameters:
can_interface_name –
history_length –
-
virtual ~CanBus()
Destroy the CanBus object.
-
inline virtual std::shared_ptr<const CanframeTimeseries> get_output_frame() const
Getters.
Get the output frame
- Returns:
std::shared_ptr<const CanframeTimeseries>
-
inline virtual std::shared_ptr<const CanframeTimeseries> get_input_frame()
Get the input frame.
- Returns:
std::shared_ptr<const CanframeTimeseries>
-
inline virtual std::shared_ptr<const CanframeTimeseries> get_sent_input_frame()
Get the input frame thas has been sent.
- Returns:
std::shared_ptr<const CanframeTimeseries>
-
inline virtual void set_input_frame(const CanBusFrame &input_frame)
Setters.
Set the input frame
- Parameters:
input_frame –
-
virtual void send_if_input_changed()
Sender.
Send the queue of message to the can network
-
CanBus(const std::string &can_interface_name, const size_t &history_length = 1000)¶