]> git.tdb.fi Git - ext/subsurface.git/blob - uemis.h
Fix profile and average depth for freedives
[ext/subsurface.git] / uemis.h
1 /*
2  * defines and prototypes for the uemis Zurich SDA file parser
3  */
4
5 #ifndef UEMIS_H
6 #define UEMIS_H
7
8 #include <stdint.h>
9
10 void uemis_parse_divelog_binary(char *base64, void *divep);
11
12 typedef struct {
13         uint16_t        dive_time;
14         uint16_t        water_pressure;         // (in cbar)
15         uint16_t        dive_temperature;       // (in dC)
16         uint8_t         ascent_speed;           // (units unclear)
17         uint8_t         work_fact;
18         uint8_t         cold_fact;
19         uint8_t         bubble_fact;
20         uint16_t        ascent_time;
21         uint16_t        ascent_time_opt;
22         uint16_t        p_amb_tol;
23         uint16_t        satt;
24         uint16_t        hold_depth;
25         uint16_t        hold_time;
26         uint8_t         active_tank;
27         uint16_t        tank_pressure;          // (in cbar)
28         uint16_t        consumption;            // (units unclear)
29         uint8_t         rgt;                    // (remaining gas time in minutes)
30         uint8_t         cns;
31         uint8_t         flags[8];
32 } __attribute((packed)) uemis_sample_t;
33
34 #endif /* DIVE_H */