aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/misc/sysmobts_misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osmo-bts-sysmo/misc/sysmobts_misc.h')
-rw-r--r--src/osmo-bts-sysmo/misc/sysmobts_misc.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/osmo-bts-sysmo/misc/sysmobts_misc.h b/src/osmo-bts-sysmo/misc/sysmobts_misc.h
index 7df35874..f3b85c2c 100644
--- a/src/osmo-bts-sysmo/misc/sysmobts_misc.h
+++ b/src/osmo-bts-sysmo/misc/sysmobts_misc.h
@@ -3,6 +3,12 @@
#include <stdint.h>
+/* every 6 hours means 365*4 = 1460 EEprom writes per year (max) */
+#define TEMP_TIMER_SECS (6 * 3600)
+
+/* every 1 hours means 365*24 = 8760 EEprom writes per year (max) */
+#define HOURS_TIMER_SECS (1 * 3600)
+
enum sysmobts_temp_sensor {
SYSMOBTS_TEMP_DIGITAL = 1,
SYSMOBTS_TEMP_RF = 2,
@@ -37,13 +43,9 @@ enum sysmobts_firmware_type {
int sysmobts_firmware_reload(enum sysmobts_firmware_type type);
-struct uc {
- int id;
- int fd;
- const char *path;
-};
-void sbts2050_uc_check_temp(struct uc *ucontrol, int *temp_pa, int *temp_board);
-void sbts2050_uc_set_power(struct uc *ucontrol, int pmaster, int pslave, int ppa);
-int sbts2050_uc_get_status(struct uc *ucontrol, enum sbts2050_status_rqt status);
+void sbts2050_uc_check_temp(int *temp_pa, int *temp_board);
+void sbts2050_uc_set_power(int pmaster, int pslave, int ppa);
+int sbts2050_uc_get_status(enum sbts2050_status_rqt status);
+void sbts2050_uc_initialize();
#endif