41 #ifndef YOCTO_PWMINPUT_H 42 #define YOCTO_PWMINPUT_H 57 #ifndef _Y_PWMREPORTMODE_ENUM 58 #define _Y_PWMREPORTMODE_ENUM 71 #define Y_DUTYCYCLE_INVALID (YAPI_INVALID_DOUBLE) 72 #define Y_PULSEDURATION_INVALID (YAPI_INVALID_DOUBLE) 73 #define Y_FREQUENCY_INVALID (YAPI_INVALID_DOUBLE) 74 #define Y_PERIOD_INVALID (YAPI_INVALID_DOUBLE) 75 #define Y_PULSECOUNTER_INVALID (YAPI_INVALID_LONG) 76 #define Y_PULSETIMER_INVALID (YAPI_INVALID_LONG) 77 #define Y_DEBOUNCEPERIOD_INVALID (YAPI_INVALID_UINT) 92 #pragma option push -w-8022 147 double get_dutyCycle(
void);
150 {
return this->get_dutyCycle(); }
160 double get_pulseDuration(
void);
163 {
return this->get_pulseDuration(); }
172 double get_frequency(
void);
175 {
return this->get_frequency(); }
184 double get_period(
void);
187 {
return this->get_period(); }
198 s64 get_pulseCounter(
void);
201 {
return this->get_pulseCounter(); }
203 int set_pulseCounter(s64 newval);
205 {
return this->set_pulseCounter(newval); }
214 s64 get_pulseTimer(
void);
217 {
return this->get_pulseTimer(); }
234 {
return this->get_pwmReportMode(); }
254 {
return this->set_pwmReportMode(newval); }
263 int get_debouncePeriod(
void);
266 {
return this->get_debouncePeriod(); }
277 int set_debouncePeriod(
int newval);
279 {
return this->set_debouncePeriod(newval); }
308 static YPwmInput* FindPwmInput(
string func);
349 virtual int resetCounter(
void);
364 {
return this->nextPwmInput();}
#define YAPI_INVALID_LONG
#define YAPI_INVALID_UINT
virtual int registerTimedReportCallback(YSensorTimedReportCallback callback)
virtual int _invokeTimedReportCallback(YMeasure value)
virtual int _invokeValueCallback(string value)
virtual int _parseAttr(YJSONObject *json_val)
virtual int registerValueCallback(YSensorValueCallback callback)
#define YOCTO_CLASS_EXPORT