libosmogsm  0.10.2.279.178b
Osmocom GSM library
gsm_04_12.h
Go to the documentation of this file.
1 
4 #pragma once
5 
6 #include <stdint.h>
7 
8 #define GSM412_MSG_LEN 88 /* TS 04.12 Section 3.1 */
9 #define GSM412_BLOCK_LEN 22 /* TS 04.12 Section 3.1 */
10 
11 #define GSM412_SEQ_FST_BLOCK 0x0
12 #define GSM412_SEQ_SND_BLOCK 0x1
13 #define GSM412_SEQ_TRD_BLOCK 0x2
14 #define GSM412_SEQ_FTH_BLOCK 0x3
15 #define GSM412_SEQ_FST_SCHED_BLOCK 0x8
16 #define GSM412_SEQ_NULL_MSG 0xf
17 
19  uint8_t seq_nr : 4,
20  lb : 1,
21  lpd : 2,
22  spare : 1;
23 } __attribute__((packed));
24 
26  uint8_t beg_slot_nr : 6,
27  type : 2;
28  uint8_t end_slot_nr : 6,
29  spare1 : 1, spare2: 1;
30  uint8_t cbsms_msg_map[6];
31  uint8_t data[0];
32 } __attribute__((packed));
Definition: gsm_04_12.h:18
uint8_t spare1
Definition: gsm_04_12.h:440
Definition: gsm_04_12.h:25
uint8_t lb
Definition: gsm_04_12.h:19
struct gsm412_block_type __attribute__((packed))
uint8_t beg_slot_nr
Definition: gsm_04_12.h:438
uint8_t end_slot_nr
Definition: gsm_04_12.h:440
uint8_t seq_nr
Definition: gsm_04_12.h:19
uint8_t cbsms_msg_map[6]
Definition: gsm_04_12.h:442
uint8_t spare
Definition: gsm_04_12.h:19
uint8_t spare2
Definition: gsm_04_12.h:28
uint8_t data[0]
Definition: gsm_04_12.h:443
uint8_t lpd
Definition: gsm_04_12.h:19
uint8_t type
Definition: gsm_04_12.h:26