Wakeup Light with touch user interface, anti-aliased Font, SD card access and RTC usage on STM32F746NG-DISCO board

Dependencies:   BSP_DISCO_F746NG_patch_fixed LCD_DISCO_F746NG TS_DISCO_F746NG FATFileSystem TinyJpgDec_interwork mbed-src

Committer:
the_sz
Date:
Thu Oct 29 12:59:54 2015 +0000
Revision:
2:80026d18fcf3
Child:
3:ecf7f1f8d749
initial ui

Who changed what in which revision?

UserRevisionLine numberNew contents of line
the_sz 2:80026d18fcf3 1 #ifndef __UI_h
the_sz 2:80026d18fcf3 2 #define __UI_h
the_sz 2:80026d18fcf3 3
the_sz 2:80026d18fcf3 4 #define UI_FLAG_TYPE_BOX_LIST (0x01 | UI_FLAG_NEEDS_CHROME)
the_sz 2:80026d18fcf3 5 #define UI_FLAG_TYPE_MESSAGE_BOX (0x02 | UI_FLAG_NEEDS_CHROME)
the_sz 2:80026d18fcf3 6 #define UI_FLAG_TYPE_CLOCK 0x04
the_sz 2:80026d18fcf3 7 #define UI_FLAG_TYPE_CLOCK_IN_WORDS (0x08 | UI_FLAG_NEEDS_CHROME)
the_sz 2:80026d18fcf3 8 #define UI_FLAG_TYPE_TIMER_ADJUST (0x10 | UI_FLAG_NEEDS_CHROME)
the_sz 2:80026d18fcf3 9 #define UI_FLAG_NEEDS_CHROME 0x20
the_sz 2:80026d18fcf3 10
the_sz 2:80026d18fcf3 11 typedef struct
the_sz 2:80026d18fcf3 12 {
the_sz 2:80026d18fcf3 13 int8_t flags; // UI_FLAG_...
the_sz 2:80026d18fcf3 14
the_sz 2:80026d18fcf3 15 union
the_sz 2:80026d18fcf3 16 {
the_sz 2:80026d18fcf3 17 struct
the_sz 2:80026d18fcf3 18 {
the_sz 2:80026d18fcf3 19 } boxList;
the_sz 2:80026d18fcf3 20
the_sz 2:80026d18fcf3 21 struct
the_sz 2:80026d18fcf3 22 {
the_sz 2:80026d18fcf3 23 } messageBox;
the_sz 2:80026d18fcf3 24
the_sz 2:80026d18fcf3 25 struct
the_sz 2:80026d18fcf3 26 {
the_sz 2:80026d18fcf3 27 } clock;
the_sz 2:80026d18fcf3 28
the_sz 2:80026d18fcf3 29 struct
the_sz 2:80026d18fcf3 30 {
the_sz 2:80026d18fcf3 31 } clockInWords;
the_sz 2:80026d18fcf3 32
the_sz 2:80026d18fcf3 33 struct
the_sz 2:80026d18fcf3 34 {
the_sz 2:80026d18fcf3 35 } timerAdjust;
the_sz 2:80026d18fcf3 36
the_sz 2:80026d18fcf3 37 } data;
the_sz 2:80026d18fcf3 38
the_sz 2:80026d18fcf3 39 } UI_STRUCT;
the_sz 2:80026d18fcf3 40
the_sz 2:80026d18fcf3 41 void UI_Init(void);
the_sz 2:80026d18fcf3 42 void UI_Poll(void);
the_sz 2:80026d18fcf3 43 void UI_Show(UI_STRUCT *ui);
the_sz 2:80026d18fcf3 44
the_sz 2:80026d18fcf3 45 #endif