libosmogsm 1.6.0.113-b17c
Osmocom GSM library
gsm_23_041.h
Go to the documentation of this file.
1#pragma once
4
5/* Section 9.4.1.2: GSM Message Format */
7 uint16_t serial_nr;
8 uint16_t message_id;
9 uint8_t dcs;
10 struct {
11#if OSMO_IS_LITTLE_ENDIAN
12 uint8_t num_pages:4,
13 page_nr:4;
14#elif OSMO_IS_BIG_ENDIAN
15/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianess.py) */
16 uint8_t page_nr:4, num_pages:4;
17#endif
19 uint8_t content[0];
20} __attribute__ ((packed));
21
22/* Section 9.4.1.2.2 Message Identifier */
23enum {
24 /* 0 - 999: Allocated by GSM AD.26 */
29 /* 1004 - 4095: RFU */
30 /* 4096 - 4223: clear text SIM data download */
31 /* 4224 - 4351: secured SIM data download */
37 /* 4357 - 4359: ETWS RFU */
38 /* 4360 - 4369: RFU */
65 /* 4396 - 4399: RFU CMAS / EU-Alert */
66 /* 4400 - 6399: RFU PWS */
68 /* 6491 - 40959: RFU */
69 /* 40960 - 45055: PLMN operator specific range */
70 /* 45056 - 61439: PLMN operator specific range RFU */
71 /* 61440 - 65534: PLMN operator specific range */
72 CBS_MSGID_RESERVED = 65535
73};
74
75/* Section 9.4.1.3.2 ETWS Primary Notification Message Parameter */
77 uint16_t serial_nr;
78 uint16_t message_id;
79 uint16_t warning_type;
80 uint8_t warning_sec_info[50];
81} __attribute__ ((packed));
82
83
84/* Section 9.4.2.2 UMTS Message Parameter */
86 uint8_t msg_type; /* as per TS 25.324 */
87 uint16_t message_id;
88 uint16_t serial_nr;
89 uint8_t dcs;
90 uint8_t content[0];
91} __attribute__ ((packed));
enum @102 __attribute__
@ CBS_MSGID_CMAS_MONTHLY_TEST
Definition: gsm_23_041.h:49
@ CBS_MSGID_LCS_DGPS_CORRECTION
Definition: gsm_23_041.h:26
@ CBS_MSGID_CMAS_EXTREME_IMMEDIATE_OBSERVED_ADDL
Definition: gsm_23_041.h:53
@ CBS_MSGID_ETWS_TSUNAMI
Definition: gsm_23_041.h:33
@ CBS_MSGID_CMAS_EXTREME_EXPECTED_OBSERVED_ADDL
Definition: gsm_23_041.h:55
@ CBS_MSGID_CMAS_SEVERE_IMMEDIATE_LIKELY
Definition: gsm_23_041.h:45
@ CBS_MSGID_CMAS_EXTREME_EXPECTED_LIKELY
Definition: gsm_23_041.h:43
@ CBS_MSGID_CMAS_SEVERE_IMMEDIATE_LIKELY_ADDL
Definition: gsm_23_041.h:58
@ CBS_MSGID_CMAS_PRESIDENTIAL_ADDL
Definition: gsm_23_041.h:52
@ CBS_MSGID_CMAS_EXTREME_IMMEDIATE_LIKELY_ADDL
Definition: gsm_23_041.h:54
@ CBS_MSGID_CMAS_SEVERE_IMMEDIATE_OBSERVED_ADDL
Definition: gsm_23_041.h:57
@ CBS_MSGID_CMAS_OPERATOR_DEFINED_ADDL
Definition: gsm_23_041.h:64
@ CBS_MSGID_CMAS_AMBER
Definition: gsm_23_041.h:48
@ CBS_MSGID_ETWS_TEST
Definition: gsm_23_041.h:35
@ CBS_MSGID_CMAS_PRESIDENTIAL
Definition: gsm_23_041.h:39
@ CBS_MSGID_CMAS_SEVERE_IMMEDIATE_OBSERVED
Definition: gsm_23_041.h:44
@ CBS_MSGID_CMAS_EXTREME_EXPECTED_LIKELY_ADDL
Definition: gsm_23_041.h:56
@ CBS_MSGID_CMAS_EXTREME_IMMEDIATE_OBSERVED
Definition: gsm_23_041.h:40
@ CBS_MSGID_LCS_GPS_EPHEM_CLOCK
Definition: gsm_23_041.h:27
@ CBS_MSGID_CMAS_OPERATOR_DEFINED
Definition: gsm_23_041.h:51
@ CBS_MSGID_RESERVED
Definition: gsm_23_041.h:72
@ CBS_MSGID_LCS_GPS_ALMANAC_OTHER
Definition: gsm_23_041.h:28
@ CBS_MSGID_LCS_EOTD_ASSIST
Definition: gsm_23_041.h:25
@ CBS_MSGID_CMAS_SEVERE_EXPECTED_OBSERVED
Definition: gsm_23_041.h:46
@ CBS_MSGID_CMAS_EXERCISE
Definition: gsm_23_041.h:50
@ CBS_MSGID_ETWS_EARTHQUAKE_TSUNAMI
Definition: gsm_23_041.h:34
@ CBS_MSGID_CMAS_AMBER_ADDL
Definition: gsm_23_041.h:61
@ CBS_MSGID_EU_INFO_LOCAL_LANG
Definition: gsm_23_041.h:67
@ CBS_MSGID_CMAS_MONTHLY_TEST_ADDL
Definition: gsm_23_041.h:62
@ CBS_MSGID_ETWS_EARTHQUAKE
Definition: gsm_23_041.h:32
@ CBS_MSGID_ETWS_OTHER
Definition: gsm_23_041.h:36
@ CBS_MSGID_CMAS_EXTREME_EXPECTED_OBSERVED
Definition: gsm_23_041.h:42
@ CBS_MSGID_CMAS_EXERCISE_ADDL
Definition: gsm_23_041.h:63
@ CBS_MSGID_CMAS_SEVERE_EXPECTED_LIKELY_ADDL
Definition: gsm_23_041.h:60
@ CBS_MSGID_CMAS_SEVERE_EXPECTED_OBSERVED_ADDL
Definition: gsm_23_041.h:59
@ CBS_MSGID_CMAS_SEVERE_EXPECTED_LIKELY
Definition: gsm_23_041.h:47
@ CBS_MSGID_CMAS_EXTREME_IMMEDIATE_LIKELY
Definition: gsm_23_041.h:41
Definition: gsm_23_041.h:76
uint8_t warning_sec_info[50]
Definition: gsm_23_041.h:80
uint16_t serial_nr
Definition: gsm_23_041.h:77
uint16_t message_id
Definition: gsm_23_041.h:78
uint16_t warning_type
Definition: gsm_23_041.h:79
Definition: gsm_23_041.h:6
uint16_t message_id
Definition: gsm_23_041.h:8
uint8_t content[0]
Definition: gsm_23_041.h:19
uint16_t serial_nr
Definition: gsm_23_041.h:7
uint8_t dcs
Definition: gsm_23_041.h:9
struct gsm23041_msg_param_gsm::@103 page_param
Definition: gsm_23_041.h:85
uint8_t msg_type
Definition: gsm_23_041.h:86
uint8_t dcs
Definition: gsm_23_041.h:89
uint16_t serial_nr
Definition: gsm_23_041.h:88
uint8_t content[0]
Definition: gsm_23_041.h:90
uint16_t message_id
Definition: gsm_23_041.h:87