Firmware SDK
|
Ramping algorithm library (e.g. can be used for PWM up/down ramping for LED control, motor control, etc.) More...
Functions | |
void | twr_ramp_init (twr_ramp_t *self, float start, float stop, twr_tick_t duration) |
Initialize ramp instance. More... | |
void | twr_ramp_start (twr_ramp_t *self) |
Start ramp sequence. More... | |
float | twr_ramp_get (twr_ramp_t *self) |
Get current ramp value. More... | |
Ramping algorithm library (e.g. can be used for PWM up/down ramping for LED control, motor control, etc.)
float twr_ramp_get | ( | twr_ramp_t * | self | ) |
Get current ramp value.
[in] | self | Instance |
Definition at line 24 of file twr_ramp.c.
void twr_ramp_init | ( | twr_ramp_t * | self, |
float | start, | ||
float | stop, | ||
twr_tick_t | duration | ||
) |
Initialize ramp instance.
[in] | self | Instance |
[in] | start | Start point |
[in] | stop | Stop point |
[in] | duration | Ramp duration in ticks |
Definition at line 5 of file twr_ramp.c.
void twr_ramp_start | ( | twr_ramp_t * | self | ) |
Start ramp sequence.
[in] | self | Instance |
Definition at line 16 of file twr_ramp.c.