comparison src/tft_outputs.inc @ 634:4050675965ea

3.10 stable release
author heinrichsweikamp
date Tue, 28 Apr 2020 17:34:31 +0200
parents 185ba2f91f59
children 75e90cd0c2c3
comparison
equal deleted inserted replaced
633:690c48db7b5b 634:4050675965ea
1 ;============================================================================= 1 ;=============================================================================
2 ; 2 ;
3 ; File tft_outputs.inc next combined generation V3.08.8 3 ; File tft_outputs.inc * combined next generation V3.09.5
4 ; 4 ;
5 ; 5 ;
6 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. 6 ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved.
7 ;============================================================================= 7 ;=============================================================================
8 ; HISTORY 8 ; HISTORY
9 ; 2011-08-07 : [mH] moving from OSTC code 9 ; 2011-08-07 : [mH] moving from OSTC code
10 10
11
12 ;-----------------------------------------------------------------------------
11 ; Surface Mode 13 ; Surface Mode
12 extern TFT_surface_lastdive 14
13 extern TFT_show_OC_startgas_surface ; first gas and "OSTC2-like" active gases 15 extern TFT_surfmode_time ; current time
14 extern TFT_time_surfmode 16 extern TFT_surfmode_date ; current date
15 extern TFT_date_surfmode 17 extern TFT_surfmode_pres ; print current pressure, unconditional
16 extern TFT_desaturation_time 18 extern TFT_surfmode_pres_fast ; print current pressure, but only if change > threshold
17 extern TFT_nofly_time 19 extern TFT_surfmode_temp ; current temperature (common core with divemode temp)
18 extern TFT_gaslist_surfmode 20 extern TFT_surfmode_batt ; battery status (also used in sleep mode)
19 extern TFT_pres_surfmode 21 extern TFT_surfmode_decotype ; deco mode (OC, CCR, ...)
20 extern TFT_temp_surfmode ; current temperature (common core with divemode temp) 22 extern TFT_surfmode_startgas ; first gas and "OSTC2-like" active gases
21 extern TFT_batt_surfmode 23
22 extern TFT_decotype_surface 24 IFDEF _rx_functions
23 extern TFT_decotype_logbook ; used from logbook 25 extern TFT_surfmode_tankpres ; tank data for surface mode screen
24 extern TFT_custom_text ; the custom text 26 ENDIF
25 extern TFT_surface_tissues ; tissue diagram in surface mode 27
26 extern TFT_surface_decosettings ; all deco settings 28
27 extern show_fw_mesg_update ; firmware is updated message 29 ;-----------------------------------------------------------------------------
28 extern show_fw_mesg_kept ; firmware is kept message 30 ; Surface Mode Custom Views
29 extern TFT_cat_serial ; add serial to current string 31
30 extern TFT_cat_firmware ; add firmware version to current string 32 extern TFT_surf_cv_lastdive ; last dive summery
31 extern TFT_cat_beta_release ; add beta/release to current string 33 extern TFT_surf_cv_list_gas ; OC gases list
34 extern TFT_surf_cv_text ; the custom text
35 extern TFT_surf_cv_tissues ; tissue diagram (also used by logbook)
36 extern TFT_surf_cv_settings ; all deco settings
37
38 IFDEF _rx_functions
39 extern TFT_surf_cv_tankdata ; show the tank pressure data in surface customview
40 ENDIF
32 41
33 IFDEF _compass 42 IFDEF _compass
34 extern TFT_surf_set_bearing 43 extern TFT_surf_cv_compass_bearing ; "set bearing" dialog
35 ENDIF 44 ENDIF
36 45
37 IFDEF _ccr_pscr 46 IFDEF _ccr_pscr
38 extern TFT_dillist_surfmode 47 extern TFT_surf_cv_list_dil ; diluents list
39 extern TFT_splist_surfmode ; setpoint list 48 extern TFT_surf_cv_list_sp ; setpoint list
40 ENDIF 49 ENDIF
50
51
52 ;-----------------------------------------------------------------------------
53 ; Surface Mode Messages
54
55 extern TFT_surf_mesg_desat ; desaturation time
56 extern TFT_surf_mesg_nofly ; no-fly/alt time
57
58
59 ;-----------------------------------------------------------------------------
60 ; Imprints called by Housekeeping
61
62 extern TFT_imprint_time_date ; imprint current time and date
63 extern TFT_imprint_time_date_fast ; imprint last cahced time and date
64 extern TFT_imprint_color_schemes ; imprint color schemes (animated dive time)
41 65
42 IFDEF _external_sensor 66 IFDEF _external_sensor
43 extern TFT_menu_calibrate ; update mV data in menu 67 extern TFT_imprint_menu_mV ; imprint sensor data in menu mode - mv
44 extern TFT_surface_sensor ; update sensor data in surface mode 68 extern TFT_imprint_surf_ppO2 ; imprint sensor data in surface mode - ppO2
45 extern TFT_sensor_surface_warning ; sensor end-of-lifetime symbol 69 extern TFT_imprint_surf_mV ; imprint sensor data in surface mode - mV
46 ENDIF 70 extern TFT_imprint_surf_sensor_eol ; imprint sensor data in surface mode - end of life
47 71 ENDIF
48 72
49 ; Menu 73 IFDEF _rx_functions
50 extern TFT_LogOffset 74 extern TFT_imprint_tank_pres ; imprint tank data in tank setup menu
51 extern TFT_show_color_schemes ; update the color schemes 75 ENDIF
52 extern TFT_show_time_date_menu 76
53 extern TFT_show_time_date_menu_fast 77
54 extern TFT_show_serial_and_firmware 78 ;-----------------------------------------------------------------------------
55 extern TFT_show_firmware
56 extern info_menu_total_dives
57
58 ; Dive Mode 79 ; Dive Mode
59 extern TFT_show_cns 80
60 extern TFT_show_divetime 81 extern TFT_show_divemode_mask ; show static layout
61 extern TFT_show_depth 82 extern TFT_show_ndl_mask ; show NDL layout add-on
62 extern TFT_show_max_depth 83 extern TFT_show_deco_mask ; show deco layout add-on
63 extern TFT_show_temp_divemode ; current temperature (common core with surface temp) 84
64 extern TFT_show_active_gas_divemode ; active gas and setpoint 85 extern TFT_show_divetime ; show dive time
65 extern TFT_show_divemode_mask 86 extern TFT_show_depth ; show current depth
66 extern TFT_show_menu_cursor_divemode ; the divemode cursor 87 extern TFT_show_max_depth ; show maximum depth
67 extern TFT_show_ndl_mask 88 extern TFT_show_apnoe_max_depth ; show maximum depth - apnoe mode
68 extern TFT_show_ndl 89 extern TFT_show_temp_divemode ; show temperature (common core with surface temp)
69 extern TFT_show_tts 90 extern TFT_show_active_gas_divemode ; show active gas and setpoint
70 extern TFT_show_deco_mask 91 extern TFT_show_ndl ; show NDL time
71 extern TFT_show_deco 92 extern TFT_show_tts ; show TTS time
72 extern TFT_divemode_sign_show 93 extern TFT_show_deco ; show deco stop data
73 extern TFT_divemode_sign_clear 94
74 extern TFT_velocity_show 95 extern TFT_show_apnoe_times ; show apnoe current and overall time
75 extern TFT_velocity_clear 96 extern TFT_show_apnoe_surface ; show apnoe surface mode data
76 extern TFT_show_ppo2_mask 97 extern TFT_clear_apnoe_surface ; clear apnoe surface data
77 extern TFT_show_ppo2_warning 98
78 extern TFT_msg_batt_percent_divemode 99 extern TFT_clear_deco_data ; clear deco data (NDL or stop & TTS)
79 extern TFT_show_apnoe_times
80 extern TFT_clear_apnoe_surface
81 extern TFT_show_apnoe_surface
82 extern TFT_show_apnoe_max_depth
83 extern TFT_show_ftts
84 extern TFT_clear_divemode_menu ; clear the divemode menu 100 extern TFT_clear_divemode_menu ; clear the divemode menu
85 extern TFT_clear_message_window 101
86 extern TFT_clear_message_window_row2 102 extern TFT_velocity_show ; show vertical velocity
87 extern TFT_warning_saturation 103 extern TFT_velocity_clear ; clear vertical velocity
88 extern TFT_warning_agf ; show a warning if aGF is selected 104
89 extern TFT_divetimeout ; show timeout counter 105 extern TFT_divemode_sign_show ; show sign
90 extern TFT_safety_stop_show ; show the safety stop 106 extern TFT_divemode_sign_clear ; clear sign
107
108 extern TFT_safety_stop_show ; show safety stop
91 extern TFT_safety_stop_clear ; clear safety stop 109 extern TFT_safety_stop_clear ; clear safety stop
92 extern TFT_clear_deco_data ; clear deco data (NDL or stop & TTS) 110
93 extern TFT_warning_fallback ; show fallback warning 111
94 extern TFT_warning_gas_needs 112 ;-----------------------------------------------------------------------------
95 extern TFT_attention_gas_needs 113 ; Dive Mode Mesages
96 extern TFT_advice_gas_change 114
97 extern TFT_warning_no_BO_gas 115 extern TFT_message_ftts ; fTTS
98 extern TFT_warning_eod_cns 116 extern TFT_message_ppo2 ; ppO2
99 extern TFT_warning_mbubbles 117 extern TFT_message_battery_percent ; battery
100 extern TFT_warning_outside 118 extern TFT_message_cns ; current CNS
101 extern TFT_warning_depth 119 extern TFT_message_cns_eod ; end-of-dive CNS
102 extern TFT_info_deco 120 extern TFT_message_saturation ; Saturation
121 extern TFT_message_agf ; aGF is selected
122 extern TFT_message_divetimeout ; dive timeout counter
123 extern TFT_message_gas_needs ; gas needs
124 extern TFT_message_gas_change ; gas change advice
125 extern TFT_message_no_BO_gas ; no bailout gas available
126 extern TFT_message_mbubbles ; mico-bubbles
127 extern TFT_message_outside ; outside of the model
128 extern TFT_message_depth_limit ; depth limit exceeded
129 extern TFT_message_deco_info ; decompression zone
103 130
104 IFDEF _helium 131 IFDEF _helium
105 extern TFT_warning_IBCD 132 extern TFT_message_IBCD ; INCD
133 ENDIF
134
135 IFDEF _ccr_pscr
136 extern TFT_message_gas_density ; gas density
106 ENDIF 137 ENDIF
107 138
108 IFDEF _external_sensor 139 IFDEF _external_sensor
109 extern TFT_warning_sensor_disagree 140 extern TFT_message_divergence ; sensor ppO2 divergence
110 ENDIF 141 extern TFT_message_fallback ; show fallback warning
111 142 ENDIF
112 ; Date 143
113 extern TFT_convert_date ; print day, month and year 144 IFDEF _rx_functions
114 extern TFT_convert_date_short ; print day and month 145 extern TFT_message_transmitter ; transmitter
115 146 extern TFT_message_pressure ; pressure reading
147 extern TFT_message_sac ; SAC
148 extern TFT_message_switch_tanks ; switch advice for ind.double mode
149 ENDIF
150
151 IFDEF _cave_mode
152 extern TFT_message_cave_mode ; cave mode status
153 ENDIF
154
155
156 ;-----------------------------------------------------------------------------
116 ; Divemode Custom Views 157 ; Divemode Custom Views
158
117 extern TFT_avr_stopwatch_mask ; mask for average depth and stopwatch 159 extern TFT_avr_stopwatch_mask ; mask for average depth and stopwatch
118 extern TFT_avr_stopwatch ; data for average depth and stopwatch 160 extern TFT_avr_stopwatch ; data for average depth and stopwatch
119 extern TFT_gas_needs_mask ; mask for gas needs ascent 161 extern TFT_gas_needs_mask ; mask for gas needs ascent
120 extern TFT_gas_needs ; data for gas needs ascent 162 extern TFT_gas_needs ; data for gas needs ascent
121 extern TFT_decoplan_mask ; mask for deco plan 163 extern TFT_decoplan_mask ; mask for deco plan
125 extern TFT_CNS_mask ; mask for CNS values 167 extern TFT_CNS_mask ; mask for CNS values
126 extern TFT_CNS ; data for CNS values 168 extern TFT_CNS ; data for CNS values
127 extern TFT_ppo2_ead_end_cns_mask ; mask for ppO2, END/EAD and CNS / gas density 169 extern TFT_ppo2_ead_end_cns_mask ; mask for ppO2, END/EAD and CNS / gas density
128 extern TFT_ppo2_ead_end_cns ; data for ppO2, END/EAD and CNS / gas density 170 extern TFT_ppo2_ead_end_cns ; data for ppO2, END/EAD and CNS / gas density
129 extern TFT_gf_factors_mask ; mask for GF factors 171 extern TFT_gf_factors_mask ; mask for GF factors
130 ; extern ; data for GF factors (none) 172 ; extern ; data for GF factors (not existing)
131 extern TFT_clock_batt_surfpress_mask ; mask for clock, battery and surface pressure 173 extern TFT_clock_batt_surfpress_mask ; mask for clock, battery and surface pressure
132 extern TFT_clock_batt_surfpress ; data for clock, battery and surface pressure 174 extern TFT_clock_batt_surfpress ; data for clock, battery and surface pressure
133 175
134 IFDEF _ccr_pscr 176 IFDEF _ccr_pscr
135 extern TFT_sensor_check_mask ; mask for sensor check 177 extern TFT_sensor_check_mask ; mask for sensor check
141 IFDEF _external_sensor 183 IFDEF _external_sensor
142 extern TFT_ppo2_sensors_mask ; mask for ppO2 sensors 184 extern TFT_ppo2_sensors_mask ; mask for ppO2 sensors
143 extern TFT_ppo2_sensors ; data for ppO2 sensors 185 extern TFT_ppo2_sensors ; data for ppO2 sensors
144 ENDIF 186 ENDIF
145 187
188 IFDEF _rx_functions
189 extern TFT_pressures_SAC_mask ; mask for pressures and SAC
190 extern TFT_pressures_SAC ; data for pressures and SAC
191 ENDIF
192
146 IFDEF _cave_mode 193 IFDEF _cave_mode
147 extern TFT_cave_tts_mask ; mask for cave mode TTS, total stops and runtime 194 extern TFT_cave_tts_mask ; mask for cave mode TTS, total stops and runtime
148 extern TFT_cave_tts ; data for cave mode TTS, total stops and runtime 195 extern TFT_cave_tts ; data for cave mode TTS, total stops and runtime
149 extern TFT_cave_waypoints ; data for cave mode waypoints 196 extern TFT_cave_waypoints ; data for cave mode waypoints (no mask function)
150 ENDIF 197 ENDIF
151 198
152 199
153 ; Surface Custom Views 200 ;-----------------------------------------------------------------------------
154 201 ; Font Color Selection - pallet-based Colors
155 IFDEF _external_sensor 202
156 extern TFT_sensor_mV 203 extern TFT_load_std_color_pallet ; load standard color pallet
157 ENDIF 204 extern TFT_load_dive_color_pallet ; load dive color pallet
158 205
159 206
160 ; Color-coding 207 ;-----------------------------------------------------------------------------
161 extern TFT_standard_color 208 ; Color-Coding
162 extern TFT_disabled_color 209
163 extern TFT_memo_color 210 extern TFT_color_code_gas ; color-code by gas number (1-6) in WREG
164 extern TFT_advice_color 211 extern TFT_color_code_gaslist ; color-code by gas O2% (in hi) and absolute pressure
165 extern TFT_attention_color 212 extern TFT_color_code_cns ; color-code CNS value
166 extern TFT_warning_color 213
167 extern TFT_divemask_color 214
168 215 ;-----------------------------------------------------------------------------
169 extern TFT_color_code_gas 216 ; Append / Print Firmware Data etc.
170 extern TFT_color_code_gaslist 217
171 extern TFT_color_code_cns 218 extern TFT_cat_firmware ; append firmware version to output buffer
172 extern TFT_color_code_tank_pres_sac 219 extern TFT_cat_beta_long ; append beta/release to output buffer (long format)
173 220 extern TFT_cat_beta_short ; append beta/release to output buffer (short format)
174 ; Misc 221 extern TFT_cat_serial ; append serial number to output buffer
175 extern convert_pres_to_depth ; converts pressure in [mbar] to depth in [cm] 222
176 extern convert_cm_to_feet ; converts depth in [cm] to depth in [feet] 223 extern TFT_print_serial_and_firmware ; print serial number and full firmware
177 extern convert_meter_to_feet ; converts depth in [m] to depth in [feet] 224 extern TFT_print_firmware ; print firmware and beta/release status
178 extern convert_celsius_to_fahrenheit ; converts temperature from celsius to fahrenheit 225 extern TFT_print_decotype ; print OC,CCR,... (used by logbook & simulator)
179 extern TFT_convert_signed_16bit 226
180 227 extern TFT_message_fw_update ; firmware is updated message
228 extern TFT_message_fw_kept ; firmware is kept message
229
230
231
232 ;-----------------------------------------------------------------------------
233 ; Message System
234
235 extern TFT_buffer_trim_length ; fill or trim output buffer to a given length
236 extern TFT_clear_message_window ; clear all messages
237 extern TFT_clear_message_window_row2 ; clear only 2nd message
238
239
240 ;-----------------------------------------------------------------------------
181 ; Debug output 241 ; Debug output
182 extern TFT_debug_output 242
183 243 extern TFT_debug_output ; used for scheduling performance, etc.
184 244
185 IFDEF _rx_functions 245 ;-----------------------------------------------------------------------------
186 extern TFT_pressures_SAC_mask ; mask for pressures and SAC
187 extern TFT_pressures_SAC ; data for pressures and SAC
188 extern TFT_menu_tank_pres ; update tank data when in tank setup menu
189 extern TFT_surface_tank_pres ; update tank data when in surface mode
190 extern TFT_surface_tankdata ; show the tank pressure data in surface customview
191 extern TFT_attention_transmitter ; show attention for transmitter
192 extern TFT_attention_pres_reading ; show attention for pressure reading
193 extern TFT_warning_pres_reading ; show warning for pressure reading
194 extern TFT_attention_sac ; show attention for SAC
195 extern TFT_advice_switch ; show switch advice for ind.double mode
196 extern TFT_print_firmware_rx ; show rx firmware version
197 ENDIF
198
199 IFDEF _cave_mode
200 extern TFT_info_cave_mode ; show info that cave mode is active
201 extern TFT_cave_shutdown_attention ; show attention that cave mode will shut down soon
202 extern TFT_cave_shutdown_warning ; show warning that cave mode has shut down
203 ENDIF