libosmogsm  0.11.0-dirty
Osmocom GSM library
include/osmocom/gsm/protocol/gsm_04_12.h
Go to the documentation of this file.
00001 
00004 #pragma once
00005 
00006 #include <stdint.h>
00007 
00008 #define GSM412_MSG_LEN          88      /* TS 04.12 Section 3.1 */
00009 #define GSM412_BLOCK_LEN        22      /* TS 04.12 Section 3.1 */
00010 
00011 #define GSM412_SEQ_FST_BLOCK            0x0
00012 #define GSM412_SEQ_SND_BLOCK            0x1
00013 #define GSM412_SEQ_TRD_BLOCK            0x2
00014 #define GSM412_SEQ_FTH_BLOCK            0x3
00015 #define GSM412_SEQ_FST_SCHED_BLOCK      0x8
00016 #define GSM412_SEQ_NULL_MSG             0xf
00017 
00018 struct gsm412_block_type {
00019         uint8_t seq_nr : 4,
00020                 lb : 1,
00021                 lpd : 2,
00022                 spare : 1;
00023 } __attribute__((packed));
00024 
00025 struct gsm412_sched_msg {
00026         uint8_t beg_slot_nr : 6,
00027                 type : 2;
00028         uint8_t end_slot_nr : 6,
00029                 spare1 : 1, spare2: 1;
00030         uint8_t cbsms_msg_map[6];
00031         uint8_t data[0];
00032 } __attribute__((packed));
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines