iCub-main
Classes | Public Types | Public Member Functions | List of all members
CanPacket Class Reference

#include <driver.h>

Public Types

enum  { everyCANbus = 255 }
 

Public Member Functions

 CanPacket ()
 
 ~CanPacket ()
 
CanPacket operator= (const yarp::dev::CanMessage &canmsg)
 
unsigned int getId () const
 
unsigned char getLen () const
 
void setLen (unsigned char len)
 
void setId (unsigned int id)
 
const unsigned char * getData () const
 
unsigned char * getData ()
 
int getCanBus () const
 
void setCanBus (unsigned int bus)
 

Detailed Description

Definition at line 47 of file driver.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
everyCANbus 

Definition at line 51 of file driver.h.

Constructor & Destructor Documentation

◆ CanPacket()

CanPacket::CanPacket ( )
inline

Definition at line 67 of file driver.h.

◆ ~CanPacket()

CanPacket::~CanPacket ( )
inline

Definition at line 68 of file driver.h.

Member Function Documentation

◆ getCanBus()

int CanPacket::getCanBus ( ) const
inline

Definition at line 87 of file driver.h.

◆ getData() [1/2]

unsigned char* CanPacket::getData ( )
inline

Definition at line 86 of file driver.h.

◆ getData() [2/2]

const unsigned char* CanPacket::getData ( ) const
inline

Definition at line 85 of file driver.h.

◆ getId()

unsigned int CanPacket::getId ( ) const
inline

Definition at line 81 of file driver.h.

◆ getLen()

unsigned char CanPacket::getLen ( ) const
inline

Definition at line 82 of file driver.h.

◆ operator=()

CanPacket CanPacket::operator= ( const yarp::dev::CanMessage &  canmsg)
inline

Definition at line 71 of file driver.h.

◆ setCanBus()

void CanPacket::setCanBus ( unsigned int  bus)
inline

Definition at line 88 of file driver.h.

◆ setId()

void CanPacket::setId ( unsigned int  id)
inline

Definition at line 84 of file driver.h.

◆ setLen()

void CanPacket::setLen ( unsigned char  len)
inline

Definition at line 83 of file driver.h.


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