C++ file for display control

Dependencies:   4DGL mbed ConfigFile

Fork of 4DGLtest by Stephane ROCHON

Committer:
WillemBraat
Date:
Wed Jul 16 19:15:40 2014 +0000
Revision:
11:a5b0d98794c0
Parent:
7:779c5b8d3b14
Rewritten function CDU_DSP_CSS()

Who changed what in which revision?

UserRevisionLine numberNew contents of line
WillemBraat 7:779c5b8d3b14 1 // L. van der Kolk, ELVEDEKA, Holland //
WillemBraat 7:779c5b8d3b14 2 // File: FS_datastructures.h
WillemBraat 7:779c5b8d3b14 3 // Global data structures containing updated data received from FS
WillemBraat 7:779c5b8d3b14 4
WillemBraat 7:779c5b8d3b14 5 // ---- FS-to-CDU data structures to be filled with received data ---------------------------------------------------------------------------
WillemBraat 7:779c5b8d3b14 6
WillemBraat 7:779c5b8d3b14 7 // Background colour of CDU display:
WillemBraat 7:779c5b8d3b14 8 extern struct { int BG_RED; // : RED value 0 - 255
WillemBraat 7:779c5b8d3b14 9 int BG_GREEN; // : GREEN value 0 - 255
WillemBraat 7:779c5b8d3b14 10 int BG_BLUE; // : BLUE value 0 - 255
WillemBraat 7:779c5b8d3b14 11 } BACKGROUND_COL;
WillemBraat 7:779c5b8d3b14 12
WillemBraat 7:779c5b8d3b14 13 // Main text lines at selectkeys:
WillemBraat 7:779c5b8d3b14 14 extern struct { char text[52]; // : maintext string, ending with '\0'
WillemBraat 7:779c5b8d3b14 15 int font_size; // : fontsize of textline 0 or 1
WillemBraat 7:779c5b8d3b14 16 char font_style; // : style character S or N
WillemBraat 7:779c5b8d3b14 17 int text_RED; // : RED value of textline 0 - 255
WillemBraat 7:779c5b8d3b14 18 int text_GREEN; // : GREEN value of textline 0 - 255
WillemBraat 7:779c5b8d3b14 19 int text_BLUE; // : BLUE value of textline 0 - 255
WillemBraat 7:779c5b8d3b14 20 } SELKEY_MAINTEXT[]; // : array of selectkey Maintext structures
WillemBraat 7:779c5b8d3b14 21
WillemBraat 7:779c5b8d3b14 22 // Sub text lines at selectkeys:
WillemBraat 7:779c5b8d3b14 23 extern struct { char text[52]; // : subtext string, ending with '\0'
WillemBraat 7:779c5b8d3b14 24 int font_size; // : fontsize of textline 0 or 1
WillemBraat 7:779c5b8d3b14 25 char font_style; // : style character S or N
WillemBraat 7:779c5b8d3b14 26 int text_RED; // : RED value of textline 0 - 255
WillemBraat 7:779c5b8d3b14 27 int text_GREEN; // : GREEN value of textline 0 - 255
WillemBraat 7:779c5b8d3b14 28 int text_BLUE; // : BLUE value of textline 0 - 255
WillemBraat 7:779c5b8d3b14 29 } SELKEY_SUBTEXT[]; // : array of selectkey Subtext structures
WillemBraat 7:779c5b8d3b14 30
WillemBraat 7:779c5b8d3b14 31 // Screen textlines:
WillemBraat 7:779c5b8d3b14 32 extern struct { char text[52]; // : text line string, ending with '\0'
WillemBraat 7:779c5b8d3b14 33 int font_size; // : fontsize of textline 0 or 1
WillemBraat 7:779c5b8d3b14 34 char font_style; // : style character S or N
WillemBraat 7:779c5b8d3b14 35 int text_RED; // : RED value of textline 0 - 255
WillemBraat 7:779c5b8d3b14 36 int text_GREEN; // : GREEN value of textline 0 - 255
WillemBraat 7:779c5b8d3b14 37 int text_BLUE; // : BLUE value of textline 0 - 255
WillemBraat 7:779c5b8d3b14 38 } TEXTLINE[]; // : array of textline structures
WillemBraat 7:779c5b8d3b14 39
WillemBraat 7:779c5b8d3b14 40 // CDU status:
WillemBraat 7:779c5b8d3b14 41 extern struct { int msg_indicator; // : MSG 0 = light OFF, 1 = light ON
WillemBraat 7:779c5b8d3b14 42 int exec_indicator; // : EXEC 0 = indicator OFF, 1 = indicator ON
WillemBraat 7:779c5b8d3b14 43 int fail_indicator; // : FAIL 0 = indicator OFF, 1 = indicator ON
WillemBraat 7:779c5b8d3b14 44 int dspy_indicator; // : DSPY 0 = indicator OFF, 1 = indicator ON
WillemBraat 7:779c5b8d3b14 45 int ofst_indicator; // : OFST 0 = indicator OFF, 1 = indicator ON
WillemBraat 7:779c5b8d3b14 46 int backlight; // : 0 = light OFF, 1 = light ON
WillemBraat 7:779c5b8d3b14 47 int stby_mode; // : 0 = operational mode, 1 = standby mode
WillemBraat 7:779c5b8d3b14 48 } CDU_STATUS;
WillemBraat 7:779c5b8d3b14 49
WillemBraat 7:779c5b8d3b14 50
WillemBraat 7:779c5b8d3b14 51 // FS_data_update_ID:
WillemBraat 7:779c5b8d3b14 52 // These global flags indicate what data has been updated.
WillemBraat 7:779c5b8d3b14 53 // Should be tested when FS_DATA_EVENT occurs.
WillemBraat 7:779c5b8d3b14 54 extern int Background_Col_Update; // : 1 when color was updated, must be reset to 0 when data has been read
WillemBraat 7:779c5b8d3b14 55 extern int CDU_Status_Update ; // : 1 when status was updated, must be reset to 0 when data has been read
WillemBraat 7:779c5b8d3b14 56 extern int DO_CLR_SCREEN ; // : 1 when screen should be cleared, must be reset to 0 when done
WillemBraat 7:779c5b8d3b14 57 extern int Text_Line_Update ; // : equal to line number whose text was updated, must be reset to 0 when text has been read
WillemBraat 7:779c5b8d3b14 58 extern int Key_Maintext_Update ; // : equal to keynumber whose main text line was updated, must be reset to -1 (!)when text has been read
WillemBraat 7:779c5b8d3b14 59 extern int Key_Subtext_Update ; // : equal to keynumber whose sub text line was updated, must be reset to -1 (!) when text has been read
WillemBraat 7:779c5b8d3b14 60