41 #ifndef YOCTO_ANBUTTON_H 42 #define YOCTO_ANBUTTON_H 55 #ifndef _Y_ANALOGCALIBRATION_ENUM 56 #define _Y_ANALOGCALIBRATION_ENUM 63 #ifndef _Y_ISPRESSED_ENUM 64 #define _Y_ISPRESSED_ENUM 71 #define Y_CALIBRATEDVALUE_INVALID (YAPI_INVALID_UINT) 72 #define Y_RAWVALUE_INVALID (YAPI_INVALID_UINT) 73 #define Y_CALIBRATIONMAX_INVALID (YAPI_INVALID_UINT) 74 #define Y_CALIBRATIONMIN_INVALID (YAPI_INVALID_UINT) 75 #define Y_SENSITIVITY_INVALID (YAPI_INVALID_UINT) 76 #define Y_LASTTIMEPRESSED_INVALID (YAPI_INVALID_LONG) 77 #define Y_LASTTIMERELEASED_INVALID (YAPI_INVALID_LONG) 78 #define Y_PULSECOUNTER_INVALID (YAPI_INVALID_LONG) 79 #define Y_PULSETIMER_INVALID (YAPI_INVALID_LONG) 95 #pragma option push -w-8022 151 int get_calibratedValue(
void);
154 {
return this->get_calibratedValue(); }
163 int get_rawValue(
void);
166 {
return this->get_rawValue(); }
178 {
return this->get_analogCalibration(); }
192 {
return this->set_analogCalibration(newval); }
202 int get_calibrationMax(
void);
205 {
return this->get_calibrationMax(); }
220 int set_calibrationMax(
int newval);
222 {
return this->set_calibrationMax(newval); }
232 int get_calibrationMin(
void);
235 {
return this->get_calibrationMin(); }
250 int set_calibrationMin(
int newval);
252 {
return this->set_calibrationMin(newval); }
262 int get_sensitivity(
void);
265 {
return this->get_sensitivity(); }
282 int set_sensitivity(
int newval);
284 {
return this->set_sensitivity(newval); }
297 {
return this->get_isPressed(); }
309 s64 get_lastTimePressed(
void);
312 {
return this->get_lastTimePressed(); }
324 s64 get_lastTimeReleased(
void);
327 {
return this->get_lastTimeReleased(); }
338 s64 get_pulseCounter(
void);
341 {
return this->get_pulseCounter(); }
343 int set_pulseCounter(s64 newval);
345 {
return this->set_pulseCounter(newval); }
354 s64 get_pulseTimer(
void);
357 {
return this->get_pulseTimer(); }
386 static YAnButton* FindAnButton(
string func);
411 virtual int resetCounter(
void);
426 {
return this->nextAnButton();}
#define YAPI_INVALID_LONG
#define YAPI_INVALID_UINT
virtual int _parseAttr(YJSONObject *json_val)
virtual int registerValueCallback(YFunctionValueCallback callback)
#define YOCTO_CLASS_EXPORT
virtual int _invokeValueCallback(string value)