41 #ifndef YOCTO_LIGHTSENSOR_H 42 #define YOCTO_LIGHTSENSOR_H 57 #ifndef _Y_MEASURETYPE_ENUM 58 #define _Y_MEASURETYPE_ENUM 84 #pragma option push -w-8022 115 int set_currentValue(
double newval);
117 {
return this->set_currentValue(newval); }
132 int calibrate(
double calibratedVal);
145 {
return this->get_measureType(); }
164 {
return this->set_measureType(newval); }
240 {
return this->nextLightSensor();}
YLightSensor * yFirstLightSensor(void)
Y_MEASURETYPE_enum _measureType
static YLightSensor * First(void)
Y_MEASURETYPE_enum measureType(void)
YLightSensor * yFindLightSensor(const string &func)
int setCurrentValue(double newval)
void(* YLightSensorValueCallback)(YLightSensor *func, const string &functionValue)
YLightSensorTimedReportCallback _timedReportCallbackLightSensor
YLightSensor * next(void)
static YLightSensor * FindLightSensor(string func)
int setMeasureType(Y_MEASURETYPE_enum newval)
YLightSensorValueCallback _valueCallbackLightSensor
virtual int registerTimedReportCallback(YSensorTimedReportCallback callback)
virtual int _invokeTimedReportCallback(YMeasure value)
virtual int _invokeValueCallback(string value)
static YLightSensor * Find(string func)
virtual int _parseAttr(YJSONObject *json_val)
virtual int registerValueCallback(YSensorValueCallback callback)
#define YOCTO_CLASS_EXPORT
static YLightSensor * FirstLightSensor(void)
void(* YLightSensorTimedReportCallback)(YLightSensor *func, YMeasure measure)