L1CTL_Types: Split t_IMM_ASS() off t_RR_IMM_ASS()

It's useful to have a separat template only for the IM_ASS part, without
RR header.
This commit is contained in:
Harald Welte 2017-07-30 17:19:41 +02:00
parent b3c226ebde
commit 88849c61b2
1 changed files with 13 additions and 10 deletions

View File

@ -501,18 +501,21 @@ module L1CTL_Types {
}
};
template GsmRrMessage t_RR_IMM_ASS(uint8_t ra, uint8_t fn) := {
template ImmediateAssignment t_IMM_ASS(uint8_t ra, GsmFrameNumber fn) := {
ded_or_tbf := ?,
page_mode := ?,
chan_desc := *,
pkt_chan_desc := *,
req_ref := f_compute_ReqRef(ra, fn),
timing_advance := ?,
mobile_allocation := ?,
rest_octets:= ?
};
template GsmRrMessage t_RR_IMM_ASS(uint8_t ra, GsmFrameNumber fn) := {
header := t_RrHeader(IMMEDIATE_ASSIGNMENT, ?),
payload := {
imm_ass := {
ded_or_tbf := ?,
page_mode := ?,
chan_desc := *,
pkt_chan_desc := *,
req_ref := f_compute_ReqRef(ra, fn),
timing_advance := ?,
mobile_allocation := ?
}
imm_ass := t_IMM_ASS(ra, fn)
}
};