iCub-main
Loading...
Searching...
No Matches
yarp::dev::SocketCan Class Reference

socketcan : implements yarp::dev::ICanBus for a linux socketcan. More...

#include <SocketCan.h>

Inheritance diagram for yarp::dev::SocketCan:

Public Member Functions

 SocketCan ()
 ~SocketCan ()
virtual bool canSetBaudRate (unsigned int rate)
virtual bool canGetBaudRate (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 *read, bool wait=false)
virtual bool canWrite (const CanBuffer &msgs, unsigned int size, unsigned int *sent, bool wait=false)
virtual bool open (yarp::os::Searchable &par)
virtual bool close ()

Detailed Description

socketcan : implements yarp::dev::ICanBus for a linux socketcan.

YARP device name
socketcan

Definition at line 106 of file SocketCan.h.

Constructor & Destructor Documentation

◆ SocketCan()

SocketCan::SocketCan ( )

Definition at line 61 of file SocketCan.cpp.

◆ ~SocketCan()

SocketCan::~SocketCan ( )

Definition at line 66 of file SocketCan.cpp.

Member Function Documentation

◆ canGetBaudRate()

bool SocketCan::canGetBaudRate ( unsigned int * rate)
virtual

Definition at line 77 of file SocketCan.cpp.

◆ canIdAdd()

bool SocketCan::canIdAdd ( unsigned int id)
virtual

Definition at line 83 of file SocketCan.cpp.

◆ canIdDelete()

bool SocketCan::canIdDelete ( unsigned int id)
virtual

Definition at line 89 of file SocketCan.cpp.

◆ canRead()

bool SocketCan::canRead ( CanBuffer & msgs,
unsigned int size,
unsigned int * read,
bool wait = false )
virtual

Definition at line 95 of file SocketCan.cpp.

◆ canSetBaudRate()

bool SocketCan::canSetBaudRate ( unsigned int rate)
virtual

Definition at line 71 of file SocketCan.cpp.

◆ canWrite()

bool SocketCan::canWrite ( const CanBuffer & msgs,
unsigned int size,
unsigned int * sent,
bool wait = false )
virtual

Definition at line 175 of file SocketCan.cpp.

◆ close()

bool SocketCan::close ( )
virtual

Definition at line 284 of file SocketCan.cpp.

◆ open()

bool SocketCan::open ( yarp::os::Searchable & par)
virtual

Definition at line 238 of file SocketCan.cpp.


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