Firmware SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
bc_ramp

Ramping algorithm library (e.g. can be used for PWM up/down ramping for LED control, motor control, etc.) More...

Functions

void bc_ramp_init (bc_ramp_t *self, float start, float stop, bc_tick_t duration)
 Initialize ramp instance. More...
 
void bc_ramp_start (bc_ramp_t *self)
 Start ramp sequence. More...
 
float bc_ramp_get (bc_ramp_t *self)
 Get current ramp value. More...
 

Detailed Description

Ramping algorithm library (e.g. can be used for PWM up/down ramping for LED control, motor control, etc.)

Function Documentation

float bc_ramp_get ( bc_ramp_t *  self)

Get current ramp value.

Parameters
[in]selfInstance
Returns
Ramp point

Definition at line 24 of file bc_ramp.c.

Here is the call graph for this function:

void bc_ramp_init ( bc_ramp_t *  self,
float  start,
float  stop,
bc_tick_t  duration 
)

Initialize ramp instance.

Parameters
[in]selfInstance
[in]startStart point
[in]stopStop point
[in]durationRamp duration in ticks

Definition at line 5 of file bc_ramp.c.

void bc_ramp_start ( bc_ramp_t *  self)

Start ramp sequence.

Parameters
[in]selfInstance

Definition at line 16 of file bc_ramp.c.

Here is the call graph for this function: