aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-12-18 21:51:13 +0100
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-12-19 22:54:48 +0100
commit8a2907e6461e628d256e144bb935b9097c680450 (patch)
treebf534d3bd10dd20123ecea419a89ca2a110321fe /include
parent8bde75c91d0c251468436a1f117f6b92deef82ce (diff)
power_control: add encoding/init API to 'struct gsm_bts_model'
This change introduces two optional function pointers: - power_ctrl_enc_rsl_params() - this function will be called by the A-bis/RSL code in order to encode MS/BS Power control parameters for CHANnel ACTIVation and MS/BS POWER CONTROL messages. - power_ctrl_send_def_params() - this function will be called for each transceiver on A-bis/RSL link establishment in order to send default MS/BS Power control parameters. Change-Id: Iba3ad5d8d549a6676050272f85b21c9b4c219d21 Related: SYS#4918
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/bsc/bts.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/osmocom/bsc/bts.h b/include/osmocom/bsc/bts.h
index 7c988a81a..7d070af2e 100644
--- a/include/osmocom/bsc/bts.h
+++ b/include/osmocom/bsc/bts.h
@@ -184,6 +184,11 @@ struct gsm_bts_model {
void (*e1line_bind_ops)(struct e1inp_line *line);
+ /* (Optional) function for encoding MS/BS Power Control paramaters */
+ int (*power_ctrl_enc_rsl_params)(struct msgb *msg, const struct gsm_power_ctrl_params *cp);
+ /* (Optional) function for sending default MS/BS Power Control paramaters */
+ int (*power_ctrl_send_def_params)(const struct gsm_bts_trx *trx);
+
void (*config_write_bts)(struct vty *vty, struct gsm_bts *bts);
void (*config_write_trx)(struct vty *vty, struct gsm_bts_trx *trx);
void (*config_write_ts)(struct vty *vty, struct gsm_bts_trx_ts *ts);