From 2f51684e635e38371d2fb3513a8bc1eb42421e4f Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 29 May 2018 19:21:03 +0200 Subject: [PATCH] gsm_08_08.h: Add enum for LCLS config, control and status Change-Id: I775aba59942fb6f34fb31b71d2f0f2ac5c3ae831 --- include/osmocom/gsm/protocol/gsm_08_08.h | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/include/osmocom/gsm/protocol/gsm_08_08.h b/include/osmocom/gsm/protocol/gsm_08_08.h index 60b968123..db5f7fa28 100644 --- a/include/osmocom/gsm/protocol/gsm_08_08.h +++ b/include/osmocom/gsm/protocol/gsm_08_08.h @@ -536,3 +536,31 @@ struct gsm0808_cell_id_list { uint16_t id_list_lac[CELL_ID_LIST_LAC_MAXLEN]; unsigned int id_list_len; }; + +/* TS 48.008 3.2.2.116 */ +enum gsm0808_lcls_config { + GSM0808_LCLS_CFG_BOTH_WAY = 0x00, + GSM0808_LCLS_CFG_BOTH_WAY_AND_BICAST_UL = 0x01, + GSM0808_LCLS_CFG_BOTH_WAY_AND_SEND_DL = 0x02, + GSM0808_LCLS_CFG_BOTH_WAY_AND_SEND_DL_BLOCK_LOCAL_DL = 0x03, + GSM0808_LCLS_CFG_BOTH_WAY_AND_BICAST_UL_SEND_DL = 0x04, + GSM0808_LCLS_CFG_BOTH_WAY_AND_BICAST_UL_SEND_DL_BLOCK_LOCAL_DL = 0x05, +}; + +/* TS 48.008 3.2.2.117 */ +enum gsm0808_lcls_control { + GSM0808_LCLS_CSC_CONNECT = 0x00, + GSM0808_LCLS_CSC_DO_NOT_CONNECT = 0x01, + GSM0808_LCLS_CSC_RELEASE_LCLS = 0x02, + GSM0808_LCLS_CSC_BICAST_UL_AT_HANDOVER = 0x03, + GSM0808_LCLS_CSC_BICAST_UL_AND_RECV_DL_AT_HANDOVER = 0x04, +}; + +/* TS 48.008 3.2.2.119 */ +enum gsm0808_lcls_status { + GSM0808_LCLS_STS_NOT_YET_LS = 0x00, + GSM0808_LCLS_STS_NOT_POSSIBLE_LS = 0x01, + GSM0808_LCLS_STS_NO_LONGER_LS = 0x02, + GSM0808_LCLS_STS_REQ_LCLS_NOT_SUPP = 0x03, + GSM0808_LCLS_STS_LOCALLY_SWITCHED = 0x04, +};