diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-01-12 15:01:59 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-02-16 19:02:30 +0100 |
commit | b2d0604cf51f51c62fc306f3703bdb9140e9fa46 (patch) | |
tree | 3ff5b9bc132c822feefe4c18dfdfb3b752c3c458 | |
parent | gsm: [ABI BREAK] Support CellId SAI, change CellId CGI-PS id number (diff) | |
download | libosmocore-pespin/dlci.tar.xz libosmocore-pespin/dlci.zip |
Introduce enum gsm0808_dlci_ccpespin/dlci
Change-Id: I92ad2826d3debe05dfaa6b572a90fa27467d7941
-rw-r--r-- | include/osmocom/gsm/protocol/gsm_08_08.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/osmocom/gsm/protocol/gsm_08_08.h b/include/osmocom/gsm/protocol/gsm_08_08.h index 2162c2a0..268064fc 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, |