41 #ifndef YOCTO_COLORLED_H 42 #define YOCTO_COLORLED_H 68 return (target == o.
target) && (ms == o.
ms) && (moving == o.
moving);
72 #define Y_RGBCOLOR_INVALID (YAPI_INVALID_UINT) 73 #define Y_HSLCOLOR_INVALID (YAPI_INVALID_UINT) 74 #define Y_RGBCOLORATPOWERON_INVALID (YAPI_INVALID_UINT) 75 #define Y_BLINKSEQSIZE_INVALID (YAPI_INVALID_UINT) 76 #define Y_BLINKSEQMAXSIZE_INVALID (YAPI_INVALID_UINT) 77 #define Y_BLINKSEQSIGNATURE_INVALID (YAPI_INVALID_UINT) 78 #define Y_COMMAND_INVALID (YAPI_INVALID_STRING) 94 #pragma option push -w-8022 142 int get_rgbColor(
void);
145 {
return this->get_rgbColor(); }
156 int set_rgbColor(
int newval);
158 {
return this->set_rgbColor(newval); }
167 int get_hslColor(
void);
170 {
return this->get_hslColor(); }
181 int set_hslColor(
int newval);
183 {
return this->set_hslColor(newval); }
185 YMove get_rgbMove(
void);
188 {
return this->get_rgbMove(); }
190 int set_rgbMove(
YMove newval);
192 {
return this->set_rgbMove(newval); }
204 int rgbMove(
int rgb_target,
int ms_duration);
206 YMove get_hslMove(
void);
209 {
return this->get_hslMove(); }
211 int set_hslMove(
YMove newval);
213 {
return this->set_hslMove(newval); }
225 int hslMove(
int hsl_target,
int ms_duration);
234 int get_rgbColorAtPowerOn(
void);
237 {
return this->get_rgbColorAtPowerOn(); }
249 int set_rgbColorAtPowerOn(
int newval);
251 {
return this->set_rgbColorAtPowerOn(newval); }
260 int get_blinkSeqSize(
void);
263 {
return this->get_blinkSeqSize(); }
272 int get_blinkSeqMaxSize(
void);
275 {
return this->get_blinkSeqMaxSize(); }
287 int get_blinkSeqSignature(
void);
290 {
return this->get_blinkSeqSignature(); }
292 string get_command(
void);
295 {
return this->get_command(); }
297 int set_command(
const string& newval);
299 {
return this->set_command(newval); }
328 static YColorLed* FindColorLed(
string func);
346 virtual int sendCommand(
string command);
358 virtual int addHslMoveToBlinkSeq(
int HSLcolor,
int msDelay);
370 virtual int addRgbMoveToBlinkSeq(
int RGBcolor,
int msDelay);
380 virtual int startBlinkSeq(
void);
388 virtual int stopBlinkSeq(
void);
396 virtual int resetBlinkSeq(
void);
411 {
return this->nextColorLed();}
int setRgbColor(int newval)
int setHslMove(YMove newval)
static const YMove HSLMOVE_INVALID
YColorLedValueCallback _valueCallbackColorLed
int setRgbColorAtPowerOn(int newval)
#define YAPI_INVALID_UINT
int rgbColorAtPowerOn(void)
YColorLed * yFirstColorLed(void)
static YColorLed * First(void)
static const YMove RGBMOVE_INVALID
virtual int _parseAttr(YJSONObject *json_val)
ROSLIB_DECL std::string command(const std::string &cmd)
int setCommand(const string &newval)
int blinkSeqMaxSize(void)
static YColorLed * FirstColorLed(void)
static YColorLed * Find(string func)
virtual int registerValueCallback(YFunctionValueCallback callback)
YColorLed * yFindColorLed(const string &func)
static YColorLed * FindColorLed(string func)
#define YOCTO_CLASS_EXPORT
int blinkSeqSignature(void)
int setRgbMove(YMove newval)
bool operator==(const YMove &o) const
int setHslColor(int newval)
static const string COMMAND_INVALID
void(* YColorLedValueCallback)(YColorLed *func, const string &functionValue)
virtual int _invokeValueCallback(string value)