summaryrefslogtreecommitdiffstats
path: root/include/osmocore/protocol
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-12-29 11:57:48 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-12-29 22:51:45 +0100
commite05c7dfa8e85babe0e9b15e499ffab4da5b53a13 (patch)
treed5ae324a30c8a56453f4355368cedddf2031eb3c /include/osmocore/protocol
parentdf327f6d81be9c73acba7b4edfa4f9336fcb686c (diff)
smscb: Add some simple decoding routines for SMSCB.
Diffstat (limited to 'include/osmocore/protocol')
-rw-r--r--include/osmocore/protocol/gsm_03_41.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocore/protocol/gsm_03_41.h b/include/osmocore/protocol/gsm_03_41.h
index 250d6675..852d25d0 100644
--- a/include/osmocore/protocol/gsm_03_41.h
+++ b/include/osmocore/protocol/gsm_03_41.h
@@ -25,6 +25,8 @@ struct gsm341_ms_message {
uint8_t data[0];
} __attribute__((packed));
+#define GSM341_MSG_CODE(ms) (ms->serial.code_lo | (msg->serial.code_hi << 4))
+
/* Section 9.3.2.1 - Geographical Scope */
#define GSM341_GS_CELL_WIDE_IMMED 0
#define GSM341_GS_PLMN_WIDE 1