iCub-main
|
#include <strainInterface.h>
Classes | |
struct | Config |
Public Types | |
enum class | Network { ETH = 0 , socketcan = 1 , ecan = 2 , unknown = 8 } |
enum class | CanBus { zero = 0 , one = 1 , two = 2 , all = CanPacket::everyCANbus } |
enum class | CanAddress { one = 1 , two = 2 , three = 3 , four = 4 , five = 5 , six = 6 , seven = 7 , eigth = 8 , nine = 9 , ten = 10 , eleven = 11 , twelve = 12 , thirteen = 13 , fourteen = 14 } |
Public Member Functions | |
strainInterface () | |
~strainInterface () | |
bool | open (const Config &cfg=Config()) |
bool | close () |
bool | get (const unsigned int number, vector< cDownloader::strain_value_t > &values) |
bool | print (const vector< cDownloader::strain_value_t > &values, FILE *fp=NULL) |
Public Attributes | |
cDownloader | downloader |
Definition at line 35 of file strainInterface.h.
|
strong |
Enumerator | |
---|---|
one | |
two | |
three | |
four | |
five | |
six | |
seven | |
eigth | |
nine | |
ten | |
eleven | |
twelve | |
thirteen | |
fourteen |
Definition at line 41 of file strainInterface.h.
|
strong |
Enumerator | |
---|---|
zero | |
one | |
two | |
all |
Definition at line 40 of file strainInterface.h.
|
strong |
Enumerator | |
---|---|
ETH | |
socketcan | |
ecan | |
unknown |
Definition at line 39 of file strainInterface.h.
|
inline |
Definition at line 60 of file strainInterface.h.
|
inline |
Definition at line 61 of file strainInterface.h.
bool strainInterface::close | ( | void | ) |
Definition at line 116 of file strainInterface.cpp.
bool strainInterface::get | ( | const unsigned int | number, |
vector< cDownloader::strain_value_t > & | values | ||
) |
Definition at line 162 of file strainInterface.cpp.
Definition at line 52 of file strainInterface.cpp.
bool strainInterface::print | ( | const vector< cDownloader::strain_value_t > & | values, |
FILE * | fp = NULL |
||
) |
Definition at line 127 of file strainInterface.cpp.
cDownloader strainInterface::downloader |
Definition at line 72 of file strainInterface.h.