- Main Page
- Modules
- Data Structures
- Files
- Directories

- Data Structures
- Data Fields

# 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)
Agenda * | next
Agenda * | next

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

- motor_led/advance_one_timer/e_agenda.h
- motor_led/advance_one_timer/fast_agenda/e_agenda_fast.h