comparison code_part1/OSTC_code_c_part2/shared_definitions.h @ 171:7f3e1bf588bc

More p2_deco.c cleanups + char_I_table_deco_done[] was never initialised. + temp_deco (deco presure) in meter (instead of bars), p2_deco.c line 661 ! Gas switches: + Added check_gas_switch() and calc_gas_switch state.
author JeanDo
date Tue, 01 Feb 2011 00:24:46 +0100
parents e26f49674956
children 2d9af08ed0ac
comparison
equal deleted inserted replaced
170:0f7ca37b1412 171:7f3e1bf588bc
72 # pragma udata overlay bank2=0x200 72 # pragma udata overlay bank2=0x200
73 #else 73 #else
74 bank2 udata_ovr 0x200 74 bank2 udata_ovr 0x200
75 #endif 75 #endif
76 76
77 VAR_UINT (int_O_GF_step);
78 VAR_UINT (int_O_gtissue_limit); 77 VAR_UINT (int_O_gtissue_limit);
79 VAR_UINT (int_O_gtissue_press); 78 VAR_UINT (int_O_gtissue_press);
80 VAR_UINT (int_O_limit_GF_low);
81 VAR_UINT (int_O_gtissue_press_at_GF_low);
82 VAR_UINT (int_O_calc_tissue_call_counter);
83 VAR_UINT (int_O_desaturation_time); // 79 VAR_UINT (int_O_desaturation_time); //
84 VAR_UINT (int_O_ascenttime); // TTS (in minutes) 80 VAR_UINT (int_O_ascenttime); // TTS (in minutes)
85
86 VAR_UCHAR (char_O_GF_low_pointer);
87 VAR_UCHAR (char_O_actual_pointer);
88 81
89 VAR_UCHAR (char_O_nullzeit); // 82 VAR_UCHAR (char_O_nullzeit); //
90 VAR_UCHAR (char_O_deco_status); // 83 VAR_UCHAR (char_O_deco_status); //
91 VAR_UCHAR (char_O_gradient_factor); // 84 VAR_UCHAR (char_O_gradient_factor); //
92 VAR_UCHAR (char_O_gtissue_no); // 85 VAR_UCHAR (char_O_gtissue_no); //
99 TAB_UCHAR (char_O_deco_depth, 0x20); // Fusionned decompression table: 92 TAB_UCHAR (char_O_deco_depth, 0x20); // Fusionned decompression table:
100 TAB_UCHAR (char_O_deco_time, 0x20); // Both ZH-L16 and L16-GF models. 93 TAB_UCHAR (char_O_deco_time, 0x20); // Both ZH-L16 and L16-GF models.
101 94
102 TAB_UCHAR (char_O_tissue_saturation, 0x20); // Compartiment desaturation time, in min. 95 TAB_UCHAR (char_O_tissue_saturation, 0x20); // Compartiment desaturation time, in min.
103 96
104 VAR_UINT (int_O_DBS_bitfield); 97 VAR_UINT (int_O_DBS_bitfield); // NOTE: 9 bytes dumped to divelog by store_dive_decodebug
105 VAR_UINT (int_O_DBS2_bitfield); 98 VAR_UINT (int_O_DBS2_bitfield);
106 VAR_UINT (int_O_DBG_pre_bitfield); 99 VAR_UINT (int_O_DBG_pre_bitfield);
107 VAR_UINT (int_O_DBG_post_bitfield); 100 VAR_UINT (int_O_DBG_post_bitfield);
108 VAR_UCHAR (char_O_NDL_at_20mtr); 101 VAR_UCHAR (char_O_NDL_at_20mtr);
109 102
117 ; In ASM, put the same bank, in overlay mode, at the same address 110 ; In ASM, put the same bank, in overlay mode, at the same address
118 bank3 udata_ovr 0x300 111 bank3 udata_ovr 0x300
119 #endif 112 #endif
120 113
121 VAR_UCHAR (char_I_step_is_1min); 114 VAR_UCHAR (char_I_step_is_1min);
122 TAB_UCHAR (char_I_table_deco_done, 0x20);
123 115
124 VAR_UINT (int_I_pres_respiration); // 116 VAR_UINT (int_I_pres_respiration); //
125 VAR_UINT (int_I_pres_surface); // 117 VAR_UINT (int_I_pres_surface); //
126 VAR_UINT (int_I_temp); // new in v101 118 VAR_UINT (int_I_temp); // new in v101
127 VAR_UCHAR (char_I_temp); // new in v101 119 VAR_UCHAR (char_I_temp); // new in v101