Class blmc_drivers::CanBusInterface¶
-
class CanBusInterface : public blmc_drivers::DeviceInterface, public blmc_drivers::DeviceInterface¶
CanBusInterface is an abstract class that defines an API for the communication via Can bus.
Subclassed by blmc_drivers::CanBus, blmc_drivers::CanBus
Public Types
-
typedef time_series::TimeSeries<CanBusFrame> CanframeTimeseries¶
CanframeTimeseries is a simple sohortcut.
-
typedef time_series::TimeSeries<CanBusFrame> CanframeTimeseries
CanframeTimeseries is a simple sohortcut.
Public Functions
-
inline virtual ~CanBusInterface()¶
Destroy the CanBusInterface object.
-
virtual std::shared_ptr<const CanframeTimeseries> get_output_frame() const = 0¶
getters
Get the output frame
- Returns:
std::shared_ptr<const CanframeTimeseries>
-
virtual std::shared_ptr<const CanframeTimeseries> get_input_frame() = 0¶
Get the input frame.
- Returns:
std::shared_ptr<const CanframeTimeseries>
-
virtual std::shared_ptr<const CanframeTimeseries> get_sent_input_frame() = 0¶
Get the sent input frame.
- Returns:
std::shared_ptr<const CanframeTimeseries>
-
virtual void set_input_frame(const CanBusFrame &input_frame) = 0¶
setters
Set the input frame saves the input frame to be sent in a queue.
- Parameters:
input_frame –
-
virtual void send_if_input_changed() = 0¶
Sender.
send all the input frame to the can network
-
inline virtual ~CanBusInterface()
Destroy the CanBusInterface object.
-
virtual std::shared_ptr<const CanframeTimeseries> get_output_frame() const = 0
getters
Get the output frame
- Returns:
std::shared_ptr<const CanframeTimeseries>
-
virtual std::shared_ptr<const CanframeTimeseries> get_input_frame() = 0
Get the input frame.
- Returns:
std::shared_ptr<const CanframeTimeseries>
-
virtual std::shared_ptr<const CanframeTimeseries> get_sent_input_frame() = 0
Get the sent input frame.
- Returns:
std::shared_ptr<const CanframeTimeseries>
-
virtual void set_input_frame(const CanBusFrame &input_frame) = 0
setters
Set the input frame saves the input frame to be sent in a queue.
- Parameters:
input_frame –
-
virtual void send_if_input_changed() = 0
Sender.
send all the input frame to the can network
-
typedef time_series::TimeSeries<CanBusFrame> CanframeTimeseries¶