aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/misc/sysmobts_mgr.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-12-12 21:54:43 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-01-09 21:57:13 +0100
commit2e59b20204e2ebcf5baff60774f0fd4ac707404f (patch)
treeb47bae92326f668f0321f443e23aa3d2c3277961 /src/osmo-bts-sysmo/misc/sysmobts_mgr.h
parentfd425b1484ceac900c02f7d8fcb5fb199ef2bbf6 (diff)
sysmobts: Use the ctrl interface for calibration
This runs the entire procedure for calibration with reasonable error and success checking. It can be triggered from the VTY of the sysmobts-mgr right now. What is missing is to hook up with GPSD to check if the system has a fix and provide a mode that will continously run the calibration command.
Diffstat (limited to 'src/osmo-bts-sysmo/misc/sysmobts_mgr.h')
-rw-r--r--src/osmo-bts-sysmo/misc/sysmobts_mgr.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/osmo-bts-sysmo/misc/sysmobts_mgr.h b/src/osmo-bts-sysmo/misc/sysmobts_mgr.h
index 21b442e9..85617304 100644
--- a/src/osmo-bts-sysmo/misc/sysmobts_mgr.h
+++ b/src/osmo-bts-sysmo/misc/sysmobts_mgr.h
@@ -6,6 +6,8 @@
#include <osmocom/core/timer.h>
+#include <stdint.h>
+
enum {
DTEMP,
DFW,
@@ -82,6 +84,10 @@ struct sysmobts_mgr_instance {
int is_up;
struct osmo_timer_list recon_timer;
struct ipa_client_conn *bts_conn;
+
+ int state;
+ struct osmo_timer_list timer;
+ uint32_t last_seqno;
} calib;
};
@@ -89,10 +95,13 @@ int sysmobts_mgr_vty_init(void);
int sysmobts_mgr_parse_config(struct sysmobts_mgr_instance *mgr);
int sysmobts_mgr_nl_init(void);
int sysmobts_mgr_temp_init(struct sysmobts_mgr_instance *mgr);
-int sysmobts_mgr_calib_init(struct sysmobts_mgr_instance *mgr);
const char *sysmobts_mgr_temp_get_state(enum sysmobts_temp_state state);
+int sysmobts_mgr_calib_init(struct sysmobts_mgr_instance *mgr);
+int sysmobts_mgr_calib_run(struct sysmobts_mgr_instance *mgr);
+
+
extern void *tall_mgr_ctx;
#endif