Aguijón Software Libraries  1.0
Documentation for the included Libraries
 All Files Functions Variables Typedefs Enumerations Enumerator Macros
demo.h File Reference

Go to the source code of this file.

Macros

#define STATE_COUNT   3
 We have 4 demo states.- 0 -> 3 = 4.
 

Functions

void keyPressHandler (void)
 
void DemoMenu (void)
 
unsigned char get_state (void)
 
void set_state (unsigned char value)
 

Macro Definition Documentation

#define STATE_COUNT   3

We have 4 demo states.- 0 -> 3 = 4.

Definition at line 4 of file demo.h.

Function Documentation

void DemoMenu ( void  )

Function: DemoMenu

Preconditions: None.

Overview: Handles the main demo state machine.

Arguments: None.

Returns: None.

Definition at line 191 of file demo.c.

unsigned char get_state ( void  )

Function: get_State

Preconditions: None.

Overview: Returns the current demo state.

Arguments: None.

Returns: None.

Definition at line 155 of file demo.c.

void keyPressHandler ( void  )

Function: keyPressHandler

Preconditions: None.

Overview: Depending on the demo state, executes different events when a switch is pressed.

Arguments: None.

Returns: None.

Definition at line 74 of file demo.c.

void set_state ( unsigned char  value)

Function: set_State

Preconditions: None.

Overview: Sets the demo state to a specified one.

Arguments: New demo state value.

Returns: None.

Definition at line 171 of file demo.c.