BSSLAP: add some templates
Change-Id: I6774bb6aefed67ebbfd5da8e52bb463cd6279ed4
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 @@
}
}
+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,