15#include <yarp/dev/DeviceDriver.h>
16#include <yarp/dev/CanBusInterface.h>
52 virtual unsigned int getId()
const
58 virtual void setLen(
unsigned char len)
61 virtual void setId(
unsigned int id)
64 virtual const unsigned char *
getData()
const
71 {
return (
unsigned char *)
msg; }
74 {
return (
const unsigned char *)
msg; }
83class Boards:
public std::list<FakeBoard *>
86typedef std::list<FakeBoard *>::iterator
BoardsIt;
119 virtual bool canIdAdd(
unsigned int id);
122 virtual bool canRead(CanBuffer &msgs,
127 virtual bool canWrite(
const CanBuffer &msgs,
133 virtual bool open(yarp::os::Searchable &par);
134 virtual bool close();
virtual const unsigned char * getPointer() const
virtual ~FakeCanMessage()
virtual const unsigned char * getData() const
virtual unsigned char getLen() const
virtual CanMessage & operator=(const CanMessage &l)
virtual unsigned char * getData()
virtual unsigned char * getPointer()
virtual unsigned int getId() const
virtual void setBuffer(unsigned char *b)
virtual void setLen(unsigned char len)
virtual void setId(unsigned int id)
fakecan : implements yarp::dev::ICanBus for a software (fake) can bus board.
virtual bool open(yarp::os::Searchable &par)
virtual bool canSetBaudRate(unsigned int rate)
virtual bool canWrite(const CanBuffer &msgs, unsigned int size, unsigned int *sent, bool wait=false)
virtual bool canRead(CanBuffer &msgs, unsigned int size, unsigned int *read, bool wait=false)
virtual bool canIdAdd(unsigned int id)
virtual bool canGetBaudRate(unsigned int *rate)
virtual bool canIdDelete(unsigned int id)
std::list< FakeBoard * >::const_iterator BoardsConstIt
std::list< FakeBoard * >::iterator BoardsIt
Copyright (C) 2008 RobotCub Consortium.