41 #ifndef YOCTO_DUALPOWER_H 42 #define YOCTO_DUALPOWER_H 55 #ifndef _Y_POWERSTATE_ENUM 56 #define _Y_POWERSTATE_ENUM 64 #ifndef _Y_POWERCONTROL_ENUM 65 #define _Y_POWERCONTROL_ENUM 74 #define Y_EXTVOLTAGE_INVALID (YAPI_INVALID_UINT) 89 #pragma option push -w-8022 136 {
return this->get_powerState(); }
149 {
return this->get_powerControl(); }
164 {
return this->set_powerControl(newval); }
173 int get_extVoltage(
void);
176 {
return this->get_extVoltage(); }
205 static YDualPower* FindDualPower(
string func);
236 {
return this->nextDualPower();}
Y_POWERSTATE_enum _powerState
int setPowerControl(Y_POWERCONTROL_enum newval)
static YDualPower * Find(string func)
#define YAPI_INVALID_UINT
Y_POWERCONTROL_enum _powerControl
Y_POWERSTATE_enum powerState(void)
void(* YDualPowerValueCallback)(YDualPower *func, const string &functionValue)
virtual int _parseAttr(YJSONObject *json_val)
YDualPower * yFirstDualPower(void)
YDualPowerValueCallback _valueCallbackDualPower
virtual int registerValueCallback(YFunctionValueCallback callback)
static YDualPower * FindDualPower(string func)
#define YOCTO_CLASS_EXPORT
static YDualPower * FirstDualPower(void)
static YDualPower * First(void)
Y_POWERCONTROL_enum powerControl(void)
virtual int _invokeValueCallback(string value)
YDualPower * yFindDualPower(const string &func)