#include <e_agenda.h>
Data Fields | |
| unsigned int | cycle |
| int | counter |
| char | activate |
| void(* | function )(void) |
| Agenda * | next |
| Agenda * | next |
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.
| unsigned int AgendaType::cycle |
length in 10e of ms of a cycle between two events
count the number of interrupts
| char AgendaType::activate |
can be on=1 or off=0
| void(* AgendaType::function)(void) | ( | void | ) |
function called when counter > cycle,
pointer on the next agenda
1.5.4