yarp-devices
Loading...
Searching...
No Matches
HicoCanMessage.hpp
1// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2
3#ifndef __HICO_CAN_MESSAGE__
4#define __HICO_CAN_MESSAGE__
5
6#include <yarp/dev/CanBusInterface.h>
7
8#include "hico_api.h"
9
10namespace roboticslab
11{
12
17class HicoCanMessage : public yarp::dev::CanMessage
18{
19public:
21 ~HicoCanMessage() override;
22 yarp::dev::CanMessage & operator=(const yarp::dev::CanMessage & l) override;
23
24 unsigned int getId() const override;
25 unsigned char getLen() const override;
26 void setLen(unsigned char len) override;
27 void setId(unsigned int id) override;
28 const unsigned char * getData() const override;
29 unsigned char * getData() override;
30 unsigned char * getPointer() override;
31 const unsigned char * getPointer() const override;
32 void setBuffer(unsigned char * buf) override;
33
34private:
35 struct can_msg * message;
36};
37
38} // namespace roboticslab
39
40#endif // __HICO_CAN_MESSAGE__
YARP wrapper for HicoCAN messages.
Definition HicoCanMessage.hpp:18
The main, catch-all namespace for Robotics Lab UC3M.
Definition groups.dox:6
Definition hico_api.h:309