aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-oc2g/misc/oc2gbts_temp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osmo-bts-oc2g/misc/oc2gbts_temp.h')
-rw-r--r--src/osmo-bts-oc2g/misc/oc2gbts_temp.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/osmo-bts-oc2g/misc/oc2gbts_temp.h b/src/osmo-bts-oc2g/misc/oc2gbts_temp.h
new file mode 100644
index 00000000..6d5dfca8
--- /dev/null
+++ b/src/osmo-bts-oc2g/misc/oc2gbts_temp.h
@@ -0,0 +1,26 @@
+#ifndef _OC2GBTS_TEMP_H
+#define _OC2GBTS_TEMP_H
+
+enum oc2gbts_temp_sensor {
+ OC2GBTS_TEMP_SUPPLY,
+ OC2GBTS_TEMP_SOC,
+ OC2GBTS_TEMP_FPGA,
+ OC2GBTS_TEMP_RMSDET,
+ OC2GBTS_TEMP_OCXO,
+ OC2GBTS_TEMP_TX,
+ OC2GBTS_TEMP_PA,
+ _NUM_TEMP_SENSORS
+};
+
+enum oc2gbts_temp_type {
+ OC2GBTS_TEMP_INPUT,
+ OC2GBTS_TEMP_LOWEST,
+ OC2GBTS_TEMP_HIGHEST,
+ OC2GBTS_TEMP_FAULT,
+ _NUM_TEMP_TYPES
+};
+
+int oc2gbts_temp_get(enum oc2gbts_temp_sensor sensor, int *temp);
+
+
+#endif