From e1f16da4662efdb23edeb603cf4422cded945970 Mon Sep 17 00:00:00 2001
From: winckel <winckel@eurecom.fr>
Date: Fri, 25 Oct 2013 13:23:56 +0000
Subject: [PATCH] Added ITTI messages definition for some RRC signals.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4282 818b1a75-f10b-46b9-bf7c-635c3b92a50f
---
openair2/COMMON/messages_def.h | 1 +
openair2/COMMON/messages_types.h | 1 +
openair2/COMMON/rrc_messages_def.h | 21 +++++++++
openair2/COMMON/rrc_messages_types.h | 69 ++++++++++++++++++++++++++++
4 files changed, 92 insertions(+)
create mode 100644 openair2/COMMON/rrc_messages_def.h
create mode 100644 openair2/COMMON/rrc_messages_types.h
diff --git a/openair2/COMMON/messages_def.h b/openair2/COMMON/messages_def.h
index 9c9bc2456c..a3871916fc 100644
--- a/openair2/COMMON/messages_def.h
+++ b/openair2/COMMON/messages_def.h
@@ -3,3 +3,4 @@
#include "timer_messages_def.h"
// Messages files used between tasks
+#include "rrc_messages_def.h"
diff --git a/openair2/COMMON/messages_types.h b/openair2/COMMON/messages_types.h
index 04f4b1a1ae..102915f253 100644
--- a/openair2/COMMON/messages_types.h
+++ b/openair2/COMMON/messages_types.h
@@ -10,5 +10,6 @@
#include "timer_messages_types.h"
+#include "rrc_messages_types.h"
#endif /* MESSAGES_TYPES_H_ */
diff --git a/openair2/COMMON/rrc_messages_def.h b/openair2/COMMON/rrc_messages_def.h
new file mode 100644
index 0000000000..b48bc3c927
--- /dev/null
+++ b/openair2/COMMON/rrc_messages_def.h
@@ -0,0 +1,21 @@
+/*
+ * rrc_messages_def.h
+ *
+ * Created on: Oct 24, 2013
+ * Author: winckel
+ */
+
+MESSAGE_DEF(RRC_UE_EUTRA_CAPABILITY, MESSAGE_PRIORITY_MED_PLUS, RrcUeEutraCapability, rrc_ue_eutra_capability)
+
+//-------------------------------------------------------------------------------------------//
+// Messages from MAC layer
+MESSAGE_DEF(RRC_MAC_SYNC_IND, MESSAGE_PRIORITY_MED_PLUS, RrcMacSyncInd, rrc_mac_sync_ind)
+MESSAGE_DEF(RRC_MAC_IN_SYNC_IND, MESSAGE_PRIORITY_MED_PLUS, RrcMacInSyncInd, rrc_mac_in_sync_ind)
+MESSAGE_DEF(RRC_MAC_OUT_OF_SYNC_IND, MESSAGE_PRIORITY_MED_PLUS, RrcMacOutOfSyncInd, rrc_mac_out_of_sync_ind)
+MESSAGE_DEF(RRC_MAC_BCCH_DATA_IND, MESSAGE_PRIORITY_MED_PLUS, RrcMacBcchDataInd, rrc_mac_bcch_data_ind)
+MESSAGE_DEF(RRC_MAC_CCCH_DATA_IND, MESSAGE_PRIORITY_MED_PLUS, RrcMacCcchDataInd, rrc_mac_ccch_data_ind)
+MESSAGE_DEF(RRC_MAC_MCCH_DATA_IND, MESSAGE_PRIORITY_MED_PLUS, RrcMacMcchDataInd, rrc_mac_mcch_data_ind)
+
+//-------------------------------------------------------------------------------------------//
+// Messages from PDCP layer
+MESSAGE_DEF(RRC_DCCH_DATA_IND, MESSAGE_PRIORITY_MED_PLUS, RrcDcchDataInd, rrc_dcch_data_ind)
diff --git a/openair2/COMMON/rrc_messages_types.h b/openair2/COMMON/rrc_messages_types.h
new file mode 100644
index 0000000000..528d97f37f
--- /dev/null
+++ b/openair2/COMMON/rrc_messages_types.h
@@ -0,0 +1,69 @@
+/*
+ * rrc_messages_types.h
+ *
+ * Created on: Oct 24, 2013
+ * Author: winckel
+ */
+
+#ifndef RRC_MESSAGES_TYPES_H_
+#define RRC_MESSAGES_TYPES_H_
+
+#include "UE-EUTRA-Capability.h"
+
+//-------------------------------------------------------------------------------------------//
+// Defines to access message fields.
+
+#define RRC_MAC_SYNC_IND(mSGpTR) (mSGpTR)->msg.rrc_mac_sync_ind
+#define RRC_MAC_IN_SYNC_IND(mSGpTR) (mSGpTR)->msg.rrc_mac_in_sync_ind
+#define RRC_MAC_OUT_OF_SYNC_IND(mSGpTR) (mSGpTR)->msg.rrc_mac_out_of_sync_ind
+#define RRC_MAC_BCCH_DATA_IND(mSGpTR) (mSGpTR)->msg.rrc_mac_bcch_data_ind
+#define RRC_MAC_CCCH_DATA_IND(mSGpTR) (mSGpTR)->msg.rrc_mac_ccch_data_ind
+#define RRC_MAC_MCCH_DATA_IND(mSGpTR) (mSGpTR)->msg.rrc_mac_mcch_data_ind
+
+#define RRC_DCCH_DATA_IND(mSGpTR) (mSGpTR)->msg.rrc_dcch_data_ind
+
+typedef UE_EUTRA_Capability_t RrcUeEutraCapability;
+
+//-------------------------------------------------------------------------------------------//
+// Messages from MAC layer
+
+typedef struct {
+ uint8_t status;
+} RrcMacSyncInd;
+
+typedef struct {
+ uint32_t frame;
+ uint16_t enb_index;
+} RrcMacInSyncInd;
+
+typedef RrcMacInSyncInd RrcMacOutOfSyncInd;
+
+typedef struct {
+ uint32_t frame;
+ uint32_t sdu_size;
+ uint8_t *sdu_p;
+ uint8_t enb_index;
+} RrcMacBcchDataInd;
+
+typedef RrcMacBcchDataInd RrcMacCcchDataInd;
+
+typedef struct {
+ uint32_t frame;
+ uint32_t sdu_size;
+ uint8_t *sdu_p;
+ uint8_t ue_index;
+ uint8_t mbsfn_sync_area;
+} RrcMacMcchDataInd;
+
+//-------------------------------------------------------------------------------------------//
+// Messages from PDCP layer
+
+typedef struct {
+ uint32_t frame;
+ uint8_t dcch_index;
+ uint32_t sdu_size;
+ uint8_t *sdu_p;
+ uint8_t ue_index;
+} RrcDcchDataInd;
+
+#endif /* RRC_MESSAGES_TYPES_H_ */
--
2.26.2