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

pcan : implements yarp::dev::ICanBus for a "plx based" can bus device (cfw pc104 card). More...

#include <PlxCan.h>

Inheritance diagram for yarp::dev::PlxCan:

Public Member Functions

 PlxCan ()
 ~PlxCan ()
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 canGetErrors (CanErrors &errs)
virtual bool open (yarp::os::Searchable &par)
virtual bool close ()

Detailed Description

pcan : implements yarp::dev::ICanBus for a "plx based" can bus device (cfw pc104 card).

YARP device name
pcan

Definition at line 97 of file PlxCan.h.

Constructor & Destructor Documentation

◆ PlxCan()

PlxCan::PlxCan ( )

Definition at line 21 of file PlxCan.cpp.

◆ ~PlxCan()

PlxCan::~PlxCan ( )

Definition at line 26 of file PlxCan.cpp.

Member Function Documentation

◆ canGetBaudRate()

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

Definition at line 38 of file PlxCan.cpp.

◆ canGetErrors()

bool PlxCan::canGetErrors ( CanErrors & errs)
virtual

Definition at line 144 of file PlxCan.cpp.

◆ canIdAdd()

bool PlxCan::canIdAdd ( unsigned int id)
virtual

Definition at line 45 of file PlxCan.cpp.

◆ canIdDelete()

bool PlxCan::canIdDelete ( unsigned int id)
virtual

Definition at line 54 of file PlxCan.cpp.

◆ canRead()

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

Definition at line 60 of file PlxCan.cpp.

◆ canSetBaudRate()

bool PlxCan::canSetBaudRate ( unsigned int rate)
virtual

Definition at line 32 of file PlxCan.cpp.

◆ canWrite()

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

Definition at line 79 of file PlxCan.cpp.

◆ close()

bool PlxCan::close ( )
virtual

Definition at line 128 of file PlxCan.cpp.

◆ open()

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

Definition at line 101 of file PlxCan.cpp.


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