aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-06-26 10:50:28 +0200
committerHarald Welte <laforge@gnumonks.org>2017-07-11 06:11:37 +0000
commitb808da44ab417df0a66a9530c6aa8a45f74e74be (patch)
tree20dabb233b09926ad579d19000e267cf1d44b2c1 /include
parent1389e86d116509884b0e5ee3421fe7683afcab9b (diff)
utils: add function gsm_fn_as_gsmtime_str()
Convert a given frame number into a printable string that displays the sub components of the frame number. Change-Id: I8015d2ded3940b01b35df7b72fc35c70c25e9926
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/gsm/gsm_utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/osmocom/gsm/gsm_utils.h b/include/osmocom/gsm/gsm_utils.h
index a879d33c..bfcef08b 100644
--- a/include/osmocom/gsm/gsm_utils.h
+++ b/include/osmocom/gsm/gsm_utils.h
@@ -165,6 +165,9 @@ uint16_t gsm_freq102arfcn(uint16_t freq10, int uplink);
/* Convert from frame number to GSM time */
void gsm_fn2gsmtime(struct gsm_time *time, uint32_t fn);
+/* Parse GSM Frame Number into printable string */
+char *gsm_fn_as_gsmtime_str(uint32_t fn);
+
/* Convert from GSM time to frame number */
uint32_t gsm_gsmtime2fn(struct gsm_time *time);