From b2d0604cf51f51c62fc306f3703bdb9140e9fa46 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Wed, 12 Jan 2022 15:01:59 +0100 Subject: [PATCH] Introduce enum gsm0808_dlci_cc Change-Id: I92ad2826d3debe05dfaa6b572a90fa27467d7941 --- include/osmocom/gsm/protocol/gsm_08_08.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/osmocom/gsm/protocol/gsm_08_08.h b/include/osmocom/gsm/protocol/gsm_08_08.h index 2162c2a06..268064fca 100644 --- a/include/osmocom/gsm/protocol/gsm_08_08.h +++ b/include/osmocom/gsm/protocol/gsm_08_08.h @@ -52,7 +52,7 @@ struct dtap_header { #if OSMO_IS_LITTLE_ENDIAN uint8_t dlci_sapi:3, /* enum gsm0406_dlci_sapi */ dlci_spare:3, - dlci_cc:2; + dlci_cc:2; /* enum gsm0808_dlci_cc */ #elif OSMO_IS_BIG_ENDIAN /* auto-generated from the little endian part above (libosmocore/contrib/struct_endianess.py) */ uint8_t dlci_cc:2, dlci_spare:3, dlci_sapi:3; @@ -62,6 +62,13 @@ struct dtap_header { uint8_t length; } __attribute__((packed)); +/* 3GPP TS 48.006 9.3.2 "Transfer of DTAP messages", C2C1 bits */ +enum gsm0808_dlci_cc { + DLCI_CC_UNSPEC = 0, + DLCI_CC_FACCH_SDCCH = 2, + DLCI_CC_SACCH = 3, +}; + /* Data Link Control SAPI, GSM 08.06 § 6.3.2, GSM 04.06 § 3.3.3 */ enum gsm0406_dlci_sapi { DLCI_SAPI_RR_MM_CC = 0x0,