libosmogsm  0.9.6-16.20170220git32ee5af8.fc35
Osmocom GSM library
gsm_04_12.h
1 #pragma once
2 
3 #include <stdint.h>
4 
5 /* GSM TS 04.12 definitions for Short Message Service Cell Broadcast */
6 
7 #define GSM412_MSG_LEN 88 /* TS 04.12 Section 3.1 */
8 #define GSM412_BLOCK_LEN 22 /* TS 04.12 Section 3.1 */
9 
10 #define GSM412_SEQ_FST_BLOCK 0x0
11 #define GSM412_SEQ_SND_BLOCK 0x1
12 #define GSM412_SEQ_TRD_BLOCK 0x2
13 #define GSM412_SEQ_FTH_BLOCK 0x3
14 #define GSM412_SEQ_FST_SCHED_BLOCK 0x8
15 #define GSM412_SEQ_NULL_MSG 0xf
16 
18  uint8_t seq_nr : 4,
19  lb : 1,
20  lpd : 2,
21  spare : 1;
22 } __attribute__((packed));
23 
25  uint8_t beg_slot_nr : 6,
26  type : 2;
27  uint8_t end_slot_nr : 6,
28  spare1 : 1, spare2: 1;
29  uint8_t cbsms_msg_map[6];
30  uint8_t data[0];
31 } __attribute__((packed));
Definition: gsm_04_12.h:17
Definition: gsm_04_12.h:24