aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/gsm/protocol/gsm_44_004.h
blob: c30ba0c98ec2649cb6f03a7124d5fe34dbefac19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <osmocom/core/endian.h>

/* TS 44.004 Section 7.1 */

struct gsm_sacch_l1_hdr {
#if OSMO_IS_LITTLE_ENDIAN
		uint8_t	ms_pwr:5,
			fpc_epc:1,
			srr_sro:1,
			reserved:1;
		uint8_t ta;
#elif OSMO_IS_BIG_ENDIAN
/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
		uint8_t	reserved:1, srr_sro:1, fpc_epc:1, ms_pwr:5;
		uint8_t ta;
#endif
} __attribute__ ((packed));