#include <socketcan.h>
|
virtual bool | doesLoopBack () const |
|
can_err_mask_t | getErrorMask () const |
|
can_err_mask_t | getFatalErrorMask () const |
|
int | getInternalSocket () |
|
virtual bool | init (const std::string &device, bool loopback) override |
|
virtual bool | init (const std::string &device, bool loopback, SettingsConstSharedPtr settings) override |
|
virtual bool | recover () |
|
| SocketCANInterface () |
|
virtual bool | translateError (unsigned int internal_error, std::string &str) |
|
virtual FrameListenerConstSharedPtr | createMsgListener (const Frame::Header &h, const FrameFunc &delegate) |
|
virtual FrameListenerConstSharedPtr | createMsgListener (const FrameFunc &delegate) |
|
virtual StateListenerConstSharedPtr | createStateListener (const StateFunc &delegate) |
|
State | getState () |
|
virtual void | run () |
|
virtual bool | send (const Frame &msg) |
|
virtual void | shutdown () |
|
virtual | ~AsioDriver () |
|
virtual | ~DriverInterface () |
|
template<typename Instance , typename Callable > |
FrameListenerConstSharedPtr | createMsgListenerM (const Frame::Header &header, Instance inst, Callable callable) |
|
template<typename Instance , typename Callable > |
FrameListenerConstSharedPtr | createMsgListenerM (Instance inst, Callable callable) |
|
virtual | ~CommInterface () |
|
template<typename Instance , typename Callable > |
StateListenerConstSharedPtr | createStateListenerM (Instance inst, Callable callable) |
|
virtual | ~StateInterface () |
|
Definition at line 23 of file socketcan.h.
◆ SocketCANInterface()
can::SocketCANInterface::SocketCANInterface |
( |
| ) |
|
|
inline |
◆ doesLoopBack()
virtual bool can::SocketCANInterface::doesLoopBack |
( |
| ) |
const |
|
inlinevirtual |
◆ enqueue()
virtual bool can::SocketCANInterface::enqueue |
( |
const Frame & |
msg | ) |
|
|
inlineprotectedvirtual |
◆ getErrorMask()
can_err_mask_t can::SocketCANInterface::getErrorMask |
( |
| ) |
const |
|
inline |
◆ getFatalErrorMask()
can_err_mask_t can::SocketCANInterface::getFatalErrorMask |
( |
| ) |
const |
|
inline |
◆ getInternalSocket()
int can::SocketCANInterface::getInternalSocket |
( |
| ) |
|
|
inline |
◆ init() [1/3]
virtual bool can::SocketCANInterface::init |
( |
const std::string & |
device, |
|
|
bool |
loopback |
|
) |
| |
|
inlineoverridevirtual |
◆ init() [2/3]
bool can::SocketCANInterface::init |
( |
const std::string & |
device, |
|
|
bool |
loopback, |
|
|
can_err_mask_t |
error_mask, |
|
|
can_err_mask_t |
fatal_error_mask |
|
) |
| |
|
inlineprotected |
◆ init() [3/3]
virtual bool can::SocketCANInterface::init |
( |
const std::string & |
device, |
|
|
bool |
loopback, |
|
|
SettingsConstSharedPtr |
settings |
|
) |
| |
|
inlineoverridevirtual |
initialize interface
- Parameters
-
[in] | device | driver-specific device name/path |
[in] | loopback | loop-back own messages |
[in] | settings | driver-specific settings |
- Returns
- true if device was initialized succesfully, false otherwise
Reimplemented from can::DriverInterface.
Definition at line 64 of file socketcan.h.
◆ parse_error_mask()
static can_err_mask_t can::SocketCANInterface::parse_error_mask |
( |
SettingsConstSharedPtr |
settings, |
|
|
const std::string & |
entry, |
|
|
can_err_mask_t |
defaults |
|
) |
| |
|
inlinestaticprivate |
◆ readFrame()
void can::SocketCANInterface::readFrame |
( |
const boost::system::error_code & |
error | ) |
|
|
inlineprotected |
◆ recover()
virtual bool can::SocketCANInterface::recover |
( |
| ) |
|
|
inlinevirtual |
Recover interface after errors and emergency stops
- Returns
- true if device was recovered succesfully, false otherwise
Implements can::DriverInterface.
Definition at line 85 of file socketcan.h.
◆ translateError()
virtual bool can::SocketCANInterface::translateError |
( |
unsigned int |
internal_error, |
|
|
std::string & |
str |
|
) |
| |
|
inlinevirtual |
◆ triggerReadSome()
virtual void can::SocketCANInterface::triggerReadSome |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ device_
std::string can::SocketCANInterface::device_ |
|
protected |
◆ error_mask_
can_err_mask_t can::SocketCANInterface::error_mask_ |
|
private |
◆ fatal_error_mask_
can_err_mask_t can::SocketCANInterface::fatal_error_mask_ |
|
private |
◆ frame_
can_frame can::SocketCANInterface::frame_ |
|
protected |
◆ loopback_
bool can::SocketCANInterface::loopback_ |
|
private |
◆ sc_
int can::SocketCANInterface::sc_ |
|
private |
◆ send_mutex_
boost::mutex can::SocketCANInterface::send_mutex_ |
|
private |
The documentation for this class was generated from the following file: