library/PCUIF_Types.ttcn: add optional parameter for RACH SAPI

Do not hard-code PCU_IF_SAPI_RACH for RACH.ind templates. We need
to be able to specify other SAPIs (PCU_IF_SAPI_PTCCH) in the
upcoming test cases for Timing Advance control.

Change-Id: I7e2ebcbba5e47cf44f064e429c0517ef3acb15af
This commit is contained in:
Vadim Yanitskiy 2019-10-04 16:43:00 +07:00
parent 1f72b0ad84
commit 36aa611694
1 changed files with 6 additions and 4 deletions

View File

@ -570,14 +570,15 @@ template (value) PCUIF_Message ts_PCUIF_RACH_IND(template (value) uint8_t bts_nr
template (value) PCUIF_BurstType burst_type,
template (value) uint32_t fn,
template (value) uint16_t arfcn,
template (value) int16_t qta := 0
template (value) int16_t qta := 0,
template (value) PCUIF_Sapi sapi := PCU_IF_SAPI_RACH
) := {
msg_type := PCU_IF_MSG_RACH_IND,
bts_nr := bts_nr,
spare := '0000'O,
u := {
rach_ind := {
sapi := PCU_IF_SAPI_RACH,
sapi := sapi,
ra := ra,
qta := qta,
fn := fn,
@ -591,13 +592,14 @@ template PCUIF_Message tr_PCUIF_RACH_IND(template uint8_t bts_nr := ?,
template uint16_t ra := ?,
template uint8_t is_11bit := ?,
template PCUIF_BurstType burst_type := ?,
template uint32_t fn := ?) := {
template uint32_t fn := ?,
template PCUIF_Sapi sapi := PCU_IF_SAPI_RACH) := {
msg_type := PCU_IF_MSG_RACH_IND,
bts_nr := bts_nr,
spare := ?,
u := {
rach_ind := {
sapi := PCU_IF_SAPI_RACH,
sapi := sapi,
ra := ra,
qta := ?,
fn := fn,