library/L1CTL_PortType: add f_L1CTL_rx_data() helper
Change-Id: I254171c6dc83f046b5ad1a72586c097deebb0fa7 Related: SYS#5319
This commit is contained in:
parent
66d3c338c3
commit
e243ef6bf0
|
@ -42,6 +42,29 @@ module L1CTL_PortType {
|
|||
return len;
|
||||
}
|
||||
|
||||
function f_L1CTL_rx_data(L1CTL_PT pt,
|
||||
template (present) RslChannelNr chan_nr := ?,
|
||||
template (present) RslLinkId link_id := ?)
|
||||
return L1ctlDlMessage {
|
||||
var L1ctlDlMessage dl;
|
||||
timer T := 2.0;
|
||||
|
||||
T.start;
|
||||
alt {
|
||||
[] pt.receive(tr_L1CTL_DATA_IND(chan_nr, link_id)) -> value dl {
|
||||
return dl;
|
||||
}
|
||||
[] pt.receive { repeat; }
|
||||
[] T.timeout {
|
||||
setverdict(fail, "Timeout waiting for L1CTL DATA.ind");
|
||||
mtc.stop;
|
||||
}
|
||||
}
|
||||
|
||||
/* Unreachable, make TITAN happy */
|
||||
return dl;
|
||||
}
|
||||
|
||||
function f_L1CTL_FBSB(L1CTL_PT pt, GsmBandArfcn arfcn,
|
||||
L1ctlCcchMode ccch_mode := CCCH_MODE_COMBINED,
|
||||
integer rxlev_exp := 57)
|
||||
|
|
Loading…
Reference in New Issue