aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.h
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2016-01-22 18:12:10 +0100
committerJacob Erlbeck <jerlbeck@sysmocom.de>2016-02-02 17:06:38 +0100
commit2525b5ff7252d211df64c41c76395de7713ec09e (patch)
treeb6ccd7a49bff535c82e3ee25b6fd015d0c8cc332 /src/tbf.h
parentf2594e07ebba2c5c4f67bfbee27885c06532e06c (diff)
tbf: Add gprs_rlcmac_tbf::first_control_ts method
Currently the tbf->first_ts field is accessed directly to get the first allocated TS when an immediate assigment is generated. While this is in principle correct (since in that state no other TBF exists), a more generic function that always returns the current (first) PACCH TS would hide the details. Add a function to return the current first PACCH timeslot. Note that concurrent TBF are not supported yet, which will not lead to errors yet, since it is only being used after RACH. Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/tbf.h')
-rw-r--r--src/tbf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tbf.h b/src/tbf.h
index d23cf933..8fce0cb9 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -145,6 +145,7 @@ struct gprs_rlcmac_tbf {
uint8_t ul_slots() const;
bool is_control_ts(uint8_t ts) const;
+ uint8_t first_control_ts() const;
/* EGPRS */
bool is_egprs_enabled() const;