summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-04-15 16:04:04 +0200
committerHarald Welte <laforge@gnumonks.org>2016-04-16 13:41:56 +0200
commitfbb8bfa514284f9744809afba51dec716590090c (patch)
treed66c5065eb4f5502e3a3511e378cb1d8a898a069 /include
parentda1b20cd4f7b13121434d32817886d7803fd6052 (diff)
Add function to get osmo_earfcn bit size
This function returns the number of bits necessary to pack osmo_earfcn into Repeated E-UTRAN Neighbour Cells IE (3GPP TS 44.018 Table 10.5.2.33b.1).
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/gsm/sysinfo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/gsm/sysinfo.h b/include/osmocom/gsm/sysinfo.h
index cb7e10de..c7972f48 100644
--- a/include/osmocom/gsm/sysinfo.h
+++ b/include/osmocom/gsm/sysinfo.h
@@ -66,6 +66,7 @@ typedef uint8_t sysinfo_buf_t[GSM_MACBLOCK_LEN];
extern const struct value_string osmo_sitype_strs[_MAX_SYSINFO_TYPE];
int osmo_earfcn_add(struct osmo_earfcn_si2q *e, uint16_t arfcn, uint8_t meas_bw);
int osmo_earfcn_del(struct osmo_earfcn_si2q *e, uint16_t arfcn);
+size_t osmo_earfcn_bit_size(const struct osmo_earfcn_si2q *e);
void osmo_earfcn_init(struct osmo_earfcn_si2q *e);
uint8_t osmo_sitype2rsl(enum osmo_sysinfo_type si_type);
enum osmo_sysinfo_type osmo_rsl2sitype(uint8_t rsl_si);