Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes
can::SocketCANInterface Class Reference

#include <socketcan.h>

Inheritance diagram for can::SocketCANInterface:
Inheritance graph
[legend]

List of all members.

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)

Protected Member Functions

virtual bool enqueue (const Frame &msg)
void readFrame (const boost::system::error_code &error)
virtual void triggerReadSome ()

Protected Attributes

std::string device_
can_frame frame_

Private Attributes

bool loopback_
int sc_
boost::mutex send_mutex_

Detailed Description

Definition at line 20 of file socketcan.h.


Constructor & Destructor Documentation

Definition at line 24 of file socketcan.h.


Member Function Documentation

virtual bool can::SocketCANInterface::doesLoopBack ( ) const [inline, virtual]

Implements can::DriverInterface.

Definition at line 28 of file socketcan.h.

virtual bool can::SocketCANInterface::enqueue ( const Frame msg) [inline, protected, virtual]

Definition at line 157 of file socketcan.h.

virtual bool can::SocketCANInterface::init ( const std::string &  device,
bool  loopback 
) [inline, virtual]

initialize interface

Parameters:
[in]device,:driver-specific device name/path
[in]loopback,:loop-back own messages
Returns:
true if device was initialized succesfully, false otherwise

Implements can::DriverInterface.

Definition at line 32 of file socketcan.h.

void can::SocketCANInterface::readFrame ( const boost::system::error_code &  error) [inline, protected]

Definition at line 192 of file socketcan.h.

virtual bool can::SocketCANInterface::recover ( ) [inline, virtual]

Recover interface after errors and emergency stops

Returns:
true if device was recovered succesfully, false otherwise

Implements can::DriverInterface.

Definition at line 113 of file socketcan.h.

virtual bool can::SocketCANInterface::translateError ( unsigned int  internal_error,
std::string &  str 
) [inline, virtual]

Implements can::DriverInterface.

Definition at line 120 of file socketcan.h.

virtual void can::SocketCANInterface::triggerReadSome ( ) [inline, protected, virtual]

Member Data Documentation

std::string can::SocketCANInterface::device_ [protected]

Definition at line 161 of file socketcan.h.

can_frame can::SocketCANInterface::frame_ [protected]

Definition at line 162 of file socketcan.h.

Definition at line 21 of file socketcan.h.

Definition at line 22 of file socketcan.h.

boost::mutex can::SocketCANInterface::send_mutex_ [private]

Definition at line 218 of file socketcan.h.


The documentation for this class was generated from the following file:


socketcan_interface
Author(s): Mathias L├╝dtke
autogenerated on Sun Sep 3 2017 03:10:38