![]() |
HAN-FUN API
1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
|
XY Transition. More...
#include <colour_control.h>
Public Member Functions | |
XY_Transition_Continuous (IServer &_server, uint16_t period, int16_t X_step=0, int16_t Y_step=0) | |
Constructor. More... | |
XY_Transition_Continuous ()=default | |
Default constructor. | |
~XY_Transition_Continuous () | |
Empty destructor. | |
bool | run (uint16_t time) |
Run the transition. More... | |
bool | next () |
Check if the transition should continue. More... | |
![]() | |
ITransition (IServer &_server, uint16_t period) | |
Constructor. More... | |
Data Fields | |
int16_t | X_step |
X step. More... | |
int16_t | Y_step |
Y step. More... | |
![]() | |
IServer & | server |
The server instance. | |
uint16_t | period |
Time period for the transition (in 100 msec units). More... | |
uint16_t | remaining_time |
Remaining time until the transition is ran. More... | |
XY Transition.
Definition at line 1159 of file colour_control.h.
|
inline |
Constructor.
[in] | _server | server instance. |
[in] | period | the transition period (units of 100msec). |
[in] | X_step | the X step size for each transition iteration. |
[in] | Y_step | the Y step size for each transition iteration. |
Definition at line 1172 of file colour_control.h.
|
inlinevirtual |
Check if the transition should continue.
true | the transition continues. |
false | the transition ended. |
Implements HF::Interfaces::ColourControl::ITransition.
Definition at line 1186 of file colour_control.h.
References HF::Interfaces::ColourControl::ITransition::period.
|
virtual |
Run the transition.
This will update the remaining time and check if the transition should run.
[in] | time | time elapsed time since the last call. |
true | run the transition specialization. |
false | don't run the transition specialization. |
Reimplemented from HF::Interfaces::ColourControl::ITransition.
int16_t HF::Interfaces::ColourControl::XY_Transition_Continuous::X_step |
X step.
Definition at line 1161 of file colour_control.h.
int16_t HF::Interfaces::ColourControl::XY_Transition_Continuous::Y_step |
Y step.
Definition at line 1162 of file colour_control.h.