New work version with additional functions
Dependencies: 4DGL-UC ConfigFile MODSERIAL mbed mbos
Fork of CDU_Mbed_35 by
FS_datastructures.h@20:2d6ac4577e68, 2014-10-08 (annotated)
- Committer:
- WillemBraat
- Date:
- Wed Oct 08 14:14:52 2014 +0000
- Revision:
- 20:2d6ac4577e68
- Parent:
- 8:422544d24df3
New release with additional new functions.
; * File handling for config files
; * CDU setup & test screens
; * External power monitoring
Who changed what in which revision?
User | Revision | Line number | New 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 | 8:422544d24df3 | 5 | // ---- FS-to-CDU data structures to be filled with received data ------------------------- |
LvdK | 7:6576a287e563 | 6 | // Background colour of CDU display: |
LvdK | 7:6576a287e563 | 7 | extern struct { int BG_RED; // : RED value 0 - 255 |
LvdK | 7:6576a287e563 | 8 | int BG_GREEN; // : GREEN value 0 - 255 |
LvdK | 7:6576a287e563 | 9 | int BG_BLUE; // : BLUE value 0 - 255 |
LvdK | 7:6576a287e563 | 10 | } BACKGROUND_COL; |
LvdK | 7:6576a287e563 | 11 | |
LvdK | 7:6576a287e563 | 12 | // Main text lines at selectkeys: |
LvdK | 8:422544d24df3 | 13 | extern struct { char text[55]; // : maintext string, ending with '\0' |
LvdK | 7:6576a287e563 | 14 | int font_size; // : fontsize of textline 0 or 1 |
LvdK | 8:422544d24df3 | 15 | char font_style; // : style character |
LvdK | 7:6576a287e563 | 16 | int text_RED; // : RED value of textline 0 - 255 |
LvdK | 7:6576a287e563 | 17 | int text_GREEN; // : GREEN value of textline 0 - 255 |
LvdK | 7:6576a287e563 | 18 | int text_BLUE; // : BLUE value of textline 0 - 255 |
LvdK | 7:6576a287e563 | 19 | } SELKEY_MAINTEXT[]; // : array of selectkey Maintext structures |
LvdK | 7:6576a287e563 | 20 | |
LvdK | 7:6576a287e563 | 21 | // Sub text lines at selectkeys: |
LvdK | 8:422544d24df3 | 22 | extern struct { char text[55]; // : subtext string, ending with '\0' |
LvdK | 7:6576a287e563 | 23 | int font_size; // : fontsize of textline 0 or 1 |
LvdK | 8:422544d24df3 | 24 | char font_style; // : style character |
LvdK | 7:6576a287e563 | 25 | int text_RED; // : RED value of textline 0 - 255 |
LvdK | 7:6576a287e563 | 26 | int text_GREEN; // : GREEN value of textline 0 - 255 |
LvdK | 7:6576a287e563 | 27 | int text_BLUE; // : BLUE value of textline 0 - 255 |
LvdK | 7:6576a287e563 | 28 | } SELKEY_SUBTEXT[]; // : array of selectkey Subtext structures |
LvdK | 7:6576a287e563 | 29 | |
LvdK | 7:6576a287e563 | 30 | // Screen textlines: |
LvdK | 8:422544d24df3 | 31 | extern struct { char text[55]; // : text line string, ending with '\0' |
LvdK | 7:6576a287e563 | 32 | int font_size; // : fontsize of textline 0 or 1 |
LvdK | 8:422544d24df3 | 33 | char font_style; // : style character |
LvdK | 7:6576a287e563 | 34 | int text_RED; // : RED value of textline 0 - 255 |
LvdK | 7:6576a287e563 | 35 | int text_GREEN; // : GREEN value of textline 0 - 255 |
LvdK | 7:6576a287e563 | 36 | int text_BLUE; // : BLUE value of textline 0 - 255 |
LvdK | 7:6576a287e563 | 37 | } TEXTLINE[]; // : array of textline structures |
LvdK | 7:6576a287e563 | 38 | |
LvdK | 7:6576a287e563 | 39 | // CDU status: |
LvdK | 7:6576a287e563 | 40 | extern struct { int msg_indicator; // : MSG 0 = light OFF, 1 = light ON |
LvdK | 7:6576a287e563 | 41 | int exec_indicator; // : EXEC 0 = indicator OFF, 1 = indicator ON |
LvdK | 7:6576a287e563 | 42 | int fail_indicator; // : FAIL 0 = indicator OFF, 1 = indicator ON |
LvdK | 7:6576a287e563 | 43 | int dspy_indicator; // : DSPY 0 = indicator OFF, 1 = indicator ON |
LvdK | 7:6576a287e563 | 44 | int ofst_indicator; // : OFST 0 = indicator OFF, 1 = indicator ON |
LvdK | 7:6576a287e563 | 45 | int backlight; // : 0 = light OFF, 1 = light ON |
LvdK | 7:6576a287e563 | 46 | int stby_mode; // : 0 = operational mode, 1 = standby mode |
LvdK | 7:6576a287e563 | 47 | } CDU_STATUS; |
LvdK | 7:6576a287e563 | 48 | |
LvdK | 7:6576a287e563 | 49 | |
LvdK | 7:6576a287e563 | 50 | // FS_data_update_ID: |
LvdK | 8:422544d24df3 | 51 | // These global flags indicate what data has been updated: |
LvdK | 7:6576a287e563 | 52 | extern int Background_Col_Update; // : 1 when color was updated, must be reset to 0 when data has been read |
LvdK | 7:6576a287e563 | 53 | extern int CDU_Status_Update ; // : 1 when status was updated, must be reset to 0 when data has been read |
LvdK | 7:6576a287e563 | 54 | extern int DO_CLR_SCREEN ; // : 1 when screen should be cleared, must be reset to 0 when done |
LvdK | 7:6576a287e563 | 55 | 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 | 56 | 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 | 57 | 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 | 58 | |
LvdK | 7:6576a287e563 | 59 |