iCub-main
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
strainInterface Class Reference

#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
 

Detailed Description

Definition at line 35 of file strainInterface.h.

Member Enumeration Documentation

◆ CanAddress

enum class strainInterface::CanAddress
strong
Enumerator
one 
two 
three 
four 
five 
six 
seven 
eigth 
nine 
ten 
eleven 
twelve 
thirteen 
fourteen 

Definition at line 41 of file strainInterface.h.

◆ CanBus

enum class strainInterface::CanBus
strong
Enumerator
zero 
one 
two 
all 

Definition at line 40 of file strainInterface.h.

◆ Network

enum class strainInterface::Network
strong
Enumerator
ETH 
socketcan 
ecan 
unknown 

Definition at line 39 of file strainInterface.h.

Constructor & Destructor Documentation

◆ strainInterface()

strainInterface::strainInterface ( )
inline

Definition at line 60 of file strainInterface.h.

◆ ~strainInterface()

strainInterface::~strainInterface ( )
inline

Definition at line 61 of file strainInterface.h.

Member Function Documentation

◆ close()

bool strainInterface::close ( )

Definition at line 116 of file strainInterface.cpp.

◆ get()

bool strainInterface::get ( const unsigned int  number,
vector< cDownloader::strain_value_t > &  values 
)

Definition at line 162 of file strainInterface.cpp.

◆ open()

bool strainInterface::open ( const Config cfg = Config())

Definition at line 52 of file strainInterface.cpp.

◆ print()

bool strainInterface::print ( const vector< cDownloader::strain_value_t > &  values,
FILE *  fp = NULL 
)

Definition at line 127 of file strainInterface.cpp.

Member Data Documentation

◆ downloader

cDownloader strainInterface::downloader

Definition at line 72 of file strainInterface.h.


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