Elisa3
|
srtuct Agenda as chained list More...
#include <e_agenda.h>
Data Fields | |
unsigned int | cycle |
int | counter |
char | activate |
void(* | function )(void) |
Agenda * | next |
srtuct Agenda as chained list
The role of Agenda is to launch the pointed function when the member "counter" is greater than the member "cycle".
The member "activate" can be on=1 or off=0. When it is off, the counter don't increase.
This struct is designed to be used as chained list so we need a pointer to the next element.
char activate |
can be on=1 or off=0
int counter |
count the number of interrupts
unsigned int cycle |
length in 10e of ms of a cycle between two events
void(* function)(void) |
function called when counter > cycle,