Class RawCanInterface¶
Defined in File hi_can_raw.hpp
Inheritance Relationships¶
Base Type¶
public hi_can::FilteredCanInterface(Class FilteredCanInterface)
Class Documentation¶
-
class RawCanInterface : public hi_can::FilteredCanInterface¶
Inheritance diagram for hi_can::RawCanInterface:
Collaboration diagram for hi_can::RawCanInterface:
Public Functions¶
-
RawCanInterface(const std::string &interface_name = "any")¶
Instantiates a new RawCanInterface.
-
RawCanInterface(const RawCanInterface &other)¶
-
RawCanInterface(RawCanInterface &&other) noexcept¶
-
RawCanInterface &operator=(RawCanInterface other)¶
-
virtual std::optional<Packet> receive(bool blocking = false) override¶
Pulls the next packet from the CAN bus buffer.
-
virtual RawCanInterface &add_filter(const addressing::filter_t &address) override¶
Add a filter to the interface.
- Returns:¶
Itself for chaining
-
virtual RawCanInterface &remove_filter(const addressing::filter_t &address) override¶
Remove a filter from the interface.
- Returns:¶
Itself for chaining
Friends¶
-
inline friend void swap(RawCanInterface &first, RawCanInterface &second) noexcept¶
-
RawCanInterface(const std::string &interface_name = "any")¶