summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2020-10-01 06:37:19 +0200
committerlaforge <laforge@osmocom.org>2020-10-13 08:43:10 +0000
commit0d774653c032537ad1730254e0f68cb78dc11f19 (patch)
tree593397cd942362c8061d5ad120ffc247949c0c73 /library
parent8a6863ccbabc695784b770345a405eafc331eaae (diff)
BSSLAP: add some templates
Diffstat (limited to 'library')
-rw-r--r--library/BSSLAP_Types.ttcn76
1 files changed, 76 insertions, 0 deletions
diff --git a/library/BSSLAP_Types.ttcn b/library/BSSLAP_Types.ttcn
index 90c3953..742d1f5 100644
--- a/library/BSSLAP_Types.ttcn
+++ b/library/BSSLAP_Types.ttcn
@@ -493,7 +493,83 @@ tr_BSSLAP_Abort(template (present) BSSLAP_Cause cause) := {
}
}
+template (value) BSSLAP_PDU ts_BSSLAP_TA_Layer3(uint8_t ta) := {
+ ta_layer3 := {
+ msg_type := BSSLAP_MSGT_TA_LAYER3,
+ timing_advance := ts_BSSLAP_IE_TA(ta),
+ meas_rep := omit,
+ enh_meas_rep := omit,
+ meas_cell_id_list := omit
+ }
+}
+
+template (present) BSSLAP_PDU tr_BSSLAP_TA_Layer3(template BSSLAP_IE_TimingAdvance timing_advance := *) := {
+ ta_layer3 := {
+ msg_type := BSSLAP_MSGT_TA_LAYER3,
+ timing_advance := timing_advance,
+ meas_rep := *,
+ enh_meas_rep := *,
+ meas_cell_id_list := *
+ }
+}
+
+template (value) BSSLAP_IE_ChanDesc ts_BSSLAP_IE_ChanDesc := {
+ iei := BSSLAP_IEI_CHAN_DESC,
+ chan_desc := '112233'O /* FIXME */
+}
+
+template (value) BSSLAP_PDU
+ts_BSSLAP_Reset(uint16_t cell_id,
+ uint8_t ta,
+ BSSLAP_IE_ChanDesc chan_desc,
+ BSSLAP_Cause cause) := {
+ reset := {
+ msg_type := BSSLAP_MSGT_RESET,
+ cell_id := ts_BSSLAP_IE_CellId(cell_id),
+ timing_advance := ts_BSSLAP_IE_TA(ta),
+ chan_desc := chan_desc,
+ cause := tr_BSSLAP_IE_Cause(cause),
+ meas_rep := omit,
+ enh_meas_rep := omit,
+ meas_cell_id_list := omit,
+ lac := omit,
+ freq_list := omit,
+ chan_mode := omit,
+ mr_config := omit,
+ pkt_chan_desc := omit,
+ tlli := omit,
+ tfi := omit,
+ tbf_start_time := omit,
+ encr_key := omit,
+ ciph_mode_set := omit,
+ long_encr_key := omit
+ }
+}
+template (present) BSSLAP_PDU
+tr_BSSLAP_Reset(template (present) BSSLAP_Cause cause) := {
+ reset := {
+ msg_type := BSSLAP_MSGT_RESET,
+ cell_id := ?,
+ timing_advance := ?,
+ chan_desc := ?,
+ cause := tr_BSSLAP_IE_Cause(cause),
+ meas_rep := *,
+ enh_meas_rep := *,
+ meas_cell_id_list := *,
+ lac := *,
+ freq_list := *,
+ chan_mode := *,
+ mr_config := *,
+ pkt_chan_desc := *,
+ tlli := *,
+ tfi := *,
+ tbf_start_time := *,
+ encr_key := *,
+ ciph_mode_set := *,
+ long_encr_key := *
+ }
+}
template (value) BSSLAP_IE_TimingAdvance ts_BSSLAP_IE_TA(uint8_t ta) := {
iei := BSSLAP_IEI_TA,