aboutsummaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index 5eec6f170..fe4515ee6 100644
--- a/dive.h
+++ b/dive.h
@@ -86,6 +86,7 @@ typedef struct {
pressure_t start, end;
} cylinder_t;
+extern int get_pressure_units(unsigned int mb, const char **units);
extern double get_depth_units(unsigned int mm, int *frac, const char **units);
extern double get_volume_units(unsigned int mm, int *frac, const char **units);
extern double get_temp_units(unsigned int mm, const char **units);
@@ -146,6 +147,12 @@ static inline double to_ATM(pressure_t pressure)
return pressure.mbar / 1013.25;
}
+static inline int mbar_to_PSI(int mbar)
+{
+ pressure_t p = {mbar};
+ return to_PSI(p);
+}
+
struct sample {
duration_t time;
depth_t depth;