Mercurial > public > ostc4
comparison Discovery/Inc/tHome.h @ 505:06b21f1e47a5
Removed second big font profile
The nex big font views have been introduced using an additional profile because an individual selection was not possible. By introducing the selection dialog for big font data views this additional profile is no longer needed.
author | Ideenmodellierer |
---|---|
date | Sun, 30 Aug 2020 17:14:31 +0200 |
parents | 0d2449e9d659 |
children | 6960df7ddb09 |
comparison
equal
deleted
inserted
replaced
504:8428195a4967 | 505:06b21f1e47a5 |
---|---|
52 enum EXTRADISPLAYS | 52 enum EXTRADISPLAYS |
53 { | 53 { |
54 EXTRADISPLAY_none = 0, | 54 EXTRADISPLAY_none = 0, |
55 EXTRADISPLAY_BIGFONT, | 55 EXTRADISPLAY_BIGFONT, |
56 EXTRADISPLAY_DECOGAME, | 56 EXTRADISPLAY_DECOGAME, |
57 #ifdef ENABLE_BIGFONT_VX | |
58 EXTRADISPLAY_BIGFONT2, | |
59 #endif | |
60 EXTRADISPLAY_END | 57 EXTRADISPLAY_END |
61 }; | 58 }; |
62 | 59 |
63 enum CUSTOMVIEWS | 60 enum CUSTOMVIEWS |
64 { | 61 { |
81 CVIEW_T3_ppO2andGas, | 78 CVIEW_T3_ppO2andGas, |
82 CVIEW_T3_StopWatch, | 79 CVIEW_T3_StopWatch, |
83 CVIEW_T3_GasList, | 80 CVIEW_T3_GasList, |
84 CVIEW_T3_Temperature, | 81 CVIEW_T3_Temperature, |
85 CVIEW_T3_ApnoeSurfaceInfo, | 82 CVIEW_T3_ApnoeSurfaceInfo, |
86 #ifdef ENABLE_BIGFONT_VX | |
87 CVIEW_T3_Navigation, | 83 CVIEW_T3_Navigation, |
88 CVIEW_T3_DepthData, | 84 CVIEW_T3_DepthData, |
89 #endif | |
90 CVIEW_T3_END | 85 CVIEW_T3_END |
91 }; | 86 }; |
92 | 87 |
93 // for custom view switch on/off 161122 hw | 88 // for custom view switch on/off 161122 hw |
94 extern const uint8_t cv_changelist[]; | 89 extern const uint8_t cv_changelist[]; |
95 extern const uint8_t cv_changelist_BS[]; | 90 extern const uint8_t cv_changelist_BS[]; |
96 #ifdef ENABLE_BIGFONT_VX | |
97 extern const uint8_t cv_changelist_BSV2[]; | |
98 #endif | |
99 | 91 |
100 #define CHECK_BIT_THOME(var,pos) (((var)>>(pos)) & 1) | 92 #define CHECK_BIT_THOME(var,pos) (((var)>>(pos)) & 1) |
101 | 93 |
102 typedef struct | 94 typedef struct |
103 { | 95 { |
137 | 129 |
138 uint8_t tHome_gas_writer(uint8_t oxygen_percentage, uint8_t helium_percentage, char *text); | 130 uint8_t tHome_gas_writer(uint8_t oxygen_percentage, uint8_t helium_percentage, char *text); |
139 uint32_t tHome_DateCode(RTC_DateTypeDef *dateInput); | 131 uint32_t tHome_DateCode(RTC_DateTypeDef *dateInput); |
140 | 132 |
141 void tHome_init_compass(void); | 133 void tHome_init_compass(void); |
134 uint8_t tHome_getNumberOfAvailableCVs(const uint8_t* pcv_list); | |
142 | 135 |
143 float t3_basics_lines_depth_and_divetime(GFX_DrawCfgScreen *tXscreen, GFX_DrawCfgWindow* tXl1, GFX_DrawCfgWindow* tXr1, uint8_t mode); | 136 float t3_basics_lines_depth_and_divetime(GFX_DrawCfgScreen *tXscreen, GFX_DrawCfgWindow* tXl1, GFX_DrawCfgWindow* tXr1, uint8_t mode); |
144 void t3_basics_battery_low_customview_extra(GFX_DrawCfgWindow* tXc1); | 137 void t3_basics_battery_low_customview_extra(GFX_DrawCfgWindow* tXc1); |
145 void t3_basics_show_customview_warnings(GFX_DrawCfgWindow* tXc1); | 138 void t3_basics_show_customview_warnings(GFX_DrawCfgWindow* tXc1); |
146 void t3_basics_refresh_customview(float depth, uint8_t tX_selection_customview, GFX_DrawCfgScreen *tXscreen, GFX_DrawCfgWindow* tXc1, GFX_DrawCfgWindow* tXc2, uint8_t mode); | 139 void t3_basics_refresh_customview(float depth, uint8_t tX_selection_customview, GFX_DrawCfgScreen *tXscreen, GFX_DrawCfgWindow* tXc1, GFX_DrawCfgWindow* tXc2, uint8_t mode); |
147 void t3_basics_refresh_apnoeRight(float depth, uint8_t tX_selection_customview, GFX_DrawCfgScreen *tXscreen, GFX_DrawCfgWindow* tXc1, GFX_DrawCfgWindow* tXc2, uint8_t mode); | 140 void t3_basics_refresh_apnoeRight(float depth, uint8_t tX_selection_customview, GFX_DrawCfgScreen *tXscreen, GFX_DrawCfgWindow* tXc1, GFX_DrawCfgWindow* tXc2, uint8_t mode); |
148 //void _findNextStop(const uint16_t *list, uint8_t *depthOut, uint16_t *lengthOut); | 141 //void _findNextStop(const uint16_t *list, uint8_t *depthOut, uint16_t *lengthOut); |
149 void t3_basics_colorscheme_mod(char *text); | 142 void t3_basics_colorscheme_mod(char *text); |
150 void t3_basics_change_customview(uint8_t *tX_selection_customview, uint8_t *tX_customviews, uint8_t action); | 143 void t3_basics_change_customview(uint8_t *tX_selection_customview, const uint8_t *tX_customviews, uint8_t action); |
151 | 144 |
152 uint8_t tHome_show_lost_connection_count(GFX_DrawCfgScreen *ScreenToWriteOn); | 145 uint8_t tHome_show_lost_connection_count(GFX_DrawCfgScreen *ScreenToWriteOn); |
153 | 146 |
154 #endif /* THOME_H */ | 147 #endif /* THOME_H */ |