iCub-main
|
sharedcan
: implements ICanBus interface for multiple access from a single access can driver (for example cfw2can).
More...
#include <SharedCanBus.h>
Public Member Functions | |
CanBusAccessPoint () | |
~CanBusAccessPoint () | |
bool | hasId (unsigned int id) |
bool | pushReadMsg (CanMessage &msg) |
virtual bool | canGetBaudRate (unsigned int *rate) |
virtual bool | canSetBaudRate (unsigned int rate) |
virtual bool | canIdAdd (unsigned int id) |
virtual bool | canIdDelete (unsigned int id) |
virtual bool | canRead (CanBuffer &msgs, unsigned int size, unsigned int *nmsg, bool wait=false) |
virtual bool | canWrite (const CanBuffer &msgs, unsigned int size, unsigned int *sent, bool wait=false) |
virtual CanBuffer | createBuffer (int nmessage) |
virtual void | destroyBuffer (CanBuffer &msgs) |
virtual bool | open (yarp::os::Searchable &config) |
virtual bool | close () |
Protected Attributes | |
std::mutex | mtx_waitRead |
std::condition_variable | cv_waitRead |
std::mutex | synchroMutex |
bool | waitingOnRead |
unsigned int | nRecv |
CanBuffer | readBuffer |
char * | reqIds |
unsigned int | mBufferSize |
SharedCanBus * | mSharedPhysDevice |
sharedcan
: implements ICanBus interface for multiple access from a single access can driver (for example cfw2can).
It wraps the low level device driver (physdevice in the configuration file) in a higher level, multiple access virtual device driver.
YARP device name |
---|
sharedcan |
Definition at line 50 of file SharedCanBus.h.
|
inline |
Definition at line 56 of file SharedCanBus.h.
|
inline |
Definition at line 71 of file SharedCanBus.h.
|
virtual |
Definition at line 421 of file SharedCanBus.cpp.
|
virtual |
Definition at line 428 of file SharedCanBus.cpp.
|
virtual |
Definition at line 445 of file SharedCanBus.cpp.
|
inlinevirtual |
Definition at line 116 of file SharedCanBus.h.
|
inlinevirtual |
Definition at line 107 of file SharedCanBus.h.
|
virtual |
Definition at line 414 of file SharedCanBus.cpp.
|
virtual |
Definition at line 405 of file SharedCanBus.cpp.
|
virtual |
Definition at line 462 of file SharedCanBus.cpp.
|
virtual |
Definition at line 471 of file SharedCanBus.cpp.
|
inline |
Definition at line 78 of file SharedCanBus.h.
|
virtual |
Definition at line 390 of file SharedCanBus.cpp.
|
inline |
Definition at line 83 of file SharedCanBus.h.
|
protected |
Definition at line 169 of file SharedCanBus.h.
|
protected |
Definition at line 179 of file SharedCanBus.h.
|
protected |
Definition at line 181 of file SharedCanBus.h.
|
protected |
Definition at line 168 of file SharedCanBus.h.
|
protected |
Definition at line 174 of file SharedCanBus.h.
|
protected |
Definition at line 175 of file SharedCanBus.h.
|
protected |
Definition at line 177 of file SharedCanBus.h.
|
protected |
Definition at line 170 of file SharedCanBus.h.
|
protected |
Definition at line 172 of file SharedCanBus.h.