Aguijón Software Libraries  1.0
Documentation for the included Libraries
 All Files Functions Variables Typedefs Enumerations Enumerator Macros
demo.c File Reference
#include <p24FJ128GB106.h>
#include "GenericTypeDefs.h"
#include "definitions.h"
#include "inputs.h"
#include "outputs.h"
#include "LCD.h"
#include "init.h"
#include "analog.h"
#include "EEPROM.h"
#include "demo.h"

Go to the source code of this file.

Typedefs

typedef enum __MAIN_STATES MAIN_STATES
 

Enumerations

enum  __MAIN_STATES { TIME, INPUT, OPTO, EEPROM }
 

Functions

void TimeDemo (void)
 
void InputDemo (void)
 
void OptoDemo (void)
 
void EEPROM_demo (void)
 
void keyPressHandler (void)
 
unsigned char get_state (void)
 
void set_state (unsigned char value)
 
void DemoMenu (void)
 

Variables

BOOL toggle = TRUE
 
BOOL toggle2 = TRUE
 
unsigned char backlight_index =4
 
unsigned char message [] = " "
 
unsigned char minutes
 
unsigned char seconds
 

Typedef Documentation

typedef enum __MAIN_STATES MAIN_STATES

Enumeration Type Documentation

Enumerator:
TIME 

Time state

INPUT 
OPTO 
EEPROM 

Definition at line 44 of file demo.c.

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.

void EEPROM_demo ( void  )

Function: EEPROM_demo

Preconditions: None.

Overview: Calls test_EEPROM() and tests the EEPROM.

Arguments: None.

Returns: None.

Definition at line 319 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 InputDemo ( void  )

Function: InputDemo

Preconditions: None.

Overview: Displays DIP switch and ADC values on the LCD.

Arguments: None.

Returns: None.

Definition at line 238 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 OptoDemo ( void  )

Function: OptoDemo

Preconditions: None.

Overview: Displays the Opto Isolated Inputs current state.

Arguments: None.

Returns: None.

Definition at line 278 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.

void TimeDemo ( void  )

Function: TimeDemo

Preconditions: None.

Overview: Displays a clock that uses the internal RTCC module.

Arguments: None.

Returns: None.

Definition at line 212 of file demo.c.

Variable Documentation

unsigned char backlight_index =4

Definition at line 36 of file demo.c.

unsigned char message[] = " "

Definition at line 39 of file demo.c.

unsigned char minutes

Definition at line 50 of file main.c.

unsigned char seconds

Definition at line 51 of file main.c.

BOOL toggle = TRUE

Definition at line 34 of file demo.c.

BOOL toggle2 = TRUE

Definition at line 35 of file demo.c.