aboutsummaryrefslogtreecommitdiffstats
path: root/GSM48.st
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-08-28 10:13:18 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-08-28 10:31:19 +0200
commitfcfcfdbc59fa9ddb9efc5854c010f36dd24884f1 (patch)
treeec071cea78b1087270b5618ee7a91623f97ba48b /GSM48.st
parentd130ebaa5e9c121c1c08acdd9784dfa9b117975d (diff)
gsm: Provide access to timeslot and subslot number
Diffstat (limited to 'GSM48.st')
-rw-r--r--GSM48.st12
1 files changed, 12 insertions, 0 deletions
diff --git a/GSM48.st b/GSM48.st
index d6102ea..8e48bb1 100644
--- a/GSM48.st
+++ b/GSM48.st
@@ -293,6 +293,18 @@ GSM48SimpleData subclass: GSM48ChannelOrPacketDescription [
<gsmName: 'channelOrPacketDescription'>
<gsmValueLength: 3>
+
+ "broken stuff.. I really need to add a proper conditional
+ checking here..."
+ timeslotNumber [
+ <category: 'channel-description'>
+ ^ (data at: 1) bitAnd: 2r111
+ ]
+
+ channelType [
+ <category: 'channel-description'>
+ ^ (data at: 1) bitShift: -3
+ ]
]
GSM48SimpleData subclass: GSM48TimingAdvance [