aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/bsc/gsm_data.h
diff options
context:
space:
mode:
authorKeith <keith@rhizomatica.org>2021-09-23 06:43:03 +0200
committerKeith <keith@rhizomatica.org>2021-09-23 06:43:14 +0200
commit5d25c81f81299790c6b4b388c3cebc208ed9b491 (patch)
tree53d970ec2cf009b31b2bf53105761dfe29e07c8c /include/osmocom/bsc/gsm_data.h
parentca3332f90601da8321c05a04bcc3415a3726b298 (diff)
Implement BSC MS Uplink Power Control Loop.keith/uplink_power_loop2
This is a more or less a port of the power control Loop from osmo-bts Change-Id: Ibc307e758697eb5ca3fb86622f35709d6077db9e
Diffstat (limited to 'include/osmocom/bsc/gsm_data.h')
-rw-r--r--include/osmocom/bsc/gsm_data.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/osmocom/bsc/gsm_data.h b/include/osmocom/bsc/gsm_data.h
index b16614695..9369b5d9a 100644
--- a/include/osmocom/bsc/gsm_data.h
+++ b/include/osmocom/bsc/gsm_data.h
@@ -665,6 +665,19 @@ struct lchan_modify_info {
#define INTERF_DBM_UNKNOWN 0
#define INTERF_BAND_UNKNOWN 0xff
+/* Measurement pre-processing state */
+struct gsm_power_ctrl_meas_proc_state {
+ /* Number of measurements processed */
+ unsigned int meas_num;
+ /* Algorithm specific data */
+ union {
+ struct {
+ /* Scaled up 100 times average value */
+ int Avg100;
+ } ewma;
+ };
+};
+
struct gsm_lchan {
/* The TS that we're part of */
struct gsm_bts_trx_ts *ts;
@@ -808,6 +821,7 @@ struct gsm_lchan {
/* Actual reported interference band index, or INTERF_BAND_UNKNOWN if this lchan was not included in the most
* recent Resource Indication. */
uint8_t interf_band;
+ struct gsm_power_ctrl_meas_proc_state rxlev_meas_proc;
};
/* One Timeslot in a TRX */