aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-12-29 21:14:20 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-12-29 22:51:45 +0100
commit9c559147c72d3f22a9d642dbad8be659902377c3 (patch)
tree35464381af2f2992ff892f041f43dccd024720c6
parent2b5ff992a0256e8cb8809e499e5ded5f4afb65da (diff)
smscb: Add definition of a warning message
-rw-r--r--include/osmocore/protocol/gsm_03_41.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/osmocore/protocol/gsm_03_41.h b/include/osmocore/protocol/gsm_03_41.h
index 9e461f2c..3b1b7c9f 100644
--- a/include/osmocore/protocol/gsm_03_41.h
+++ b/include/osmocore/protocol/gsm_03_41.h
@@ -25,6 +25,21 @@ struct gsm341_ms_message {
uint8_t data[0];
} __attribute__((packed));
+/* Chapter 9.4.1.3 */
+struct gsm341_etws_message {
+ struct {
+ uint8_t code_hi:4;
+ uint8_t popup:1;
+ uint8_t alert:1;
+ uint8_t gs:2;
+ uint8_t update:4;
+ uint8_t code_lo:4;
+ } serial;
+ uint16_t msg_id;
+ uint16_t warning_type;
+ 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 */