5 #include <osmocom/core/defs.h>
6 #include <osmocom/core/utils.h>
7 #include <osmocom/gsm/protocol/gsm_04_08.h>
9 #define OSMO_EARFCN_INVALID 666
10 #define OSMO_EARFCN_MEAS_INVALID 0xff
12 enum osmo_sysinfo_type {
36 SYSINFO_TYPE_MEAS_INFO,
66 typedef uint8_t sysinfo_buf_t[GSM_MACBLOCK_LEN];
68 extern const struct value_string osmo_sitype_strs[_MAX_SYSINFO_TYPE];
69 int osmo_earfcn_add(
struct osmo_earfcn_si2q *e, uint16_t arfcn, uint8_t meas_bw);
71 size_t osmo_earfcn_bit_size(
const struct osmo_earfcn_si2q *e) OSMO_DEPRECATED(
"Use osmo_earfcn_bit_size_ext()instead.");
72 size_t osmo_earfcn_bit_size_ext(
const struct osmo_earfcn_si2q *e,
size_t offset);
74 uint8_t osmo_sitype2rsl(
enum osmo_sysinfo_type si_type);
75 enum osmo_sysinfo_type osmo_rsl2sitype(uint8_t rsl_si);