Class SocketCANInterface
Defined in File socketcan.hpp
Inheritance Relationships
Base Type
public can::AsioDriver< boost::asio::posix::stream_descriptor >
(Template Class AsioDriver)
Class Documentation
-
class SocketCANInterface : public can::AsioDriver<boost::asio::posix::stream_descriptor>
Public Functions
-
inline SocketCANInterface()
-
inline virtual bool doesLoopBack() const
-
inline virtual bool init(const std::string &device, bool loopback)
initialize interface
- Parameters:
device – [in] driver-specific device name/path
loopback – [in] loop-back own messages
- Returns:
true if device was initialized succesfully, false otherwise
-
inline virtual bool recover()
Recover interface after errors and emergency stops
- Returns:
true if device was recovered succesfully, false otherwise
-
inline virtual bool translateError(unsigned int internal_error, std::string &str)
-
inline int getInternalSocket()
-
inline SocketCANInterface()