iCub-main
|
#include <list>
#include "yarp/dev/CanBusInterface.h"
Go to the source code of this file.
Classes | |
struct | ThreadId |
class | ThreadFifo |
struct | CanRequest |
class | RequestsQueue |
Functions | |
int | getRcp (const yarp::dev::CanMessage &m) |
Extract least significative 4 bits, from the id of a can msg. | |
int | getSender (const yarp::dev::CanMessage &m) |
Extract most significative 4 bits of the least significative byte from the id of a can msg. | |
int | getClass (const yarp::dev::CanMessage &m) |
Extract message class, three bit least significative of the first byte of the message ID. | |
unsigned char | getMessageType (const yarp::dev::CanMessage &m) |
Extract 7 lsb of first byte; this is the message type in our protocol. | |
int | getJoint (const yarp::dev::CanMessage &m, const unsigned char *invM) |
Extract the joint number to which a RECEIVED message is referring to. | |
template<class T > | |
long | getRcp (const T &m) |
Extract least significative 4 bits, from the id of a can msg. | |
template<class T > | |
long | getSender (const T &m) |
Extract most significative 4 bits of the least significative byte from the id of a can msg. | |
template<class T > | |
long | getClass (const T &m) |
Extract message class, three bit least significative of the first byte of the message ID. | |
template<class T > | |
unsigned char | getMessageType (const T &m) |
Extract 7 lsb of first byte; this is the message type in our protocol. | |
template<class T > | |
int | getJoint (const T &m, const unsigned char *invM) |
Extract the joint number to which a RECEIVED message is referring to. | |
void | DEBUG_FUNC (const char *fmt,...) |
Variables | |
const int | DEBUG_PRINTF_BUFFER_LENGTH =255 |
|
inline |
Definition at line 134 of file canControlUtils.h.
Extract message class, three bit least significative of the first byte of the message ID.
Message id: 0000 0CCC SSSS RRRR
Definition at line 105 of file canControlUtils.h.
|
inline |
Extract message class, three bit least significative of the first byte of the message ID.
Message id: 0000 0CCC SSSS RRRR
Definition at line 52 of file canControlUtils.h.
Extract the joint number to which a RECEIVED message is referring to.
This is the conversion message -> joint (uses can id and first bit of first data byte in the can message)
Definition at line 125 of file canControlUtils.h.
|
inline |
Extract the joint number to which a RECEIVED message is referring to.
This is the conversion message -> joint (uses can id and first bit of first data byte in the can message)
Definition at line 70 of file canControlUtils.h.
Extract 7 lsb of first byte; this is the message type in our protocol.
Definition at line 114 of file canControlUtils.h.
|
inline |
Extract 7 lsb of first byte; this is the message type in our protocol.
Definition at line 60 of file canControlUtils.h.
Extract least significative 4 bits, from the id of a can msg.
In our protocol this is the recipient of a message. Message id: 0000 0XXX SSSS RRRR
Definition at line 84 of file canControlUtils.h.
|
inline |
Extract least significative 4 bits, from the id of a can msg.
In our protocol this is the recipient of a message. Message id: 0000 0XXX SSSS RRRR
Definition at line 33 of file canControlUtils.h.
Extract most significative 4 bits of the least significative byte from the id of a can msg.
Message id: 0000 0XXX SSSS RRRR In our protocol this is the sender of a message
Definition at line 95 of file canControlUtils.h.
|
inline |
Extract most significative 4 bits of the least significative byte from the id of a can msg.
Message id: 0000 0XXX SSSS RRRR In our protocol this is the sender of a message
Definition at line 43 of file canControlUtils.h.
const int DEBUG_PRINTF_BUFFER_LENGTH =255 |
Definition at line 132 of file canControlUtils.h.