From e05c7dfa8e85babe0e9b15e499ffab4da5b53a13 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 29 Dec 2010 11:57:48 +0100 Subject: smscb: Add some simple decoding routines for SMSCB. --- include/osmocore/protocol/gsm_03_41.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/osmocore/protocol') 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 -- cgit v1.2.3