11 #ifndef OSMO_IS_LITTLE_ENDIAN
12 #define OSMO_IS_LITTLE_ENDIAN 0
15 #define GSM341_MAX_PAYLOAD (GSM412_MSG_LEN-sizeof(struct gsm341_ms_message))
16 #define GSM341_MAX_CHARS (GSM341_MAX_PAYLOAD*8/7)
17 #define GSM341_7BIT_PADDING '\r'
22 #if OSMO_IS_LITTLE_ENDIAN == 1
36 #if OSMO_IS_LITTLE_ENDIAN == 1
45 #if OSMO_IS_LITTLE_ENDIAN == 1
59 #if OSMO_IS_LITTLE_ENDIAN == 1
80 #define GSM341_MSG_CODE(ms) ((ms)->serial.code_lo | ((ms)->serial.code_hi << 4))
83 #define GSM341_GS_CELL_WIDE_IMMED 0
84 #define GSM341_GS_PLMN_WIDE 1
85 #define GSM341_GS_LA_WIDE 2
86 #define GSM341_GS_CELL_WIDE 3
89 #define GSM341_MSGID_EOTD_ASSISTANCE 0x03E8
90 #define GSM341_MSGID_DGPS_CORRECTION 0x03E9
91 #define GSM341_MSGID_DGPS_EPH_CLOCK_COR 0x03EA
92 #define GSM341_MSGID_GPS_ALMANAC_OTHER 0x03EB
93 #define GSM341_MSGID_ETWS_EARTHQUAKE 0x1100
94 #define GSM341_MSGID_ETWS_TSUNAMI 0x1101
95 #define GSM341_MSGID_ETWS_QUAKE_AND_TSUNAMI 0x1102
96 #define GSM341_MSGID_ETWS_TEST 0x1103
97 #define GSM341_MSGID_ETWS_OTHER 0x1104
98 #define GSM341_MSGID_ETWS_CMAS_PRESIDENTIAL 0x1112
99 #define GSM341_MSGID_ETWS_CMAS_EXTREME_IMM_OBSERVED 0x1113
100 #define GSM341_MSGID_ETWS_CMAS_EXTREME_IMM_LIKELY 0x1114
101 #define GSM341_MSGID_ETWS_CMAS_EXTREME_EXP_OBSERVED 0x1115
102 #define GSM341_MSGID_ETWS_CMAS_EXTREME_EXP_LIKELY 0x1116
103 #define GSM341_MSGID_ETWS_CMAS_SEVERE_IMM_OBSERVED 0x1117
104 #define GSM341_MSGID_ETWS_CMAS_SEVERE_IMM_LIKELY 0x1118
105 #define GSM341_MSGID_ETWS_CMAS_SEVERE_EXP_OBSERVED 0x1119
106 #define GSM341_MSGID_ETWS_CMAS_SEVERE_EXP_LIKELY 0x111A
107 #define GSM341_MSGID_ETWS_CMAS_AMBER 0x111B
108 #define GSM341_MSGID_ETWS_CMAS_MONTHLY_TEST 0x111C
109 #define GSM341_MSGID_ETWS_CMAS_EXERCISE 0x111D
110 #define GSM341_MSGID_ETWS_CMAS_OPERATOR_DEFINED 0x111E
111 #define GSM341_MSGID_ETWS_CMAS_PRESIDENTIAL_AL 0x111F
112 #define GSM341_MSGID_ETWS_CMAS_EXTREME_IMM_OBSERVED_AL 0x1120
113 #define GSM341_MSGID_ETWS_CMAS_EXTREME_IMM_LIKELY_AL 0x1121
114 #define GSM341_MSGID_ETWS_CMAS_EXTREME_EXP_OBSERVED_AL 0x1122
115 #define GSM341_MSGID_ETWS_CMAS_EXTREME_EXP_LIKELY_AL 0x1123
116 #define GSM341_MSGID_ETWS_CMAS_SEVERE_IMM_OBSERVED_AL 0x1124
117 #define GSM341_MSGID_ETWS_CMAS_SEVERE_IMM_LIKELY_AL 0x1125
118 #define GSM341_MSGID_ETWS_CMAS_SEVERE_EXP_OBSERVED_AL 0x1126
119 #define GSM341_MSGID_ETWS_CMAS_SEVERE_EXP_LIKELY_AL 0x1127
120 #define GSM341_MSGID_ETWS_CMAS_AMBER_AL 0x1128
121 #define GSM341_MSGID_ETWS_CMAS_MONTHLY_TEST_AL 0x1129
122 #define GSM341_MSGID_ETWS_CMAS_EXERCISE_AL 0x112A
123 #define GSM341_MSGID_ETWS_CMAS_OPERATOR_DEFINED_AL 0x112B
124 #define GSM341_MSGID_ETWS_EU_INFO_LOCAL_LANGUAGE 0x1900
Definition: gsm_03_41.h:57
uint8_t code_lo
Definition: gsm_03_41.h:30
uint8_t code_lo
Definition: gsm_03_41.h:71
Definition: gsm_03_41.h:20
uint8_t data[0]
Definition: gsm_03_41.h:53
uint8_t update
Definition: gsm_03_41.h:31
uint8_t language
Definition: gsm_03_41.h:41
struct gsm341_ms_message __attribute__((packed))
uint8_t data[0]
Definition: gsm_03_41.h:77
uint8_t alert
Definition: gsm_03_41.h:68
uint8_t current
Definition: gsm_03_41.h:49
uint16_t msg_id
Definition: gsm_03_41.h:75
uint8_t gs
Definition: gsm_03_41.h:28
uint8_t popup
Definition: gsm_03_41.h:69
struct gsm341_ms_message::@10 page
uint8_t update
Definition: gsm_03_41.h:72
uint16_t warning_type
Definition: gsm_03_41.h:76
uint8_t code_hi
Definition: gsm_03_41.h:70
uint8_t total
Definition: gsm_03_41.h:50
uint16_t msg_id
Definition: gsm_03_41.h:34
struct gsm341_ms_message::@8 serial
uint8_t group
Definition: gsm_03_41.h:40
struct gsm341_etws_message::@14 serial
struct gsm341_ms_message::@9 dcs
GSM TS 04.12 definitions for Short Message Service Cell Broadcast.
uint8_t code_hi
Definition: gsm_03_41.h:29
uint8_t gs
Definition: gsm_03_41.h:67