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
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

unsigned int AgendaType::cycle

length in 10e of ms of a cycle between two events

int AgendaType::counter

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,

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

Agenda* AgendaType::next

pointer on the next agenda

Agenda* AgendaType::next


The documentation for this struct was generated from the following files:
Generated on Fri Feb 29 14:26:55 2008 for e-puck by  doxygen 1.5.4