voor willem test

Dependencies:   4DGL MODSERIAL mbed mbos

Committer:
LvdK
Date:
Thu Jul 17 10:09:14 2014 +0000
Revision:
7:6576a287e563
CDU V21

Who changed what in which revision?

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