heat control  r71
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
lcdisp.h
Go to the documentation of this file.
1 #ifndef __LCDISP_H__
2 #define __LCDISP_H__
3 
4 #include "types.h"
5 
6 
10 #define USE_LCD 16
11 
14 #define NUM_BASE 10
15 
18 #define ALNUM_BASE 0x30
19 
22 #define NUM_LEN 6
23 
26 #define NUM_SDG 5
27 
30 #define VALUE_LENGTH 8
31 
34 #define BR_DBDP 3
35 
38 #define DF_DECPT '.'
39 
42 #define NAME_LENGTH 1
43 
46 #define FW_REV "R071"
47 
51 typedef struct LCD_POS {
54 } LCD_POS;
55 
59 typedef struct MEASVAL {
71  void *value;
76 } MEASVAL;
77 
78 typedef struct SETUP_ITEM SETUP_ITEM;
79 
80 //display initialization
81 void LcdInit(void);
82 //put a measurement value on lcd
83 void WriteMeasVal(MEASVAL* mv);
84 void WriteValue(MEASVAL* mv);
85 void WriteSetupValue(SETUP_ITEM* si, UCHAR allow, UCHAR id);
86 void WriteSetupGroup(UCHAR grp);
87 void WriteCtrlMode(UCHAR name, UCHAR* cmName);
88 //convert unsigned integer to decimal pointed string (pseudo floating point)
89 void ntofa(UINT val, UCHAR* buf, DATTYPE dt);
90 //calculate the exponent to base 10
91 UINT _exp10(UCHAR n);
92 void Welcome(void);
93 
94 #endif
95 
Definition: lcdisp.h:59
void LcdInit(void)
display initialization Alphanumeric LCD initialization Connections are specified in the Project|Confi...
Definition: lcdisp.c:23
UCHAR col
Definition: lcdisp.h:52
struct MEASVAL MEASVAL
void * value
Definition: lcdisp.h:71
void WriteCtrlMode(UCHAR name, UCHAR *cmName)
Definition: lcdisp.c:117
UINT _exp10(UCHAR n)
Definition: lcdisp.c:201
#define UCHAR
Definition: types.h:73
UCHAR name[4]
Definition: setup.h:51
LCD_POS pos
Definition: lcdisp.h:63
UCHAR name
Definition: lcdisp.h:67
void ntofa(UINT val, UCHAR *buf, DATTYPE dt)
convert integer value to fixed decimal point string buffer must have at least a size of 8 bytes alloc...
Definition: lcdisp.c:133
Definition: lcdisp.h:51
UCHAR row
Definition: lcdisp.h:53
DATTYPE dt
Definition: lcdisp.h:75
DATTYPE
Definition: types.h:113
void WriteSetupValue(SETUP_ITEM *si, UCHAR allow, UCHAR id)
put a setup item on screen, which consist of a name and a value spread over two lines ...
Definition: lcdisp.c:72
void WriteMeasVal(MEASVAL *mv)
put a measurement value on lcd source value is being output as fixed decimal point number ...
Definition: lcdisp.c:34
void Welcome(void)
put startup info on screen
Definition: lcdisp.c:225
void WriteValue(MEASVAL *mv)
write the payload value itself onto lcd while considering the data type
Definition: lcdisp.c:44
struct LCD_POS LCD_POS
#define UINT
Definition: types.h:81
void WriteSetupGroup(UCHAR grp)
Definition: lcdisp.c:95