Update structure in libosmocore for 11 bit RACH

Submitted by Bhargava Abhyankar on April 1, 2016, 1:57 p.m.

Details

Message ID 1459519048-6471-1-git-send-email-Bhargava.Abhyankar@radisys.com
State New
Series "Update structure in libosmocore for 11 bit RACH"
Headers show

Commit Message

Bhargava Abhyankar April 1, 2016, 1:57 p.m.
Parameters are added to the structure ph_rach_ind_param to
differentiate the type of RACH received from Layer 1. This is to
further support the 11 bit RACH.
---
 include/osmocom/gsm/l1sap.h | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/include/osmocom/gsm/l1sap.h b/include/osmocom/gsm/l1sap.h
index 1af8ba8..d7bd172 100644
--- a/include/osmocom/gsm/l1sap.h
+++ b/include/osmocom/gsm/l1sap.h
@@ -44,12 +44,21 @@  struct ph_rach_req_param {
 	uint16_t offset;	/*!< \brief Timing Offset */
 };
 
+/*! \brief for PH_RA_IND burstType inforamtion */
+enum ph_burst_type {
+	GSM_L1_BURST_TYPE_ACCESS_0 = 4,
+	GSM_L1_BURST_TYPE_ACCESS_1,
+	GSM_L1_BURST_TYPE_ACCESS_2
+};
+
 /*! \brief for PH-RANDOM_ACCESS.ind */
 struct ph_rach_ind_param {
 	uint8_t chan_nr;	/*!< \brief Channel Number (Like RSL) */
-	uint8_t ra;		/*!< \brief Random Access */
+	uint16_t ra;		/*!< \brief Random Access */
 	uint8_t acc_delay;	/*!< \brief Delay in bit periods */
 	uint32_t fn;		/*!< \brief GSM Frame Number at time of RA */
+	uint8_t is_11bit;	/*!< \brief no.of bits in RACH*/
+	enum ph_burst_type burst; /*!< \brief type of burst*/
 };
 
 /*! \brief for PH-[UNIT]DATA.{req,ind} | PH-RTS.ind */