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 #define Y_MAXTIMEONSTATEA_INVALID (YAPI_INVALID_LONG) 98 #define Y_MAXTIMEONSTATEB_INVALID (YAPI_INVALID_LONG) 99 #define Y_PULSETIMER_INVALID (YAPI_INVALID_LONG) 100 #define Y_COUNTDOWN_INVALID (YAPI_INVALID_LONG) 117 #pragma option push -w-8022 140 YRelay(
const string& func);
174 {
return this->get_state(); }
188 {
return this->set_state(newval); }
203 {
return this->get_stateAtPowerOn(); }
218 {
return this->set_stateAtPowerOn(newval); }
228 s64 get_maxTimeOnStateA(
void);
231 {
return this->get_maxTimeOnStateA(); }
243 int set_maxTimeOnStateA(s64 newval);
245 {
return this->set_maxTimeOnStateA(newval); }
255 s64 get_maxTimeOnStateB(
void);
258 {
return this->get_maxTimeOnStateB(); }
270 int set_maxTimeOnStateB(s64 newval);
272 {
return this->set_maxTimeOnStateB(newval); }
285 {
return this->get_output(); }
299 {
return this->set_output(newval); }
311 s64 get_pulseTimer(
void);
314 {
return this->get_pulseTimer(); }
316 int set_pulseTimer(s64 newval);
318 {
return this->set_pulseTimer(newval); }
330 int pulse(
int ms_duration);
335 {
return this->get_delayedPulseTimer(); }
339 {
return this->set_delayedPulseTimer(newval); }
351 int delayedPulse(
int ms_delay,
int ms_duration);
362 s64 get_countdown(
void);
365 {
return this->get_countdown(); }
394 static YRelay* FindRelay(
string func);
425 {
return this->nextRelay();}
436 static YRelay* FirstRelay(
void);
Y_OUTPUT_enum output(void)
int setState(Y_STATE_enum newval)
void(* YRelayValueCallback)(YRelay *func, const string &functionValue)
static YRelay * FirstRelay(void)
int setMaxTimeOnStateB(s64 newval)
YRelay * yFindRelay(const string &func)
Y_STATEATPOWERON_enum stateAtPowerOn(void)
Y_STATEATPOWERON_enum _stateAtPowerOn
#define YAPI_INVALID_LONG
int setStateAtPowerOn(Y_STATEATPOWERON_enum newval)
static YRelay * Find(string func)
bool operator==(const YDelayedPulse &o) const
int setMaxTimeOnStateA(s64 newval)
YRelay * yFirstRelay(void)
static YRelay * FindRelay(string func)
#define YAPI_INVALID_UINT
virtual int _parseAttr(YJSONObject *json_val)
int setPulseTimer(s64 newval)
YRelayValueCallback _valueCallbackRelay
static const YDelayedPulse DELAYEDPULSETIMER_INVALID
virtual int registerValueCallback(YFunctionValueCallback callback)
YDelayedPulse _delayedPulseTimer
#define YOCTO_CLASS_EXPORT
YDelayedPulse delayedPulseTimer(void)
int setOutput(Y_OUTPUT_enum newval)
int setDelayedPulseTimer(YDelayedPulse newval)
static YRelay * First(void)
s64 maxTimeOnStateB(void)
s64 maxTimeOnStateA(void)
virtual int _invokeValueCallback(string value)