libosmogsm 1.13.1.1-afb4 Osmocom GSM library

meas_rep.h
Go to the documentation of this file.
1
3#pragma once
4
5#include <stdint.h>
6#include <stdbool.h>
7
8/* RX Level and RX Quality */
9 struct gsm_rx_lev_qual {
10 uint8_t rx_lev;
11 uint8_t rx_qual;
12};
13
14/* unidirectional measurement report */
15 struct gsm_meas_rep_unidir {
16 struct gsm_rx_lev_qual full;
17 struct gsm_rx_lev_qual sub;
18};
19
20 enum meas_rep_field {
21 MEAS_REP_DL_RXLEV_FULL,
22 MEAS_REP_DL_RXLEV_SUB,
23 MEAS_REP_DL_RXQUAL_FULL,
24 MEAS_REP_DL_RXQUAL_SUB,
25 MEAS_REP_UL_RXLEV_FULL,
26 MEAS_REP_UL_RXLEV_SUB,
27 MEAS_REP_UL_RXQUAL_FULL,
28 MEAS_REP_UL_RXQUAL_SUB,
29};
30
31 size_t gsm0858_rsl_ul_meas_enc(const struct gsm_meas_rep_unidir *mru, bool dtxd_used,
32 uint8_t *buf);
gsm0858_rsl_ul_meas_enc
size_t gsm0858_rsl_ul_meas_enc(const struct gsm_meas_rep_unidir *mru, bool dtxd_used, uint8_t *buf)
Build the RSL uplink measurement IE (3GPP TS 08.58 § 9.3.25)
Definition: gsm_utils.c:494
meas_rep_field
meas_rep_field
Definition: meas_rep.h:20
MEAS_REP_DL_RXQUAL_SUB
@ MEAS_REP_DL_RXQUAL_SUB
Definition: meas_rep.h:24
MEAS_REP_UL_RXQUAL_SUB
@ MEAS_REP_UL_RXQUAL_SUB
Definition: meas_rep.h:28
MEAS_REP_DL_RXLEV_SUB
@ MEAS_REP_DL_RXLEV_SUB
Definition: meas_rep.h:22
MEAS_REP_UL_RXLEV_FULL
@ MEAS_REP_UL_RXLEV_FULL
Definition: meas_rep.h:25
MEAS_REP_DL_RXLEV_FULL
@ MEAS_REP_DL_RXLEV_FULL
Definition: meas_rep.h:21
MEAS_REP_DL_RXQUAL_FULL
@ MEAS_REP_DL_RXQUAL_FULL
Definition: meas_rep.h:23
MEAS_REP_UL_RXLEV_SUB
@ MEAS_REP_UL_RXLEV_SUB
Definition: meas_rep.h:26
MEAS_REP_UL_RXQUAL_FULL
@ MEAS_REP_UL_RXQUAL_FULL
Definition: meas_rep.h:27
gsm_meas_rep_unidir
Definition: meas_rep.h:15
gsm_meas_rep_unidir::sub
struct gsm_rx_lev_qual sub
Definition: meas_rep.h:17
gsm_meas_rep_unidir::full
struct gsm_rx_lev_qual full
Definition: meas_rep.h:16
gsm_rx_lev_qual
Definition: meas_rep.h:9
gsm_rx_lev_qual::rx_qual
uint8_t rx_qual
Definition: meas_rep.h:11
gsm_rx_lev_qual::rx_lev
uint8_t rx_lev
Definition: meas_rep.h:10