55 #ifndef _Y_ENABLED_ENUM 56 #define _Y_ENABLED_ENUM 76 return (target == o.
target) && (ms == o.
ms) && (moving == o.
moving);
80 #ifndef _Y_ENABLEDATPOWERON_ENUM 81 #define _Y_ENABLEDATPOWERON_ENUM 88 #define Y_POSITION_INVALID (YAPI_INVALID_INT) 89 #define Y_RANGE_INVALID (YAPI_INVALID_UINT) 90 #define Y_NEUTRAL_INVALID (YAPI_INVALID_UINT) 91 #define Y_POSITIONATPOWERON_INVALID (YAPI_INVALID_INT) 105 #pragma option push -w-8022 127 YServo(
const string& func);
153 int get_position(
void);
156 {
return this->get_position(); }
167 int set_position(
int newval);
169 {
return this->set_position(newval); }
181 {
return this->get_enabled(); }
194 {
return this->set_enabled(newval); }
206 {
return this->get_range(); }
223 int set_range(
int newval);
225 {
return this->set_range(newval); }
234 int get_neutral(
void);
237 {
return this->get_neutral(); }
254 int set_neutral(
int newval);
256 {
return this->set_neutral(newval); }
258 YMove get_move(
void);
261 {
return this->get_move(); }
263 int set_move(
YMove newval);
265 {
return this->set_move(newval); }
277 int move(
int target,
int ms_duration);
286 int get_positionAtPowerOn(
void);
289 {
return this->get_positionAtPowerOn(); }
301 int set_positionAtPowerOn(
int newval);
303 {
return this->set_positionAtPowerOn(newval); }
316 {
return this->get_enabledAtPowerOn(); }
330 {
return this->set_enabledAtPowerOn(newval); }
359 static YServo* FindServo(
string func);
390 {
return this->nextServo();}
401 static YServo* FirstServo(
void);
static const YMove MOVE_INVALID
int setNeutral(int newval)
int setMove(YMove newval)
static YServo * FindServo(string func)
YServo * yFindServo(const string &func)
static YServo * First(void)
#define YAPI_INVALID_UINT
Y_ENABLEDATPOWERON_enum enabledAtPowerOn(void)
Y_ENABLEDATPOWERON_enum _enabledAtPowerOn
int setPositionAtPowerOn(int newval)
virtual int _parseAttr(YJSONObject *json_val)
static YServo * FirstServo(void)
Y_ENABLED_enum enabled(void)
YServo * yFirstServo(void)
int positionAtPowerOn(void)
void(* YServoValueCallback)(YServo *func, const string &functionValue)
virtual int registerValueCallback(YFunctionValueCallback callback)
int setEnabledAtPowerOn(Y_ENABLEDATPOWERON_enum newval)
#define YOCTO_CLASS_EXPORT
int setEnabled(Y_ENABLED_enum newval)
static YServo * Find(string func)
bool operator==(const YMove &o) const
YServoValueCallback _valueCallbackServo
int setPosition(int newval)
virtual int _invokeValueCallback(string value)