|
0
|
1 ;=============================================================================
|
|
|
2 ;
|
|
634
|
3 ; File tft_outputs.inc * combined next generation V3.09.5
|
|
0
|
4 ;
|
|
|
5 ;
|
|
654
|
6 ; Copyright (c) 2011, JD Gascuel, heinrichs weikamp gmbh, all right reserved.
|
|
0
|
7 ;=============================================================================
|
|
|
8 ; HISTORY
|
|
|
9 ; 2011-08-07 : [mH] moving from OSTC code
|
|
|
10
|
|
634
|
11
|
|
|
12 ;-----------------------------------------------------------------------------
|
|
604
|
13 ; Surface Mode
|
|
634
|
14
|
|
|
15 extern TFT_surfmode_time ; current time
|
|
|
16 extern TFT_surfmode_date ; current date
|
|
|
17 extern TFT_surfmode_pres ; print current pressure, unconditional
|
|
|
18 extern TFT_surfmode_pres_fast ; print current pressure, but only if change > threshold
|
|
|
19 extern TFT_surfmode_temp ; current temperature (common core with divemode temp)
|
|
|
20 extern TFT_surfmode_batt ; battery status (also used in sleep mode)
|
|
|
21 extern TFT_surfmode_decotype ; deco mode (OC, CCR, ...)
|
|
|
22 extern TFT_surfmode_startgas ; first gas and "OSTC2-like" active gases
|
|
|
23
|
|
|
24 IFDEF _rx_functions
|
|
|
25 extern TFT_surfmode_tankpres ; tank data for surface mode screen
|
|
|
26 ENDIF
|
|
|
27
|
|
|
28
|
|
|
29 ;-----------------------------------------------------------------------------
|
|
|
30 ; Surface Mode Custom Views
|
|
|
31
|
|
|
32 extern TFT_surf_cv_lastdive ; last dive summery
|
|
|
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
|
|
654
|
37 extern TFT_surf_desat_nofly_cns
|
|
634
|
38
|
|
|
39 IFDEF _rx_functions
|
|
|
40 extern TFT_surf_cv_tankdata ; show the tank pressure data in surface customview
|
|
|
41 ENDIF
|
|
623
|
42
|
|
|
43 IFDEF _compass
|
|
634
|
44 extern TFT_surf_cv_compass_bearing ; "set bearing" dialog
|
|
623
|
45 ENDIF
|
|
|
46
|
|
|
47 IFDEF _ccr_pscr
|
|
634
|
48 extern TFT_surf_cv_list_dil ; diluents list
|
|
|
49 extern TFT_surf_cv_list_sp ; setpoint list
|
|
623
|
50 ENDIF
|
|
|
51
|
|
634
|
52
|
|
|
53 ;-----------------------------------------------------------------------------
|
|
|
54 ; Surface Mode Messages
|
|
|
55
|
|
|
56 extern TFT_surf_mesg_desat ; desaturation time
|
|
|
57 extern TFT_surf_mesg_nofly ; no-fly/alt time
|
|
|
58
|
|
|
59
|
|
|
60 ;-----------------------------------------------------------------------------
|
|
|
61 ; Imprints called by Housekeeping
|
|
|
62
|
|
|
63 extern TFT_imprint_time_date ; imprint current time and date
|
|
|
64 extern TFT_imprint_time_date_fast ; imprint last cahced time and date
|
|
|
65 extern TFT_imprint_color_schemes ; imprint color schemes (animated dive time)
|
|
654
|
66 extern TFT_convert_lo_into_12h_format ; converts lo (0-23h) into lo (1-12) with PM/AM flag in aux_flag
|
|
634
|
67
|
|
656
|
68 IFDEF _external_sensor_eccr
|
|
634
|
69 extern TFT_imprint_menu_mV ; imprint sensor data in menu mode - mv
|
|
|
70 extern TFT_imprint_surf_ppO2 ; imprint sensor data in surface mode - ppO2
|
|
|
71 extern TFT_imprint_surf_mV ; imprint sensor data in surface mode - mV
|
|
|
72 extern TFT_imprint_surf_sensor_eol ; imprint sensor data in surface mode - end of life
|
|
|
73 ENDIF
|
|
|
74
|
|
|
75 IFDEF _rx_functions
|
|
|
76 extern TFT_imprint_tank_pres ; imprint tank data in tank setup menu
|
|
623
|
77 ENDIF
|
|
|
78
|
|
560
|
79
|
|
634
|
80 ;-----------------------------------------------------------------------------
|
|
604
|
81 ; Dive Mode
|
|
634
|
82
|
|
|
83 extern TFT_show_divemode_mask ; show static layout
|
|
|
84 extern TFT_show_ndl_mask ; show NDL layout add-on
|
|
|
85 extern TFT_show_deco_mask ; show deco layout add-on
|
|
|
86
|
|
|
87 extern TFT_show_divetime ; show dive time
|
|
|
88 extern TFT_show_depth ; show current depth
|
|
|
89 extern TFT_show_max_depth ; show maximum depth
|
|
|
90 extern TFT_show_apnoe_max_depth ; show maximum depth - apnoe mode
|
|
|
91 extern TFT_show_temp_divemode ; show temperature (common core with surface temp)
|
|
|
92 extern TFT_show_active_gas_divemode ; show active gas and setpoint
|
|
|
93 extern TFT_show_ndl ; show NDL time
|
|
|
94 extern TFT_show_tts ; show TTS time
|
|
|
95 extern TFT_show_deco ; show deco stop data
|
|
|
96
|
|
|
97 extern TFT_show_apnoe_times ; show apnoe current and overall time
|
|
|
98 extern TFT_show_apnoe_surface ; show apnoe surface mode data
|
|
|
99 extern TFT_clear_apnoe_surface ; clear apnoe surface data
|
|
654
|
100 extern TFT_apnoe_divecounter ; show apnoe #dive counter
|
|
634
|
101
|
|
|
102 extern TFT_clear_deco_data ; clear deco data (NDL or stop & TTS)
|
|
604
|
103 extern TFT_clear_divemode_menu ; clear the divemode menu
|
|
634
|
104
|
|
|
105 extern TFT_velocity_show ; show vertical velocity
|
|
|
106 extern TFT_velocity_clear ; clear vertical velocity
|
|
|
107
|
|
|
108 extern TFT_divemode_sign_show ; show sign
|
|
|
109 extern TFT_divemode_sign_clear ; clear sign
|
|
|
110
|
|
|
111 extern TFT_safety_stop_show ; show safety stop
|
|
623
|
112 extern TFT_safety_stop_clear ; clear safety stop
|
|
656
|
113
|
|
|
114 IFDEF _compass
|
|
|
115 extern TFT_dive_compass_extras ; Update Stopwatch display in compass mode
|
|
|
116 ENDIF
|
|
634
|
117
|
|
|
118
|
|
|
119 ;-----------------------------------------------------------------------------
|
|
|
120 ; Dive Mode Mesages
|
|
|
121
|
|
|
122 extern TFT_message_ftts ; fTTS
|
|
|
123 extern TFT_message_ppo2 ; ppO2
|
|
|
124 extern TFT_message_battery_percent ; battery
|
|
|
125 extern TFT_message_cns ; current CNS
|
|
|
126 extern TFT_message_cns_eod ; end-of-dive CNS
|
|
|
127 extern TFT_message_saturation ; Saturation
|
|
|
128 extern TFT_message_agf ; aGF is selected
|
|
|
129 extern TFT_message_divetimeout ; dive timeout counter
|
|
|
130 extern TFT_message_gas_needs ; gas needs
|
|
|
131 extern TFT_message_gas_change ; gas change advice
|
|
|
132 extern TFT_message_no_BO_gas ; no bailout gas available
|
|
|
133 extern TFT_message_mbubbles ; mico-bubbles
|
|
|
134 extern TFT_message_outside ; outside of the model
|
|
|
135 extern TFT_message_depth_limit ; depth limit exceeded
|
|
|
136 extern TFT_message_deco_info ; decompression zone
|
|
604
|
137
|
|
623
|
138 IFDEF _helium
|
|
634
|
139 extern TFT_message_IBCD ; INCD
|
|
|
140 ENDIF
|
|
|
141
|
|
|
142 IFDEF _ccr_pscr
|
|
|
143 extern TFT_message_gas_density ; gas density
|
|
623
|
144 ENDIF
|
|
|
145
|
|
656
|
146 IFDEF _external_sensor_eccr
|
|
634
|
147 extern TFT_message_divergence ; sensor ppO2 divergence
|
|
|
148 extern TFT_message_fallback ; show fallback warning
|
|
623
|
149 ENDIF
|
|
|
150
|
|
634
|
151 IFDEF _rx_functions
|
|
|
152 extern TFT_message_transmitter ; transmitter
|
|
|
153 extern TFT_message_pressure ; pressure reading
|
|
|
154 extern TFT_message_sac ; SAC
|
|
|
155 extern TFT_message_switch_tanks ; switch advice for ind.double mode
|
|
|
156 ENDIF
|
|
623
|
157
|
|
634
|
158 IFDEF _cave_mode
|
|
|
159 extern TFT_message_cave_mode ; cave mode status
|
|
|
160 ENDIF
|
|
|
161
|
|
|
162
|
|
|
163 ;-----------------------------------------------------------------------------
|
|
604
|
164 ; Divemode Custom Views
|
|
634
|
165
|
|
604
|
166 extern TFT_avr_stopwatch_mask ; mask for average depth and stopwatch
|
|
|
167 extern TFT_avr_stopwatch ; data for average depth and stopwatch
|
|
631
|
168 extern TFT_gas_needs_mask ; mask for gas needs ascent
|
|
|
169 extern TFT_gas_needs ; data for gas needs ascent
|
|
604
|
170 extern TFT_decoplan_mask ; mask for deco plan
|
|
|
171 extern TFT_decoplan ; data for deco plan
|
|
|
172 extern TFT_ceiling_GF_tissue_mask ; mask for ceiling, current GF and tissues
|
|
|
173 extern TFT_ceiling_GF_tissue ; data for ceiling, current GF and tissues
|
|
656
|
174 extern TFT_ceiling_GF_surfGF_mask ; mask for ceiling, current GF and Surf GF
|
|
|
175 extern TFT_ceiling_GF_surfGF ; data for ceiling, current GF and Surf GF
|
|
604
|
176 extern TFT_CNS_mask ; mask for CNS values
|
|
|
177 extern TFT_CNS ; data for CNS values
|
|
628
|
178 extern TFT_ppo2_ead_end_cns_mask ; mask for ppO2, END/EAD and CNS / gas density
|
|
|
179 extern TFT_ppo2_ead_end_cns ; data for ppO2, END/EAD and CNS / gas density
|
|
604
|
180 extern TFT_gf_factors_mask ; mask for GF factors
|
|
634
|
181 ; extern ; data for GF factors (not existing)
|
|
604
|
182 extern TFT_clock_batt_surfpress_mask ; mask for clock, battery and surface pressure
|
|
|
183 extern TFT_clock_batt_surfpress ; data for clock, battery and surface pressure
|
|
|
184
|
|
623
|
185 IFDEF _ccr_pscr
|
|
|
186 extern TFT_sensor_check_mask ; mask for sensor check
|
|
|
187 extern TFT_sensor_check ; data for sensor check
|
|
|
188 extern TFT_pscr_info_mask ; mask for pSCR info
|
|
|
189 extern TFT_pscr_info ; data for pSCR info
|
|
|
190 ENDIF
|
|
|
191
|
|
656
|
192 IFDEF _external_sensor_eccr
|
|
623
|
193 extern TFT_ppo2_sensors_mask ; mask for ppO2 sensors
|
|
|
194 extern TFT_ppo2_sensors ; data for ppO2 sensors
|
|
|
195 ENDIF
|
|
|
196
|
|
634
|
197 IFDEF _rx_functions
|
|
|
198 extern TFT_pressures_SAC_mask ; mask for pressures and SAC
|
|
|
199 extern TFT_pressures_SAC ; data for pressures and SAC
|
|
|
200 ENDIF
|
|
|
201
|
|
631
|
202 IFDEF _cave_mode
|
|
|
203 extern TFT_cave_tts_mask ; mask for cave mode TTS, total stops and runtime
|
|
|
204 extern TFT_cave_tts ; data for cave mode TTS, total stops and runtime
|
|
634
|
205 extern TFT_cave_waypoints ; data for cave mode waypoints (no mask function)
|
|
623
|
206 ENDIF
|
|
|
207
|
|
0
|
208
|
|
634
|
209 ;-----------------------------------------------------------------------------
|
|
|
210 ; Font Color Selection - pallet-based Colors
|
|
|
211
|
|
|
212 extern TFT_load_std_color_pallet ; load standard color pallet
|
|
|
213 extern TFT_load_dive_color_pallet ; load dive color pallet
|
|
|
214
|
|
604
|
215
|
|
634
|
216 ;-----------------------------------------------------------------------------
|
|
|
217 ; Color-Coding
|
|
604
|
218
|
|
634
|
219 extern TFT_color_code_gas ; color-code by gas number (1-6) in WREG
|
|
|
220 extern TFT_color_code_gaslist ; color-code by gas O2% (in hi) and absolute pressure
|
|
|
221 extern TFT_color_code_cns ; color-code CNS value
|
|
604
|
222
|
|
|
223
|
|
634
|
224 ;-----------------------------------------------------------------------------
|
|
|
225 ; Append / Print Firmware Data etc.
|
|
|
226
|
|
|
227 extern TFT_cat_firmware ; append firmware version to output buffer
|
|
|
228 extern TFT_cat_beta_long ; append beta/release to output buffer (long format)
|
|
|
229 extern TFT_cat_beta_short ; append beta/release to output buffer (short format)
|
|
|
230 extern TFT_cat_serial ; append serial number to output buffer
|
|
|
231
|
|
|
232 extern TFT_print_serial_and_firmware ; print serial number and full firmware
|
|
|
233 extern TFT_print_firmware ; print firmware and beta/release status
|
|
|
234 extern TFT_print_decotype ; print OC,CCR,... (used by logbook & simulator)
|
|
|
235
|
|
|
236 extern TFT_message_fw_update ; firmware is updated message
|
|
|
237 extern TFT_message_fw_kept ; firmware is kept message
|
|
|
238
|
|
604
|
239
|
|
634
|
240
|
|
|
241 ;-----------------------------------------------------------------------------
|
|
|
242 ; Message System
|
|
|
243
|
|
|
244 extern TFT_buffer_trim_length ; fill or trim output buffer to a given length
|
|
|
245 extern TFT_clear_message_window ; clear all messages
|
|
|
246 extern TFT_clear_message_window_row2 ; clear only 2nd message
|
|
|
247
|
|
|
248
|
|
|
249 ;-----------------------------------------------------------------------------
|
|
|
250 ; Debug output
|
|
|
251
|
|
|
252 extern TFT_debug_output ; used for scheduling performance, etc.
|
|
|
253
|
|
|
254 ;-----------------------------------------------------------------------------
|