41 #ifndef YOCTO_QUADRATUREDECODER_H 42 #define YOCTO_QUADRATUREDECODER_H 57 #ifndef _Y_DECODING_ENUM 58 #define _Y_DECODING_ENUM 65 #define Y_SPEED_INVALID (YAPI_INVALID_DOUBLE) 78 #pragma option push -w-8022 118 int set_currentValue(
double newval);
120 {
return this->set_currentValue(newval); }
129 double get_speed(
void);
132 {
return this->get_speed(); }
145 {
return this->get_decoding(); }
159 {
return this->set_decoding(newval); }
235 {
return this->nextQuadratureDecoder();}
static YQuadratureDecoder * Find(string func)
static YQuadratureDecoder * First(void)
YQuadratureDecoder * next(void)
YQuadratureDecoder * yFirstQuadratureDecoder(void)
static YQuadratureDecoder * FirstQuadratureDecoder(void)
YQuadratureDecoder * yFindQuadratureDecoder(const string &func)
Y_DECODING_enum decoding(void)
virtual int registerTimedReportCallback(YSensorTimedReportCallback callback)
Y_DECODING_enum _decoding
virtual int _invokeTimedReportCallback(YMeasure value)
virtual int _invokeValueCallback(string value)
void(* YQuadratureDecoderValueCallback)(YQuadratureDecoder *func, const string &functionValue)
YQuadratureDecoderValueCallback _valueCallbackQuadratureDecoder
virtual int _parseAttr(YJSONObject *json_val)
int setCurrentValue(double newval)
virtual int registerValueCallback(YSensorValueCallback callback)
void(* YQuadratureDecoderTimedReportCallback)(YQuadratureDecoder *func, YMeasure measure)
#define YOCTO_CLASS_EXPORT
static const double SPEED_INVALID
static YQuadratureDecoder * FindQuadratureDecoder(string func)
int setDecoding(Y_DECODING_enum newval)
YQuadratureDecoderTimedReportCallback _timedReportCallbackQuadratureDecoder