Elisa3
AgendaType Struct Reference

srtuct Agenda as chained list More...

#include <e_agenda.h>

Data Fields

unsigned int cycle
int counter
char activate
void(* function )(void)
Agendanext

Detailed Description

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.


Field Documentation

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,

Warning:
This function must have the following prototype: "void func(void)"

pointer on the next agenda


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Defines