iCub-main
Public Types | Public Member Functions | List of all members
yarp::dev::embObjAnalogSensor Class Reference

class yarp::dev::embObjAnalogSensor More...

#include <embObjAnalogSensor.h>

+ Inheritance diagram for yarp::dev::embObjAnalogSensor:

Public Types

enum  {
  NUMCHANNEL_STRAIN = 6 ,
  NUMCHANNEL_MAIS = 15 ,
  FORMATDATA_STRAIN = 16 ,
  FORMATDATA_MAIS = 8
}
 
enum  AnalogSensorType {
  AS_Type_NONE = 0 ,
  AS_Type_MAIS = 1 ,
  AS_Type_STRAIN = 2 ,
  AS_Type_INERTIAL_MTB = 3
}
 

Public Member Functions

 embObjAnalogSensor ()
 
 ~embObjAnalogSensor ()
 
bool open (yarp::os::Searchable &config)
 
bool close ()
 
virtual int read (yarp::sig::Vector &out)
 Read a vector from the sensor. More...
 
virtual int getState (int ch)
 
virtual int getChannels ()
 
virtual int calibrateChannel (int ch, double v)
 
virtual int calibrateSensor ()
 
virtual int calibrateSensor (const yarp::sig::Vector &value)
 
virtual int calibrateChannel (int ch)
 
virtual bool initialised ()
 
virtual eth::iethresType_t type ()
 
virtual bool update (eOprotID32_t id32, double timestamp, void *rxdata)
 
- Public Member Functions inherited from eth::IethResource
virtual ~IethResource ()
 
const char * stringOfType ()
 

Detailed Description

class yarp::dev::embObjAnalogSensor

Definition at line 65 of file embObjAnalogSensor.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
NUMCHANNEL_STRAIN 
NUMCHANNEL_MAIS 
FORMATDATA_STRAIN 
FORMATDATA_MAIS 

Definition at line 72 of file embObjAnalogSensor.h.

◆ AnalogSensorType

Enumerator
AS_Type_NONE 
AS_Type_MAIS 
AS_Type_STRAIN 
AS_Type_INERTIAL_MTB 

Definition at line 75 of file embObjAnalogSensor.h.

Constructor & Destructor Documentation

◆ embObjAnalogSensor()

embObjAnalogSensor::embObjAnalogSensor ( )

Definition at line 231 of file embObjAnalogSensor.cpp.

◆ ~embObjAnalogSensor()

embObjAnalogSensor::~embObjAnalogSensor ( )

Definition at line 266 of file embObjAnalogSensor.cpp.

Member Function Documentation

◆ calibrateChannel() [1/2]

int embObjAnalogSensor::calibrateChannel ( int  ch)
virtual

Definition at line 1265 of file embObjAnalogSensor.cpp.

◆ calibrateChannel() [2/2]

int embObjAnalogSensor::calibrateChannel ( int  ch,
double  v 
)
virtual

Definition at line 1270 of file embObjAnalogSensor.cpp.

◆ calibrateSensor() [1/2]

int embObjAnalogSensor::calibrateSensor ( )
virtual

Definition at line 1255 of file embObjAnalogSensor.cpp.

◆ calibrateSensor() [2/2]

int embObjAnalogSensor::calibrateSensor ( const yarp::sig::Vector &  value)
virtual

Definition at line 1260 of file embObjAnalogSensor.cpp.

◆ close()

bool embObjAnalogSensor::close ( void  )

Definition at line 1479 of file embObjAnalogSensor.cpp.

◆ getChannels()

int embObjAnalogSensor::getChannels ( )
virtual

Definition at line 1250 of file embObjAnalogSensor.cpp.

◆ getState()

int embObjAnalogSensor::getState ( int  ch)
virtual

Definition at line 1244 of file embObjAnalogSensor.cpp.

◆ initialised()

bool embObjAnalogSensor::initialised ( )
virtual

Implements eth::IethResource.

Definition at line 274 of file embObjAnalogSensor.cpp.

◆ open()

bool embObjAnalogSensor::open ( yarp::os::Searchable &  config)

Definition at line 279 of file embObjAnalogSensor.cpp.

◆ read()

int embObjAnalogSensor::read ( yarp::sig::Vector &  out)
virtual

Read a vector from the sensor.

Parameters
outa vector containing the sensor's last readings.
Returns
AS_OK or return code. AS_TIMEOUT if the sensor timed-out.

Definition at line 1182 of file embObjAnalogSensor.cpp.

◆ type()

eth::iethresType_t embObjAnalogSensor::type ( )
virtual

Implements eth::IethResource.

Definition at line 1275 of file embObjAnalogSensor.cpp.

◆ update()

bool embObjAnalogSensor::update ( eOprotID32_t  id32,
double  timestamp,
void *  rxdata 
)
virtual

Implements eth::IethResource.

Definition at line 1305 of file embObjAnalogSensor.cpp.


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