heat control
r71
|
Go to the source code of this file.
Data Structures | |
struct | SETUP_ITEM |
Macros | |
#define | NUM_SETUPS 13 |
#define | POS_1ST_VAL 0 |
#define | POS_2ND_VAL 9 |
#define | POS_1ST_NAME 0 |
#define | POS_2ND_NAME 13 |
#define | POS_GRP_START 5 |
#define | SU_NAME_LEN 3 |
#define | SZ_SETUP_ITEM sizeof(SETUP_ITEM) |
#define | POS_STP_NIT 0 |
#define | POS_STP_OIT 1 |
#define | POS_STP_ARV 2 |
#define | POS_STP_RCV 3 |
#define | POS_STP_RRI 4 |
#define | POS_STP_SMI 5 |
#define | POS_STP_SDT 6 |
#define | POS_STP_SDD 7 |
#define | POS_STP_ECD 8 |
#define | POS_STP_HCI 9 |
#define | POS_STP_IVM 10 |
#define | POS_STP_DET 11 |
#define | POS_STP_TRA 11 |
#define | NUM_MSR 12 |
Typedefs | |
typedef struct SETUP_ITEM | SETUP_ITEM |
typedef enum SETUP_GROUP | SETUP_GROUP |
Enumerations | |
enum | SETUP_GROUP { SG_CTRL = 0, SG_MEAS, SG_LIMIT } |
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 | |
UINT | g_setVals [NUM_SETUPS] |
#define NUM_MSR 12 |
#define NUM_SETUPS 13 |
number of setup items in eeprom
Definition at line 14 of file setup.h.
Referenced by DoSetup(), GetSetupValues(), PrintPage(), and SetSetupValues().
#define POS_1ST_NAME 0 |
position of name of first setup value
Definition at line 26 of file setup.h.
Referenced by WriteSetupValue().
#define POS_1ST_VAL 0 |
position of first setup value on screen
Definition at line 18 of file setup.h.
Referenced by WriteSetupValue().
#define POS_2ND_NAME 13 |
position of name of second setup value
Definition at line 30 of file setup.h.
Referenced by WriteSetupValue().
#define POS_2ND_VAL 9 |
position of second setup value on screen
Definition at line 22 of file setup.h.
Referenced by WriteSetupValue().
#define POS_GRP_START 5 |
default start position for group name printing
Definition at line 34 of file setup.h.
Referenced by WriteSetupGroup().
#define POS_STP_DET 11 |
#define POS_STP_ECD 8 |
#define POS_STP_HCI 9 |
#define POS_STP_IVM 10 |
#define POS_STP_NIT 0 |
#define POS_STP_OIT 1 |
#define POS_STP_RCV 3 |
#define POS_STP_RRI 4 |
#define POS_STP_SDD 7 |
#define POS_STP_SDT 6 |
#define POS_STP_SMI 5 |
#define POS_STP_TRA 11 |
#define SZ_SETUP_ITEM sizeof(SETUP_ITEM) |
typedef enum SETUP_GROUP SETUP_GROUP |
definition of a setup group (resolved to names at runtime)
typedef struct SETUP_ITEM SETUP_ITEM |
definition of a setup item
enum SETUP_GROUP |
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] |
global setup values (payload only) for modification at runtime
Definition at line 103 of file setup.h.
Referenced by DoSetup(), GetSetupValues(), and PrintPage().