New work version with additional functions
Dependencies: 4DGL-UC ConfigFile MODSERIAL mbed mbos
Fork of CDU_Mbed_35 by
Diff: FS_datastructures.h
- Revision:
- 8:422544d24df3
- Parent:
- 7:6576a287e563
--- a/FS_datastructures.h Thu Jul 17 10:09:14 2014 +0000 +++ b/FS_datastructures.h Sun Jul 20 16:33:53 2014 +0000 @@ -2,8 +2,7 @@ // File: FS_datastructures.h // Global data structures containing updated data received from FS -// ---- FS-to-CDU data structures to be filled with received data --------------------------------------------------------------------------- - +// ---- FS-to-CDU data structures to be filled with received data ------------------------- // Background colour of CDU display: extern struct { int BG_RED; // : RED value 0 - 255 int BG_GREEN; // : GREEN value 0 - 255 @@ -11,27 +10,27 @@ } BACKGROUND_COL; // Main text lines at selectkeys: -extern struct { char text[52]; // : maintext string, ending with '\0' +extern struct { char text[55]; // : maintext string, ending with '\0' int font_size; // : fontsize of textline 0 or 1 - char font_style; // : style character S or N + char font_style; // : style character int text_RED; // : RED value of textline 0 - 255 int text_GREEN; // : GREEN value of textline 0 - 255 int text_BLUE; // : BLUE value of textline 0 - 255 } SELKEY_MAINTEXT[]; // : array of selectkey Maintext structures // Sub text lines at selectkeys: -extern struct { char text[52]; // : subtext string, ending with '\0' +extern struct { char text[55]; // : subtext string, ending with '\0' int font_size; // : fontsize of textline 0 or 1 - char font_style; // : style character S or N + char font_style; // : style character int text_RED; // : RED value of textline 0 - 255 int text_GREEN; // : GREEN value of textline 0 - 255 int text_BLUE; // : BLUE value of textline 0 - 255 } SELKEY_SUBTEXT[]; // : array of selectkey Subtext structures // Screen textlines: -extern struct { char text[52]; // : text line string, ending with '\0' +extern struct { char text[55]; // : text line string, ending with '\0' int font_size; // : fontsize of textline 0 or 1 - char font_style; // : style character S or N + char font_style; // : style character int text_RED; // : RED value of textline 0 - 255 int text_GREEN; // : GREEN value of textline 0 - 255 int text_BLUE; // : BLUE value of textline 0 - 255 @@ -49,8 +48,7 @@ // FS_data_update_ID: -// These global flags indicate what data has been updated. -// Should be tested when FS_DATA_EVENT occurs. +// These global flags indicate what data has been updated: extern int Background_Col_Update; // : 1 when color was updated, must be reset to 0 when data has been read extern int CDU_Status_Update ; // : 1 when status was updated, must be reset to 0 when data has been read extern int DO_CLR_SCREEN ; // : 1 when screen should be cleared, must be reset to 0 when done