libosmogsm
1.9.2
Osmocom GSM library
|
#include <stdbool.h>
#include <osmocom/core/defs.h>
#include <osmocom/core/utils.h>
#include <osmocom/gsm/protocol/gsm_04_08.h>
Go to the source code of this file.
Data Structures | |
struct | osmo_earfcn_si2q |
Macros | |
#define | OSMO_EARFCN_INVALID 666 |
#define | OSMO_EARFCN_MEAS_INVALID 0xff |
Typedefs | |
typedef uint8_t | sysinfo_buf_t[GSM_MACBLOCK_LEN] |
Functions | |
int | osmo_earfcn_add (struct osmo_earfcn_si2q *e, uint16_t arfcn, uint8_t meas_bw) |
Add pair of arfcn and measurement bandwith value to earfcn struct. More... | |
int | osmo_earfcn_del (struct osmo_earfcn_si2q *e, uint16_t arfcn) |
Delete arfcn (and corresponding measurement bandwith) from earfcn struct. More... | |
size_t | osmo_earfcn_bit_size (const struct osmo_earfcn_si2q *e) OSMO_DEPRECATED("Use osmo_earfcn_bit_size_ext()instead.") |
Return number of bits necessary to represent earfcn struct as Repeated E-UTRAN Neighbour Cells IE from 3GPP TS 44.018 Table 10.5.2.33b.1. More... | |
size_t | osmo_earfcn_bit_size_ext (const struct osmo_earfcn_si2q *e, size_t offset) |
Return number of bits necessary to represent earfcn struct as Repeated E-UTRAN Neighbour Cells IE from 3GPP TS 44.018 Table 10.5.2.33b.1. More... | |
void | osmo_earfcn_init (struct osmo_earfcn_si2q *e) |
Initialize earfcn struct. More... | |
uint8_t | osmo_sitype2rsl (enum osmo_sysinfo_type si_type) |
enum osmo_sysinfo_type | osmo_rsl2sitype (uint8_t rsl_si) |
Variables | |
const struct value_string | osmo_sitype_strs [_MAX_SYSINFO_TYPE] |
#define OSMO_EARFCN_INVALID 666 |
#define OSMO_EARFCN_MEAS_INVALID 0xff |
typedef uint8_t sysinfo_buf_t[GSM_MACBLOCK_LEN] |
enum osmo_sysinfo_type |
int osmo_earfcn_add | ( | struct osmo_earfcn_si2q * | e, |
uint16_t | arfcn, | ||
uint8_t | meas_bw | ||
) |
Add pair of arfcn and measurement bandwith value to earfcn struct.
[in,out] | e | earfcn struct |
[in] | arfcn | EARFCN value, 16 bits |
[in] | meas_bw | measurement bandwith value |
References arfcn, osmo_earfcn_si2q::arfcn, osmo_earfcn_si2q::length, osmo_earfcn_si2q::meas_bw, and OSMO_EARFCN_INVALID.
size_t osmo_earfcn_bit_size | ( | const struct osmo_earfcn_si2q * | e | ) |
Return number of bits necessary to represent earfcn struct as Repeated E-UTRAN Neighbour Cells IE from 3GPP TS 44.018 Table 10.5.2.33b.1.
[in,out] | e | earfcn struct |
References osmo_earfcn_bit_size_ext().
size_t osmo_earfcn_bit_size_ext | ( | const struct osmo_earfcn_si2q * | e, |
size_t | offset | ||
) |
Return number of bits necessary to represent earfcn struct as Repeated E-UTRAN Neighbour Cells IE from 3GPP TS 44.018 Table 10.5.2.33b.1.
[in,out] | e | earfcn struct |
[in] | offset | into earfcn struct: how many EARFCNs to skip while estimating size |
References osmo_earfcn_si2q::arfcn, osmo_earfcn_si2q::length, osmo_earfcn_si2q::meas_bw, OSMO_EARFCN_INVALID, OSMO_EARFCN_MEAS_INVALID, osmo_earfcn_si2q::prio_valid, osmo_earfcn_si2q::qrxlm_valid, and osmo_earfcn_si2q::thresh_lo_valid.
Referenced by osmo_earfcn_bit_size().
int osmo_earfcn_del | ( | struct osmo_earfcn_si2q * | e, |
uint16_t | arfcn | ||
) |
Delete arfcn (and corresponding measurement bandwith) from earfcn struct.
[in,out] | e | earfcn struct |
[in] | arfcn | EARFCN value, 16 bits |
References arfcn, osmo_earfcn_si2q::arfcn, osmo_earfcn_si2q::length, osmo_earfcn_si2q::meas_bw, OSMO_EARFCN_INVALID, and OSMO_EARFCN_MEAS_INVALID.
void osmo_earfcn_init | ( | struct osmo_earfcn_si2q * | e | ) |
Initialize earfcn struct.
[in,out] | e | earfcn struct |
References osmo_earfcn_si2q::arfcn, osmo_earfcn_si2q::length, osmo_earfcn_si2q::meas_bw, OSMO_EARFCN_INVALID, and OSMO_EARFCN_MEAS_INVALID.
enum osmo_sysinfo_type osmo_rsl2sitype | ( | uint8_t | rsl_si | ) |
References rsl2sitype.
uint8_t osmo_sitype2rsl | ( | enum osmo_sysinfo_type | si_type | ) |
References sitype2rsl.
const struct value_string osmo_sitype_strs[_MAX_SYSINFO_TYPE] |