blob: 616e436a7397360789a8724f257d75eb803d11b7 [file] [log] [blame]
Philipp Maierca770ae2021-02-16 17:31:22 +01001#pragma once
2
Vadim Yanitskiy36c69ed2021-10-29 20:26:08 +03003#include <osmocom/core/endian.h>
4
Philipp Maierca770ae2021-02-16 17:31:22 +01005/* TS 44.004 Section 7.1 */
6
7struct gsm_sacch_l1_hdr {
Pau Espin Pedrol28c43882021-12-22 13:56:42 +01008#if OSMO_IS_LITTLE_ENDIAN
Philipp Maierca770ae2021-02-16 17:31:22 +01009 uint8_t ms_pwr:5,
10 fpc_epc:1,
11 srr_sro:1,
12 reserved:1;
13 uint8_t ta;
Pau Espin Pedrol28c43882021-12-22 13:56:42 +010014#elif OSMO_IS_BIG_ENDIAN
15/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianess.py) */
16 uint8_t reserved:1, srr_sro:1, fpc_epc:1, ms_pwr:5;
17 uint8_t ta;
Philipp Maierca770ae2021-02-16 17:31:22 +010018#endif
19} __attribute__ ((packed));