summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2020-05-10 12:45:18 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2020-05-10 12:46:03 +0700
commit2742bcd6fdf4196a7d1c6fb3ff32c7cbf58851df (patch)
tree4401c0be80ad33c948f868b0a9cc1965f0a98d80 /library
parentb043b78419d436edfc59deae317baf7b5f65c5af (diff)
PCU: introduce f_rrbp_ack_fn(), fix poll frame number calculation
The resulting frame number shall be within the period of TDMA hyperframe. Change-Id: I794a14f69293cbbc937d62d09dd5794956b882db Signed-off-by: Vadim Yanitskiy <axilirator@gmail.com>
Diffstat (limited to 'library')
-rw-r--r--library/RLCMAC_Templates.ttcn5
1 files changed, 5 insertions, 0 deletions
diff --git a/library/RLCMAC_Templates.ttcn b/library/RLCMAC_Templates.ttcn
index 38147f3..bcd2b23 100644
--- a/library/RLCMAC_Templates.ttcn
+++ b/library/RLCMAC_Templates.ttcn
@@ -29,6 +29,11 @@ module RLCMAC_Templates {
return 0;
}
+ function f_rrbp_ack_fn(uint32_t current_fn, MacRrbp rrbp)
+ return uint32_t {
+ return (current_fn + f_rrbp_fn_delay(rrbp)) mod 2715648;
+ }
+
function f_rlcmac_mcs2headertype(CodingScheme mcs) return EgprsHeaderType {
select (mcs) {
case (MCS_0) { return RLCMAC_HDR_TYPE_3; }