aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/misc/sysmobts_misc.h
diff options
context:
space:
mode:
authorÁlvaro Neira Ayuso <anayuso@sysmocom.de>2014-03-12 16:19:59 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-03-12 16:27:38 +0100
commite030dfd443f50803835e6525265cdf6a378e334a (patch)
tree10a90a2f9c7cf85ce475c442ad218d8ed8624924 /src/osmo-bts-sysmo/misc/sysmobts_misc.h
parent21104720f790eac667f73f012863a59ecbeb58d1 (diff)
misc/sysmobts_misc.c: Read temperature from microcontroller
Add function for requesting the temperature information to the microcontroller. I have added a function that we can extend for requesting more information but in this case we only need to know the temperature. I have added to a microcontroller temperature handling function in the manager for monitoring this information. Signed-off-by: Alvaro Neira Ayuso <anayuso@sysmocom.de>
Diffstat (limited to 'src/osmo-bts-sysmo/misc/sysmobts_misc.h')
-rw-r--r--src/osmo-bts-sysmo/misc/sysmobts_misc.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/misc/sysmobts_misc.h b/src/osmo-bts-sysmo/misc/sysmobts_misc.h
index 8f7da478..3c6513ee 100644
--- a/src/osmo-bts-sysmo/misc/sysmobts_misc.h
+++ b/src/osmo-bts-sysmo/misc/sysmobts_misc.h
@@ -13,11 +13,26 @@ enum sysmobts_temp_type {
_NUM_TEMP_TYPES
};
+struct uc {
+ int id;
+ int fd;
+ const char *path;
+};
+
+struct ucinfo {
+ uint16_t id;
+ int master;
+ int slave;
+ int pa;
+};
+
int sysmobts_temp_get(enum sysmobts_temp_sensor sensor,
enum sysmobts_temp_type type);
void sysmobts_check_temp(int no_eeprom_write);
+void sbts2050_uc_check_temp(struct uc *ucontrol, int *temp_pa, int *temp_board);
+
int sysmobts_update_hours(int no_epprom_write);
enum sysmobts_firmware_type {