From 7d0320f267d82e14c5c3e4788cfe4ec080b00760 Mon Sep 17 00:00:00 2001 From: winckel <winckel@eurecom.fr> Date: Thu, 2 Jan 2014 12:20:44 +0000 Subject: [PATCH] Created a RRC_STATE_IND message. git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4814 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- openair2/COMMON/rrc_messages_def.h | 2 ++ openair2/COMMON/rrc_messages_types.h | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/openair2/COMMON/rrc_messages_def.h b/openair2/COMMON/rrc_messages_def.h index 0ab7dcde59..fa63dccd31 100644 --- a/openair2/COMMON/rrc_messages_def.h +++ b/openair2/COMMON/rrc_messages_def.h @@ -18,6 +18,8 @@ MESSAGE_DEF(RRC_UL_CCCH_MESSAGE, MESSAGE_PRIORITY_MED_PLUS, RrcUlCcchMes MESSAGE_DEF(RRC_UL_DCCH_MESSAGE, MESSAGE_PRIORITY_MED_PLUS, RrcUlDcchMessage, rrc_ul_dcch_message) #endif +MESSAGE_DEF(RRC_STATE_IND, MESSAGE_PRIORITY_MED, RrcStateInd, rrc_state_ind) + //-------------------------------------------------------------------------------------------// // eNB: ENB_APP -> RRC messages MESSAGE_DEF(RRC_CONFIGURATION_REQ, MESSAGE_PRIORITY_MED, RrcConfigurationReq, rrc_configuration_req) diff --git a/openair2/COMMON/rrc_messages_types.h b/openair2/COMMON/rrc_messages_types.h index 6ffb391c2a..81083c0cb6 100644 --- a/openair2/COMMON/rrc_messages_types.h +++ b/openair2/COMMON/rrc_messages_types.h @@ -9,6 +9,7 @@ #define RRC_MESSAGES_TYPES_H_ #include "as_message.h" +#include "rrc_types.h" //-------------------------------------------------------------------------------------------// // Messages for RRC logging @@ -30,6 +31,8 @@ typedef UL_DCCH_Message_t RrcUlDcchMessage; //-------------------------------------------------------------------------------------------// // Defines to access message fields. +#define RRC_STATE_IND(mSGpTR) (mSGpTR)->ittiMsg.rrc_state_ind + #define RRC_CONFIGURATION_REQ(mSGpTR) (mSGpTR)->ittiMsg.rrc_configuration_req #define NAS_CELL_SELECTION_REQ(mSGpTR) (mSGpTR)->ittiMsg.nas_cell_selection_req @@ -47,6 +50,11 @@ typedef UL_DCCH_Message_t RrcUlDcchMessage; #define NAS_DOWNLINK_DATA_IND(mSGpTR) (mSGpTR)->ittiMsg.nas_dl_data_ind //-------------------------------------------------------------------------------------------// +typedef struct RrcStateInd_s{ + Rrc_State_t state; + Rrc_Sub_State_t sub_state; +} RrcStateInd; + // eNB: ENB_APP -> RRC messages typedef struct RrcConfigurationReq_s { uint32_t cell_identity; -- GitLab