41 #ifndef YOCTO_WATCHDOG_H 42 #define YOCTO_WATCHDOG_H 63 #ifndef _Y_STATEATPOWERON_ENUM 64 #define _Y_STATEATPOWERON_ENUM 72 #ifndef _Y_OUTPUT_ENUM 73 #define _Y_OUTPUT_ENUM 80 #ifndef _CLASS_YDELAYEDPULSE 81 #define _CLASS_YDELAYEDPULSE 93 return (target == o.
target) && (ms == o.
ms) && (moving == o.
moving);
97 #ifndef _Y_AUTOSTART_ENUM 98 #define _Y_AUTOSTART_ENUM 105 #ifndef _Y_RUNNING_ENUM 106 #define _Y_RUNNING_ENUM 113 #define Y_MAXTIMEONSTATEA_INVALID (YAPI_INVALID_LONG) 114 #define Y_MAXTIMEONSTATEB_INVALID (YAPI_INVALID_LONG) 115 #define Y_PULSETIMER_INVALID (YAPI_INVALID_LONG) 116 #define Y_COUNTDOWN_INVALID (YAPI_INVALID_LONG) 117 #define Y_TRIGGERDELAY_INVALID (YAPI_INVALID_LONG) 118 #define Y_TRIGGERDURATION_INVALID (YAPI_INVALID_LONG) 134 #pragma option push -w-8022 203 {
return this->get_state(); }
217 {
return this->set_state(newval); }
232 {
return this->get_stateAtPowerOn(); }
247 {
return this->set_stateAtPowerOn(newval); }
257 s64 get_maxTimeOnStateA(
void);
260 {
return this->get_maxTimeOnStateA(); }
272 int set_maxTimeOnStateA(s64 newval);
274 {
return this->set_maxTimeOnStateA(newval); }
284 s64 get_maxTimeOnStateB(
void);
287 {
return this->get_maxTimeOnStateB(); }
299 int set_maxTimeOnStateB(s64 newval);
301 {
return this->set_maxTimeOnStateB(newval); }
314 {
return this->get_output(); }
328 {
return this->set_output(newval); }
340 s64 get_pulseTimer(
void);
343 {
return this->get_pulseTimer(); }
345 int set_pulseTimer(s64 newval);
347 {
return this->set_pulseTimer(newval); }
359 int pulse(
int ms_duration);
364 {
return this->get_delayedPulseTimer(); }
368 {
return this->set_delayedPulseTimer(newval); }
380 int delayedPulse(
int ms_delay,
int ms_duration);
391 s64 get_countdown(
void);
394 {
return this->get_countdown(); }
406 {
return this->get_autoStart(); }
421 {
return this->set_autoStart(newval); }
433 {
return this->get_running(); }
446 {
return this->set_running(newval); }
457 int resetWatchdog(
void);
467 s64 get_triggerDelay(
void);
470 {
return this->get_triggerDelay(); }
482 int set_triggerDelay(s64 newval);
484 {
return this->set_triggerDelay(newval); }
493 s64 get_triggerDuration(
void);
496 {
return this->get_triggerDuration(); }
507 int set_triggerDuration(s64 newval);
509 {
return this->set_triggerDuration(newval); }
538 static YWatchdog* FindWatchdog(
string func);
569 {
return this->nextWatchdog();}
s64 maxTimeOnStateB(void)
Y_RUNNING_enum running(void)
static YWatchdog * FindWatchdog(string func)
YDelayedPulse delayedPulseTimer(void)
int setPulseTimer(s64 newval)
int setTriggerDelay(s64 newval)
int setMaxTimeOnStateB(s64 newval)
int setOutput(Y_OUTPUT_enum newval)
static YWatchdog * FirstWatchdog(void)
Y_AUTOSTART_enum _autoStart
#define YAPI_INVALID_LONG
YWatchdogValueCallback _valueCallbackWatchdog
bool operator==(const YDelayedPulse &o) const
s64 maxTimeOnStateA(void)
s64 triggerDuration(void)
int setAutoStart(Y_AUTOSTART_enum newval)
#define YAPI_INVALID_UINT
YWatchdog * yFirstWatchdog(void)
YDelayedPulse _delayedPulseTimer
Y_AUTOSTART_enum autoStart(void)
static YWatchdog * First(void)
virtual int _parseAttr(YJSONObject *json_val)
int setDelayedPulseTimer(YDelayedPulse newval)
int setStateAtPowerOn(Y_STATEATPOWERON_enum newval)
YWatchdog * yFindWatchdog(const string &func)
Y_STATEATPOWERON_enum _stateAtPowerOn
virtual int registerValueCallback(YFunctionValueCallback callback)
int setTriggerDuration(s64 newval)
#define YOCTO_CLASS_EXPORT
int setMaxTimeOnStateA(s64 newval)
Y_STATEATPOWERON_enum stateAtPowerOn(void)
int setState(Y_STATE_enum newval)
static const YDelayedPulse DELAYEDPULSETIMER_INVALID
int setRunning(Y_RUNNING_enum newval)
void(* YWatchdogValueCallback)(YWatchdog *func, const string &functionValue)
Y_OUTPUT_enum output(void)
static YWatchdog * Find(string func)
virtual int _invokeValueCallback(string value)