Mercurial > public > hwos_code
comparison src/tft_outputs.inc @ 604:ca4556fb60b9
bump to 2.99beta, work on 3.00 stable
| author | heinrichsweikamp |
|---|---|
| date | Thu, 22 Nov 2018 19:47:26 +0100 |
| parents | b455b31ce022 |
| children | d866684249bd |
comparison
equal
deleted
inserted
replaced
| 603:00b24fb4324d | 604:ca4556fb60b9 |
|---|---|
| 1 ;============================================================================= | 1 ;============================================================================= |
| 2 ; | 2 ; |
| 3 ; File tft_outputs.inc REFACTORED VERSION V2.97 | 3 ; File tft_outputs.inc REFACTORED VERSION V2.99e |
| 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 ; Surface mode | 11 ; Surface Mode |
| 12 extern TFT_surface_lastdive | 12 extern TFT_surface_lastdive |
| 13 extern TFT_show_OC_startgas_surface ; Show first gas and "OSTC2-like" active gases | 13 extern TFT_show_OC_startgas_surface ; show first gas and "OSTC2-like" active gases |
| 14 extern TFT_serial | |
| 15 extern TFT_clock | 14 extern TFT_clock |
| 16 extern TFT_date | 15 extern TFT_date |
| 17 extern TFT_desaturation_time | 16 extern TFT_desaturation_time |
| 18 extern TFT_nofly_time | 17 extern TFT_nofly_time |
| 19 extern TFT_gaslist_surfmode | 18 extern TFT_gaslist_surfmode |
| 20 extern TFT_dillist_surfmode | 19 extern TFT_dillist_surfmode |
| 21 extern TFT_splist_surfmode ; Show Setpoint list | 20 extern TFT_splist_surfmode ; show setpoint list |
| 22 extern TFT_temp_surfmode | 21 extern TFT_temp_surfmode |
| 23 extern TFT_update_batt_voltage | 22 extern TFT_update_batt_voltage |
| 24 extern TFT_display_decotype_surface | 23 extern TFT_display_decotype_surface |
| 25 extern TFT_display_decotype_surface1 ; Used from logbook! | 24 extern TFT_display_decotype_surface1 ; used from logbook |
| 26 extern TFT_update_surf_press | 25 extern TFT_update_surf_press |
| 27 extern TFT_surface_sensor ; Update HUD data in surface mode | 26 extern TFT_surface_sensor ; update sensor data in surface mode |
| 28 extern TFT_sensor_surface_warning | 27 extern TFT_sensor_surface_warning |
| 29 extern TFT_menu_calibrate ; Update mV data in menu | 28 extern TFT_menu_calibrate ; update mV data in menu |
| 30 extern TFT_custom_text ; The custom text | 29 extern TFT_custom_text ; the custom text |
| 31 extern TFT_surface_tissues ; Show Tissue diagram in surface mode | 30 extern TFT_surface_tissues ; show tissue diagram in surface mode |
| 32 extern TFT_surface_decosettings ; Show all deco settings | 31 extern TFT_surface_decosettings ; show all deco settings |
| 33 extern TFT_cat_serial ; Add serial to current string | 32 extern TFT_cat_serial ; add serial to current string |
| 34 extern TFT_cat_firmware ; Add firmware version to current string | 33 extern TFT_cat_firmware ; add firmware version to current string |
| 34 extern TFT_cat_beta_rel ; add beta/rel. to current string | |
| 35 extern TFT_cat_beta_release ; add beta/release to current string | |
| 36 extern TFT_surf_set_bearing | |
| 35 | 37 |
| 36 ; Menu | 38 ; Menu |
| 37 extern TFT_LogOffset_Logtitle | 39 extern TFT_LogOffset_Logtitle |
| 38 extern TFT_show_color_schemes ; Yes, update the color schemes | 40 extern TFT_show_color_schemes ; update the color schemes |
| 41 extern TFT_show_time_date_menu | |
| 39 | 42 |
| 40 ; Dive mode | 43 ; Dive Mode |
| 41 extern TFT_display_cns | 44 extern TFT_display_cns |
| 42 extern TFT_divemins | 45 extern TFT_divemins |
| 43 extern TFT_depth | 46 extern TFT_depth |
| 47 extern TFT_max_depth | |
| 44 extern TFT_temp_divemode | 48 extern TFT_temp_divemode |
| 45 extern TFT_max_depth | 49 extern TFT_active_gas_divemode ; active gas and setpoint |
| 46 extern TFT_active_gas_divemode | |
| 47 extern TFT_divemode_mask | 50 extern TFT_divemode_mask |
| 51 extern TFT_draw_gassep_line ; draw the gas separator grid line in spec mode only | |
| 52 extern TFT_divemode_menu_cursor ; the divemode cursor | |
| 48 extern TFT_display_ndl_mask | 53 extern TFT_display_ndl_mask |
| 49 extern TFT_display_tts | 54 extern TFT_display_tts |
| 50 extern TFT_display_ndl | 55 extern TFT_display_ndl |
| 51 extern TFT_display_deko_mask | 56 extern TFT_display_deko_mask |
| 52 extern TFT_divemode_warning | 57 extern TFT_divemode_warning |
| 53 extern TFT_divemode_warning_clear | 58 extern TFT_divemode_warning_clear |
| 54 extern TFT_velocity_clear | 59 extern TFT_velocity_clear |
| 55 extern TFT_display_velocity | 60 extern TFT_display_velocity |
| 56 extern TFT_display_deko | 61 extern TFT_display_deko |
| 57 extern TFT_mask_ppo2 | 62 extern TFT_mask_ppo2 |
| 58 extern TFT_display_ppo2 | 63 extern TFT_display_ppo2_warning |
| 59 extern TFT_update_batt_percent_divemode | 64 extern TFT_update_batt_percent_divemode |
| 60 extern TFT_display_apnoe_descent | 65 extern TFT_display_apnoe_descent |
| 61 extern TFT_apnoe_clear_surface | 66 extern TFT_apnoe_clear_surface |
| 62 extern TFT_display_apnoe_surface | 67 extern TFT_display_apnoe_surface |
| 63 extern TFT_display_apnoe_last_max | 68 extern TFT_display_apnoe_last_max |
| 64 extern TFT_display_ftts | 69 extern TFT_display_ftts |
| 70 extern TFT_clear_divemode_menu ; clear the divemode menu | |
| 65 extern TFT_clear_warning_text | 71 extern TFT_clear_warning_text |
| 66 extern TFT_clear_warning_text_2nd_row | 72 extern TFT_clear_warning_text_2nd_row |
| 67 extern TFT_warning_gf | 73 extern TFT_warning_gf |
| 68 extern TFT_update_ppo2_sensors ; Update Sensor data | 74 extern TFT_warning_agf ; show a warning if aGF is selected |
| 69 extern TFT_hud_mask ; The HUD mask | 75 extern TFT_divetimeout ; show timeout counter |
| 70 extern TFT_mask_avr_stopwatch ; Show mask for average depth and stopwatch | 76 extern TFT_show_safety_stop ; show the safety stop |
| 71 extern TFT_update_avr_stopwatch ; Update average depth and stopwatch | 77 extern TFT_clear_decoarea ; cleanup deco area on screen |
| 72 extern TFT_decoplan ; Decoplan | 78 extern TFT_clear_safety_stop ; clear safety stop |
| 73 extern TFT_clear_divemode_menu ; Clear the divemode menu | 79 extern TFT_warning_fallback ; show fallback warning |
| 74 extern TFT_draw_gassep_line ; Draw the gas separator grid line in spec mode only | |
| 75 extern TFT_divemode_menu_cursor ; the divemode cursor | |
| 76 extern TFT_battinfo_tissues_clock_mask ; Setup Mask | |
| 77 extern TFT_battinfo_tissues_clock ; Show EAD/END, Tissues and clock | |
| 78 extern TFT_gf_mask ; Setup Mask | |
| 79 extern TFT_gf_mask_cGF ; Setup Mask - current GF only | |
| 80 extern TFT_gf_info ; Show GF informations | |
| 81 extern TFT_warning_agf ; Show a warning if aGF is selected | |
| 82 extern TFT_divetimeout ; Show timeout counter | |
| 83 extern TFT_show_safety_stop ; Show the safety stop | |
| 84 extern TFT_clear_decoarea ; Cleanup deco area on screen | |
| 85 extern TFT_ceiling_mask ; The ceiling mask | |
| 86 extern TFT_ceiling ; Ceiling | |
| 87 extern TFT_clear_safety_stop ; Clear safety stop | |
| 88 extern TFT_warning_fallback ; Show fallback warning | |
| 89 extern TFT_sensor_check_mask ; Show ppO2 of O2 and Diluent mask | |
| 90 extern TFT_sensor_check ; Show ppO2 of O2 and Diluent | |
| 91 extern TFT_ppo2_ead_end_cns_mask ; Show ppO2, END/EAD and CNS mask | |
| 92 extern TFT_ppo2_ead_end_cns ; Show ppO2, END/EAD and CNS | |
| 93 extern TFT_pscr_info_mask ; Show ppO2, drop and lung ratio mask | |
| 94 extern TFT_pscr_info ; Show ppO2, drop and lung ratio | |
| 95 extern TFT_gas_needs_mask | |
| 96 extern TFT_gas_needs | |
| 97 extern TFT_warning_gas_needs_warn | 80 extern TFT_warning_gas_needs_warn |
| 98 extern TFT_warning_gas_needs_att | 81 extern TFT_warning_gas_needs_att |
| 82 extern TFT_advice_gas_change | |
| 99 extern TFT_warning_sensor_disagree | 83 extern TFT_warning_sensor_disagree |
| 100 extern TFT_warning_IBCD | 84 extern TFT_warning_IBCD |
| 101 extern TFT_CNS_mask | 85 extern TFT_warning_no_BO_gas |
| 102 extern TFT_CNS | |
| 103 extern TFT_display_eod_cns | 86 extern TFT_display_eod_cns |
| 104 extern TFT_warning_mbubbles | 87 extern TFT_warning_mbubbles |
| 105 extern TFT_warning_outside | 88 extern TFT_warning_outside |
| 106 extern TFT_display_pure_ppo2 | |
| 107 extern TFT_info_deco | 89 extern TFT_info_deco |
| 108 extern TFT_show_mode_divemode | 90 |
| 91 ; Divemode Custom Views | |
| 92 extern TFT_avr_stopwatch_mask ; mask for average depth and stopwatch | |
| 93 extern TFT_avr_stopwatch ; data for average depth and stopwatch | |
| 94 extern TFT_ppo2_sensors_mask ; mask for ppO2 sensors | |
| 95 extern TFT_ppo2_sensors ; data for ppO2 sensors | |
| 96 extern TFT_sensor_check_mask ; mask for sensor check | |
| 97 extern TFT_sensor_check ; data for sensor check | |
| 98 extern TFT_pscr_info_mask ; mask for pSCR info | |
| 99 extern TFT_pscr_info ; data for pSCR info | |
| 100 extern TFT_gas_needs_ascent_mask ; mask for gas needs ascent | |
| 101 extern TFT_gas_needs_ascent ; data for gas needs ascent | |
| 102 extern TFT_decoplan_mask ; mask for deco plan | |
| 103 extern TFT_decoplan ; data for deco plan | |
| 104 extern TFT_ceiling_GF_tissue_mask ; mask for ceiling, current GF and tissues | |
| 105 extern TFT_ceiling_GF_tissue ; data for ceiling, current GF and tissues | |
| 106 extern TFT_CNS_mask ; mask for CNS values | |
| 107 extern TFT_CNS ; data for CNS values | |
| 108 extern TFT_ppo2_ead_end_cns_mask ; mask for ppO2, END/EAD and CNS | |
| 109 extern TFT_ppo2_ead_end_cns ; data for ppO2, END/EAD and CNS | |
| 110 extern TFT_gf_factors_mask ; mask for GF factors | |
| 111 extern TFT_gf_factors ; data for GF factors | |
| 112 extern TFT_clock_batt_surfpress_mask ; mask for clock, battery and surface pressure | |
| 113 extern TFT_clock_batt_surfpress ; data for clock, battery and surface pressure | |
| 114 | |
| 115 | |
| 116 ; Surface Custom Views | |
| 117 extern TFT_sensor_mV | |
| 109 | 118 |
| 110 ; Misc | 119 ; Misc |
| 111 extern TFT_standard_color | 120 extern TFT_standard_color |
| 112 extern TFT_disabled_color | 121 extern TFT_disabled_color |
| 122 extern TFT_memo_color | |
| 123 extern TFT_advice_color | |
| 113 extern TFT_attention_color | 124 extern TFT_attention_color |
| 114 extern TFT_warnings_color | 125 extern TFT_warnings_color |
| 115 extern TFT_divemask_color | 126 extern TFT_divemask_color |
| 127 | |
| 128 extern TFT_color_code_gas | |
| 129 extern TFT_color_code_gaslist | |
| 130 extern TFT_color_code_cns | |
| 131 extern TFT_color_code_tank_pres_sac | |
| 132 | |
| 116 extern adjust_depth_with_salinity ; computes salinity setting into lo:hi [mbar] | 133 extern adjust_depth_with_salinity ; computes salinity setting into lo:hi [mbar] |
| 117 extern adjust_depth_with_salinity_log ; computes salinity setting (FROM WREG!) into lo:hi [mbar] | 134 extern adjust_depth_with_salinity_log ; computes salinity setting (FROM WREG!) into lo:hi [mbar] |
| 118 extern TFT_convert_date_short | 135 extern TFT_convert_date_short |
| 119 extern TFT_convert_signed_16bit | 136 extern TFT_convert_signed_16bit |
| 120 extern TFT_convert_date | 137 extern TFT_convert_date |
| 121 extern TFT_debug_output | |
| 122 extern TFT_show_time_date_menu | |
| 123 extern convert_mbar_to_feet ; convert value in lo:hi from mbar to feet | 138 extern convert_mbar_to_feet ; convert value in lo:hi from mbar to feet |
| 124 extern convert_celsius_to_fahrenheit ; convert value in lo:hi from celsius to fahrenheit | 139 extern convert_celsius_to_fahrenheit ; convert value in lo:hi from celsius to fahrenheit |
| 125 extern TFT_color_code_gas | |
| 126 extern TFT_color_code_gaslist | |
| 127 extern TFT_color_code_cns | |
| 128 | 140 |
| 129 ; Alt dive mode (aka Blind mode) | 141 extern TFT_display_pure_ppo2 ; helper function |
| 142 extern TFT_debug_output | |
| 143 | |
| 144 | |
| 145 ; Alternative Dive Mode (aka Blind Mode) | |
| 130 extern TFT_divemins_alternative | 146 extern TFT_divemins_alternative |
| 131 extern TFT_divemode_mask_alternative | 147 extern TFT_divemode_mask_alternative |
| 132 extern TFT_max_depth_alternative | 148 extern TFT_max_depth_alternative |
| 133 extern TFT_big_deco_alt ; The big deco | 149 extern TFT_big_deco_alt ; the big deco |
| 150 | |
| 151 | |
| 152 IFDEF _rx_functions | |
| 153 extern TFT_pressures_SAC_mask ; mask for pressures and SAC | |
| 154 extern TFT_pressures_SAC ; data for pressures and SAC | |
| 155 extern TFT_menu_tank_pres ; update tank data when in tank setup menu | |
| 156 extern TFT_surface_tank_pres ; update tank data when in surface mode | |
| 157 extern TFT_surface_tankdata ; show the tank pressure data in surface customview | |
| 158 extern TFT_attention_transmitter ; show attention for transmitter | |
| 159 extern TFT_attention_pres_reading ; show attention for pressure reading | |
| 160 extern TFT_warning_pres_reading ; show warning for pressure reading | |
| 161 extern TFT_attention_sac ; show attention for SAC | |
| 162 extern TFT_advice_switch | |
| 163 ENDIF | |
| 164 | |
| 165 IFDEF _cave_mode | |
| 166 extern TFT_info_cave_mode ; show info that in cave mode | |
| 167 extern TFT_info_dive_turned ; show info that dive is turned | |
| 168 extern TFT_warn_cave_shutdown ; show warning that cave mode has shut down | |
| 169 ENDIF |
