41 #ifndef YOCTO_CURRENTLOOPOUTPUT_H 42 #define YOCTO_CURRENTLOOPOUTPUT_H 55 #ifndef _Y_LOOPPOWER_ENUM 56 #define _Y_LOOPPOWER_ENUM 64 #define Y_CURRENT_INVALID (YAPI_INVALID_DOUBLE) 65 #define Y_CURRENTTRANSITION_INVALID (YAPI_INVALID_STRING) 66 #define Y_CURRENTATSTARTUP_INVALID (YAPI_INVALID_DOUBLE) 78 #pragma option push -w-8022 123 int set_current(
double newval);
125 {
return this->set_current(newval); }
134 double get_current(
void);
137 {
return this->get_current(); }
139 string get_currentTransition(
void);
142 {
return this->get_currentTransition(); }
144 int set_currentTransition(
const string& newval);
146 {
return this->set_currentTransition(newval); }
158 int set_currentAtStartUp(
double newval);
160 {
return this->set_currentAtStartUp(newval); }
169 double get_currentAtStartUp(
void);
172 {
return this->get_currentAtStartUp(); }
187 {
return this->get_loopPower(); }
244 virtual int currentMove(
double mA_target,
int ms_duration);
259 {
return this->nextCurrentLoopOutput();}
static const double CURRENTATSTARTUP_INVALID
string _currentTransition
int setCurrentTransition(const string &newval)
Y_LOOPPOWER_enum _loopPower
static YCurrentLoopOutput * First(void)
int setCurrentAtStartUp(double newval)
double currentAtStartUp(void)
void(* YCurrentLoopOutputValueCallback)(YCurrentLoopOutput *func, const string &functionValue)
static const string CURRENTTRANSITION_INVALID
YCurrentLoopOutputValueCallback _valueCallbackCurrentLoopOutput
virtual int _parseAttr(YJSONObject *json_val)
static const double CURRENT_INVALID
YCurrentLoopOutput * yFindCurrentLoopOutput(const string &func)
Y_LOOPPOWER_enum loopPower(void)
virtual int registerValueCallback(YFunctionValueCallback callback)
string currentTransition(void)
YCurrentLoopOutput * yFirstCurrentLoopOutput(void)
#define YOCTO_CLASS_EXPORT
YCurrentLoopOutput * next(void)
static YCurrentLoopOutput * FindCurrentLoopOutput(string func)
static YCurrentLoopOutput * FirstCurrentLoopOutput(void)
static YCurrentLoopOutput * Find(string func)
int setCurrent(double newval)
virtual int _invokeValueCallback(string value)