41 #ifndef YOCTO_POWERSUPPLY_H 42 #define YOCTO_POWERSUPPLY_H 55 #ifndef _Y_POWEROUTPUT_ENUM 56 #define _Y_POWEROUTPUT_ENUM 63 #ifndef _Y_VOLTAGESENSE_ENUM 64 #define _Y_VOLTAGESENSE_ENUM 71 #define Y_VOLTAGESETPOINT_INVALID (YAPI_INVALID_DOUBLE) 72 #define Y_CURRENTLIMIT_INVALID (YAPI_INVALID_DOUBLE) 73 #define Y_MEASUREDVOLTAGE_INVALID (YAPI_INVALID_DOUBLE) 74 #define Y_MEASUREDCURRENT_INVALID (YAPI_INVALID_DOUBLE) 75 #define Y_INPUTVOLTAGE_INVALID (YAPI_INVALID_DOUBLE) 76 #define Y_VINT_INVALID (YAPI_INVALID_DOUBLE) 77 #define Y_LDOTEMPERATURE_INVALID (YAPI_INVALID_DOUBLE) 78 #define Y_VOLTAGETRANSITION_INVALID (YAPI_INVALID_STRING) 79 #define Y_VOLTAGEATSTARTUP_INVALID (YAPI_INVALID_DOUBLE) 80 #define Y_CURRENTATSTARTUP_INVALID (YAPI_INVALID_DOUBLE) 81 #define Y_COMMAND_INVALID (YAPI_INVALID_STRING) 93 #pragma option push -w-8022 155 int set_voltageSetPoint(
double newval);
157 {
return this->set_voltageSetPoint(newval); }
166 double get_voltageSetPoint(
void);
169 {
return this->get_voltageSetPoint(); }
180 int set_currentLimit(
double newval);
182 {
return this->set_currentLimit(newval); }
191 double get_currentLimit(
void);
194 {
return this->get_currentLimit(); }
206 {
return this->get_powerOutput(); }
219 {
return this->set_powerOutput(newval); }
231 {
return this->get_voltageSense(); }
244 {
return this->set_voltageSense(newval); }
253 double get_measuredVoltage(
void);
256 {
return this->get_measuredVoltage(); }
265 double get_measuredCurrent(
void);
268 {
return this->get_measuredCurrent(); }
277 double get_inputVoltage(
void);
280 {
return this->get_inputVoltage(); }
289 double get_vInt(
void);
292 {
return this->get_vInt(); }
301 double get_ldoTemperature(
void);
304 {
return this->get_ldoTemperature(); }
306 string get_voltageTransition(
void);
309 {
return this->get_voltageTransition(); }
311 int set_voltageTransition(
const string& newval);
313 {
return this->set_voltageTransition(newval); }
325 int set_voltageAtStartUp(
double newval);
327 {
return this->set_voltageAtStartUp(newval); }
336 double get_voltageAtStartUp(
void);
339 {
return this->get_voltageAtStartUp(); }
351 int set_currentAtStartUp(
double newval);
353 {
return this->set_currentAtStartUp(newval); }
362 double get_currentAtStartUp(
void);
365 {
return this->get_currentAtStartUp(); }
367 string get_command(
void);
370 {
return this->get_command(); }
372 int set_command(
const string& newval);
374 {
return this->set_command(newval); }
431 virtual int voltageMove(
double V_target,
int ms_duration);
446 {
return this->nextPowerSupply();}
YPowerSupplyValueCallback _valueCallbackPowerSupply
int setCommand(const string &newval)
static const double CURRENTLIMIT_INVALID
static const double CURRENTATSTARTUP_INVALID
void(* YPowerSupplyValueCallback)(YPowerSupply *func, const string &functionValue)
YPowerSupply * yFindPowerSupply(const string &func)
Y_POWEROUTPUT_enum powerOutput(void)
static const double INPUTVOLTAGE_INVALID
static const string VOLTAGETRANSITION_INVALID
YPowerSupply * next(void)
static const double LDOTEMPERATURE_INVALID
static const double VINT_INVALID
static YPowerSupply * FirstPowerSupply(void)
double currentAtStartUp(void)
static YPowerSupply * First(void)
static const double MEASUREDVOLTAGE_INVALID
double measuredCurrent(void)
int setPowerOutput(Y_POWEROUTPUT_enum newval)
int setVoltageSetPoint(double newval)
virtual int _parseAttr(YJSONObject *json_val)
static const double VOLTAGESETPOINT_INVALID
int setCurrentLimit(double newval)
string _voltageTransition
int setCurrentAtStartUp(double newval)
Y_POWEROUTPUT_enum _powerOutput
int setVoltageTransition(const string &newval)
YPowerSupply * yFirstPowerSupply(void)
static const string COMMAND_INVALID
virtual int registerValueCallback(YFunctionValueCallback callback)
int setVoltageAtStartUp(double newval)
static YPowerSupply * FindPowerSupply(string func)
static const double MEASUREDCURRENT_INVALID
#define YOCTO_CLASS_EXPORT
double currentLimit(void)
Y_VOLTAGESENSE_enum _voltageSense
double voltageAtStartUp(void)
double voltageSetPoint(void)
string voltageTransition(void)
double inputVoltage(void)
Y_VOLTAGESENSE_enum voltageSense(void)
static YPowerSupply * Find(string func)
int setVoltageSense(Y_VOLTAGESENSE_enum newval)
double ldoTemperature(void)
static const double VOLTAGEATSTARTUP_INVALID
virtual int _invokeValueCallback(string value)
double measuredVoltage(void)