#include <socketcan.h>

Public Member Functions | |
| virtual bool | doesLoopBack () const |
| int | getInternalSocket () |
| virtual bool | init (const std::string &device, bool loopback) |
| virtual bool | recover () |
| SocketCANInterface () | |
| virtual bool | translateError (unsigned int internal_error, std::string &str) |
Public Member Functions inherited from can::AsioDriver< boost::asio::posix::stream_descriptor > | |
| virtual FrameListenerConstSharedPtr | createMsgListener (const FrameDelegate &delegate) |
| virtual FrameListenerConstSharedPtr | createMsgListener (const Frame::Header &h, const FrameDelegate &delegate) |
| virtual StateListenerConstSharedPtr | createStateListener (const StateDelegate &delegate) |
| State | getState () |
| virtual void | run () |
| virtual bool | send (const Frame &msg) |
| virtual void | shutdown () |
| virtual | ~AsioDriver () |
Public Member Functions inherited from can::DriverInterface | |
| virtual | ~DriverInterface () |
Public Member Functions inherited from can::CommInterface | |
| virtual | ~CommInterface () |
Public Member Functions inherited from can::StateInterface | |
| virtual | ~StateInterface () |
Protected Member Functions | |
| virtual bool | enqueue (const Frame &msg) |
| void | readFrame (const boost::system::error_code &error) |
| virtual void | triggerReadSome () |
Protected Member Functions inherited from can::AsioDriver< boost::asio::posix::stream_descriptor > | |
| AsioDriver () | |
| void | dispatchFrame (const Frame &msg) |
| void | frameReceived (const boost::system::error_code &error) |
| void | setDriverState (State::DriverState state) |
| void | setErrorCode (const boost::system::error_code &error) |
| void | setInternalError (unsigned int internal_error) |
| void | setNotReady () |
Protected Attributes | |
| std::string | device_ |
| can_frame | frame_ |
Protected Attributes inherited from can::AsioDriver< boost::asio::posix::stream_descriptor > | |
| Frame | input_ |
| boost::asio::io_service | io_service_ |
| boost::asio::posix::stream_descriptor | socket_ |
| boost::asio::strand | strand_ |
Private Attributes | |
| bool | loopback_ |
| int | sc_ |
| boost::mutex | send_mutex_ |
Additional Inherited Members | |
Public Types inherited from can::CommInterface | |
| typedef fastdelegate::FastDelegate1< const Frame & > | FrameDelegate |
| typedef Listener< const FrameDelegate, const Frame & > | FrameListener |
| typedef FrameListener::ListenerConstSharedPtr | FrameListenerConstSharedPtr |
Public Types inherited from can::StateInterface | |
| typedef fastdelegate::FastDelegate1< const State & > | StateDelegate |
| typedef Listener< const StateDelegate, const State & > | StateListener |
| typedef StateListener::ListenerConstSharedPtr | StateListenerConstSharedPtr |
Definition at line 20 of file socketcan.h.
|
inline |
Definition at line 24 of file socketcan.h.
|
inlinevirtual |
Implements can::DriverInterface.
Definition at line 28 of file socketcan.h.
|
inlineprotectedvirtual |
Implements can::AsioDriver< boost::asio::posix::stream_descriptor >.
Definition at line 169 of file socketcan.h.
|
inline |
Definition at line 157 of file socketcan.h.
|
inlinevirtual |
initialize interface
| [in] | device | driver-specific device name/path |
| [in] | loopback | loop-back own messages |
Implements can::DriverInterface.
Definition at line 32 of file socketcan.h.
|
inlineprotected |
Definition at line 192 of file socketcan.h.
|
inlinevirtual |
Recover interface after errors and emergency stops
Implements can::DriverInterface.
Definition at line 113 of file socketcan.h.
|
inlinevirtual |
Implements can::DriverInterface.
Definition at line 120 of file socketcan.h.
|
inlineprotectedvirtual |
Implements can::AsioDriver< boost::asio::posix::stream_descriptor >.
Definition at line 164 of file socketcan.h.
|
protected |
Definition at line 161 of file socketcan.h.
|
protected |
Definition at line 162 of file socketcan.h.
|
private |
Definition at line 21 of file socketcan.h.
|
private |
Definition at line 22 of file socketcan.h.
|
private |
Definition at line 218 of file socketcan.h.