heat control
r71
|
#include "types.h"
#include "setup.h"
#include "hc.h"
#include "lcdisp.h"
#include "lcd_lib.h"
#include "timer.h"
#include "comm.h"
Go to the source code of this file.
Functions | |
void | SetupInit (void) |
setup initialization at startup More... | |
UINT * | GetSetupValues (UCHAR fromEep) |
get payload values from specified memory location More... | |
void | SetSetupValues (UINT *sv) |
update payload values in from ram to eeprom More... | |
void | DoSetup (BTN_CODE bc, OP_MODE *opm) |
does the setup job, distinguishes data selection and modification dependent on user pressed buttons and current operation mode More... | |
void | PrintPage (UCHAR id) |
takes care of visualization on screen, flashes the selected setup value, identifies selected item and its assigned page number More... | |
void | TestButton (BTN_CODE bc) |
testing diferent button codes by screen visualization (inactive) More... | |
Variables | |
MEASSET EEMEM | ge_msRec [NUM_MSR] |
SETUP_ITEM EEMEM | ge_setups [NUM_SETUPS] |
UINT | g_setVals [NUM_SETUPS] |
does the setup job, distinguishes data selection and modification dependent on user pressed buttons and current operation mode
bc | button code |
opm | operation mode |
Definition at line 86 of file setup.c.
References BC_DN, BC_DNUP, BC_DNUP_L, BC_UP, DIR_DOWN, DIR_UP, DT_UCHAR, g_setVals, ge_setups, SETUP_ITEM::group, LCDclr(), SETUP_ITEM::max, SETUP_ITEM::min, NUM_SETUPS, OM_SETUP, OM_TMPCTRL, OP_MODES, PrintPage(), SetLimitValue(), SetSetupValues(), SETUP_ITEM::type, UCHAR, and WriteSetupGroup().
Referenced by main().
get payload values from specified memory location
fromEep | true -> values are being read from eeprom, from RAM otherwise |
Definition at line 59 of file setup.c.
References g_setVals, ge_setups, NUM_SETUPS, UCHAR, and SETUP_ITEM::value.
Referenced by SetupInit().
void PrintPage | ( | UCHAR | id | ) |
takes care of visualization on screen, flashes the selected setup value, identifies selected item and its assigned page number
id | index of the current item in eeprom and payload value in ram |
Definition at line 124 of file setup.c.
References g_setVals, ge_setups, GetTenthSec(), NUM_SETUPS, SZ_SETUP_ITEM, TRUE, UCHAR, SETUP_ITEM::value, and WriteSetupValue().
Referenced by DoSetup().
void SetSetupValues | ( | UINT * | sv | ) |
update payload values in from ram to eeprom
sv | list of payload values |
Definition at line 73 of file setup.c.
References ge_setups, NUM_SETUPS, UCHAR, and SETUP_ITEM::value.
Referenced by DoSetup().
void SetupInit | ( | void | ) |
setup initialization at startup
Definition at line 50 of file setup.c.
References GetSetupValues(), and TRUE.
Referenced by Init().
void TestButton | ( | BTN_CODE | bc | ) |
testing diferent button codes by screen visualization (inactive)
bc | button code |
Definition at line 155 of file setup.c.
References BC_DN, BC_DNUP, BC_DNUP_L, BC_UP, LCDGotoXY(), LCDstring(), and UCHAR.
UINT g_setVals[NUM_SETUPS] |
effective (payload) data of each setup item in RAM
global setup values (payload only) for modification at runtime
Definition at line 103 of file setup.h.
Referenced by DoSetup(), GetSetupValues(), and PrintPage().
SETUP_ITEM EEMEM ge_setups[NUM_SETUPS] |
statically allocated list of setup items in eeprom
Definition at line 24 of file setup.c.
Referenced by DoSetup(), GetSetupValues(), PrintPage(), and SetSetupValues().