Mercurial > public > ostc4
diff Discovery/Inc/vpm.h @ 981:c6c781a2e85b default
Merge into default
| author | heinrichsweikamp |
|---|---|
| date | Tue, 11 Feb 2025 18:12:00 +0100 |
| parents | 46a21ff3f5ab |
| children |
line wrap: on
line diff
--- a/Discovery/Inc/vpm.h Tue Aug 13 13:24:54 2024 +0200 +++ b/Discovery/Inc/vpm.h Tue Feb 11 18:12:00 2025 +0100 @@ -34,6 +34,14 @@ enum DECOLIST{DECOSTOPS,FUTURESTOPS,BAILOUTSTOPS, OFF = -1}; // order is important!! enum VPM_CALC_STATUS{CALC_END, CALC_BEGIN, CALC_CRITICAL, CALC_FINAL_DECO, CALC_NDL }; +typedef enum +{ + VPM_TABLE_INIT = 0, + VPM_TABLE_ACTIVE, + VPM_TABLE_WARNING, + VPM_TABLE_MISSED +} SvpmTableState; + float schreiner_equation__2(float *initial_inspired_gas_pressure,float *rate_change_insp_gas_pressure,float *interval_time_minutes, const float *gas_time_constant,float *initial_gas_pressure); int vpm_calc(SLifeData* pINPUT, SDiveSettings* diveSettings, SVpm* pVPM, SDecoinfo* pDECOINFO, int calc_what); @@ -43,5 +51,9 @@ float vpm_get_CNS(void); +void vpm_table_init(void); +uint8_t vpm_get_decozone(void); +SvpmTableState vpm_get_TableState(void); + #endif /* VPM_H */
