22#include <yarp/dev/DeviceDriver.h>
23#include <yarp/dev/CanBusInterface.h>
54 virtual CanMessage &
operator=(
const CanMessage &l);
56 virtual unsigned int getId()
const
62 virtual void setLen(
unsigned char len)
65 virtual void setId(
unsigned int id)
68 virtual const unsigned char *
getData()
const
75 {
return (
unsigned char *)
msg; }
78 {
return (
const unsigned char *)
msg; }
83 msg=(CFWCAN_MSG *)(b);
101 CFWCAN_HANDLE *handle;
109 virtual bool canIdAdd(
unsigned int id);
112 virtual bool canRead(CanBuffer &msgs,
117 virtual bool canWrite(
const CanBuffer &msgs,
127 virtual bool open(yarp::os::Searchable &par);
128 virtual bool close();
virtual void setBuffer(unsigned char *b)
virtual ~Cfw2CanMessage()
virtual void setId(unsigned int id)
virtual unsigned int getId() const
virtual unsigned char * getPointer()
virtual unsigned char * getData()
virtual const unsigned char * getData() const
virtual unsigned char getLen() const
virtual CanMessage & operator=(const CanMessage &l)
This operator is defined in a general way, but it will crash if you try to assign to a Cfw2CanMessage...
virtual const unsigned char * getPointer() const
virtual void setLen(unsigned char len)
cfw2can : driver implementing the yarp::dev::ICanBus interface for a cfw2 can bus device (cfw2 pc104 ...
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 canIdAdd(unsigned int id)
virtual bool canGetBaudRate(unsigned int *rate)
virtual bool canIdDelete(unsigned int id)
virtual bool canSetBaudRate(unsigned int rate)
Copyright (C) 2008 RobotCub Consortium.