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

#include <CanBusMotionControl.h>

+ Inheritance diagram for TBR_AnalogSensor:

Public Types

enum  AnalogDataFormat {
  ANALOG_FORMAT_8 ,
  ANALOG_FORMAT_16
}
 
enum  SensorStatus {
  ANALOG_IDLE =0 ,
  ANALOG_OK =1 ,
  ANALOG_NOT_RESPONDING =-1 ,
  ANALOG_SATURATION =-2 ,
  ANALOG_ERROR =-3
}
 

Public Member Functions

 TBR_AnalogSensor ()
 
 ~TBR_AnalogSensor ()
 
bool handleAnalog (void *)
 
void resetCounters ()
 
void getCounters (unsigned int &sat, unsigned int &err, unsigned int &to)
 
void setDeviceId (std::string id)
 
std::string getDeviceId ()
 
short getId ()
 
short getStatus ()
 
bool isOpen ()
 
short getUseCalibration ()
 
double * getScaleFactor ()
 
double getScaleFactor (int chan)
 
bool open (int channels, AnalogDataFormat f, short bId, short useCalib, bool isVirtualSensor)
 
virtual int read (yarp::sig::Vector &out)
 
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)
 

Public Attributes

TBR_CanBackDoorbackDoor
 

Detailed Description

Definition at line 227 of file CanBusMotionControl.h.

Member Enumeration Documentation

◆ AnalogDataFormat

Enumerator
ANALOG_FORMAT_8 
ANALOG_FORMAT_16 

Definition at line 231 of file CanBusMotionControl.h.

◆ SensorStatus

Enumerator
ANALOG_IDLE 
ANALOG_OK 
ANALOG_NOT_RESPONDING 
ANALOG_SATURATION 
ANALOG_ERROR 

Definition at line 237 of file CanBusMotionControl.h.

Constructor & Destructor Documentation

◆ TBR_AnalogSensor()

TBR_AnalogSensor::TBR_AnalogSensor ( )

Definition at line 722 of file CanBusMotionControl.cpp.

◆ ~TBR_AnalogSensor()

TBR_AnalogSensor::~TBR_AnalogSensor ( )

Definition at line 737 of file CanBusMotionControl.cpp.

Member Function Documentation

◆ calibrateChannel() [1/2]

virtual int TBR_AnalogSensor::calibrateChannel ( int  ch)
inlinevirtual

Definition at line 341 of file CanBusMotionControl.h.

◆ calibrateChannel() [2/2]

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

Definition at line 830 of file CanBusMotionControl.cpp.

◆ calibrateSensor() [1/2]

int TBR_AnalogSensor::calibrateSensor ( )
virtual

Definition at line 835 of file CanBusMotionControl.cpp.

◆ calibrateSensor() [2/2]

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

Definition at line 336 of file CanBusMotionControl.h.

◆ getChannels()

int TBR_AnalogSensor::getChannels ( )
virtual

Definition at line 779 of file CanBusMotionControl.cpp.

◆ getCounters()

void TBR_AnalogSensor::getCounters ( unsigned int &  sat,
unsigned int &  err,
unsigned int &  to 
)
inline

Definition at line 285 of file CanBusMotionControl.h.

◆ getDeviceId()

std::string TBR_AnalogSensor::getDeviceId ( )
inline

Definition at line 297 of file CanBusMotionControl.h.

◆ getId()

short TBR_AnalogSensor::getId ( )
inline

Definition at line 302 of file CanBusMotionControl.h.

◆ getScaleFactor() [1/2]

double * TBR_AnalogSensor::getScaleFactor ( )
inline

Definition at line 318 of file CanBusMotionControl.h.

◆ getScaleFactor() [2/2]

double TBR_AnalogSensor::getScaleFactor ( int  chan)
inline

Definition at line 320 of file CanBusMotionControl.h.

◆ getState()

int TBR_AnalogSensor::getState ( int  ch)
virtual

Definition at line 745 of file CanBusMotionControl.cpp.

◆ getStatus()

short TBR_AnalogSensor::getStatus ( )
inline

Definition at line 305 of file CanBusMotionControl.h.

◆ getUseCalibration()

short TBR_AnalogSensor::getUseCalibration ( )
inline

Definition at line 316 of file CanBusMotionControl.h.

◆ handleAnalog()

bool TBR_AnalogSensor::handleAnalog ( void *  canbus)

Definition at line 925 of file CanBusMotionControl.cpp.

◆ isOpen()

bool TBR_AnalogSensor::isOpen ( )
inline

Definition at line 308 of file CanBusMotionControl.h.

◆ open()

bool TBR_AnalogSensor::open ( int  channels,
AnalogDataFormat  f,
short  bId,
short  useCalib,
bool  isVirtualSensor 
)

Definition at line 750 of file CanBusMotionControl.cpp.

◆ read()

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

Definition at line 784 of file CanBusMotionControl.cpp.

◆ resetCounters()

void TBR_AnalogSensor::resetCounters ( )
inline

Definition at line 278 of file CanBusMotionControl.h.

◆ setDeviceId()

void TBR_AnalogSensor::setDeviceId ( std::string  id)
inline

Definition at line 292 of file CanBusMotionControl.h.

Member Data Documentation

◆ backDoor

TBR_CanBackDoor* TBR_AnalogSensor::backDoor

Definition at line 272 of file CanBusMotionControl.h.


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