blob: c30ba0c98ec2649cb6f03a7124d5fe34dbefac19 [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
Oliver Smith0b5c09b2023-02-17 10:35:38 +010015/* auto-generated from the little endian part above (libosmocore/contrib/struct_endianness.py) */
Pau Espin Pedrol28c43882021-12-22 13:56:42 +010016 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));