heat control  r71
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
setup.h File Reference
This graph shows which files directly or indirectly include this file:

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...
 
UINTGetSetupValues (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]
 

Macro Definition Documentation

#define NUM_MSR   12

number of MEASSET recordings

Definition at line 175 of file setup.h.

Referenced by main().

#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_ARV   2

ADC reference voltage

Definition at line 123 of file setup.h.

#define POS_STP_DET   11

data position of delta temperature DELTA_TEMP

Definition at line 167 of file setup.h.

#define POS_STP_ECD   8

data position of engine control duration for standard temperature controlling in setup value array

Definition at line 147 of file setup.h.

#define POS_STP_HCI   9

data position of duration of significant outer temp rising in setup value array data position of multiplicator of default delta temp in setup value array data position of recording interval of heating curve in setup value array

Definition at line 159 of file setup.h.

#define POS_STP_IVM   10

data position of measurement interval IV_MEAS

Definition at line 163 of file setup.h.

#define POS_STP_NIT   0

data position of nominal inner temperature in setup value array

Definition at line 115 of file setup.h.

#define POS_STP_OIT   1

inner temperature offset (manual adjustment)

Definition at line 119 of file setup.h.

#define POS_STP_RCV   3

data position of reverse current value of temperature measurement in setup value array

Definition at line 127 of file setup.h.

#define POS_STP_RRI   4

data position of nominal inner sensor resistance in setup value array

Definition at line 131 of file setup.h.

#define POS_STP_SDD   7

data position of shut down duration in setup value array

Definition at line 143 of file setup.h.

#define POS_STP_SDT   6

data position of shutdown threshold for outer temperature in setup value array

Definition at line 139 of file setup.h.

#define POS_STP_SMI   5

interval of measurement value visualization (browsing MEASVAL units)

Definition at line 135 of file setup.h.

#define POS_STP_TRA   11

data position of time to drive the whole mixer control range angle

Definition at line 171 of file setup.h.

#define SU_NAME_LEN   3

length of setup item name

Definition at line 38 of file setup.h.

#define SZ_SETUP_ITEM   sizeof(SETUP_ITEM)

size of a setup item in eeprom

Definition at line 42 of file setup.h.

Referenced by PrintPage().

Typedef Documentation

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

Enumeration Type Documentation

definition of a setup group (resolved to names at runtime)

Enumerator
SG_CTRL 

control

SG_MEAS 

measure

SG_LIMIT 

limit

Definition at line 85 of file setup.h.

Function Documentation

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

Parameters
bcbutton code
opmoperation 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().

Here is the call graph for this function:

Here is the caller graph for this function:

UINT* GetSetupValues ( UCHAR  fromEep)

get payload values from specified memory location

Parameters
fromEeptrue -> values are being read from eeprom, from RAM otherwise
Returns
payload only values

Definition at line 59 of file setup.c.

References g_setVals, ge_setups, NUM_SETUPS, UCHAR, and SETUP_ITEM::value.

Referenced by SetupInit().

Here is the caller graph for this function:

void PrintPage ( UCHAR  id)

takes care of visualization on screen, flashes the selected setup value, identifies selected item and its assigned page number

Parameters
idindex 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().

Here is the call graph for this function:

Here is the caller graph for this function:

void SetSetupValues ( UINT sv)

update payload values in from ram to eeprom

Parameters
svlist of payload values

Definition at line 73 of file setup.c.

References ge_setups, NUM_SETUPS, UCHAR, and SETUP_ITEM::value.

Referenced by DoSetup().

Here is the caller graph for this function:

void SetupInit ( void  )

setup initialization at startup

Definition at line 50 of file setup.c.

References GetSetupValues(), and TRUE.

Referenced by Init().

Here is the call graph for this function:

Here is the caller graph for this function:

void TestButton ( BTN_CODE  bc)

testing diferent button codes by screen visualization (inactive)

Parameters
bcbutton code

Definition at line 155 of file setup.c.

References BC_DN, BC_DNUP, BC_DNUP_L, BC_UP, LCDGotoXY(), LCDstring(), and UCHAR.

Here is the call graph for this function:

Variable Documentation

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().