41 #ifndef YOCTO_ACCELEROMETER_H 42 #define YOCTO_ACCELEROMETER_H 57 #ifndef _Y_GRAVITYCANCELLATION_ENUM 58 #define _Y_GRAVITYCANCELLATION_ENUM 65 #define Y_BANDWIDTH_INVALID (YAPI_INVALID_INT) 66 #define Y_XVALUE_INVALID (YAPI_INVALID_DOUBLE) 67 #define Y_YVALUE_INVALID (YAPI_INVALID_DOUBLE) 68 #define Y_ZVALUE_INVALID (YAPI_INVALID_DOUBLE) 87 #pragma option push -w-8022 130 int get_bandwidth(
void);
133 {
return this->get_bandwidth(); }
145 int set_bandwidth(
int newval);
147 {
return this->set_bandwidth(newval); }
156 double get_xValue(
void);
159 {
return this->get_xValue(); }
168 double get_yValue(
void);
171 {
return this->get_yValue(); }
180 double get_zValue(
void);
183 {
return this->get_zValue(); }
188 {
return this->get_gravityCancellation(); }
192 {
return this->set_gravityCancellation(newval); }
268 {
return this->nextAccelerometer();}
YAccelerometer * yFindAccelerometer(const string &func)
YAccelerometerValueCallback _valueCallbackAccelerometer
int setBandwidth(int newval)
void(* YAccelerometerValueCallback)(YAccelerometer *func, const string &functionValue)
static const double ZVALUE_INVALID
YAccelerometer * yFirstAccelerometer(void)
YAccelerometerTimedReportCallback _timedReportCallbackAccelerometer
Y_GRAVITYCANCELLATION_enum _gravityCancellation
Y_GRAVITYCANCELLATION_enum gravityCancellation(void)
static const double XVALUE_INVALID
static YAccelerometer * Find(string func)
YAccelerometer * next(void)
void(* YAccelerometerTimedReportCallback)(YAccelerometer *func, YMeasure measure)
virtual int registerTimedReportCallback(YSensorTimedReportCallback callback)
virtual int _invokeTimedReportCallback(YMeasure value)
virtual int _invokeValueCallback(string value)
static YAccelerometer * First(void)
virtual int _parseAttr(YJSONObject *json_val)
Y_GRAVITYCANCELLATION_enum
virtual int registerValueCallback(YSensorValueCallback callback)
#define YOCTO_CLASS_EXPORT
static YAccelerometer * FirstAccelerometer(void)
static const double YVALUE_INVALID
static YAccelerometer * FindAccelerometer(string func)
int setGravityCancellation(Y_GRAVITYCANCELLATION_enum newval)