Commit 9c1cce0d authored by winckel's avatar winckel

Added a PHY configuration signal.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4997 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent e2995204
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
*/ */
//-------------------------------------------------------------------------------------------// //-------------------------------------------------------------------------------------------//
// eNB: ENB_APP -> PHY messages
MESSAGE_DEF(PHY_CONFIGURATION_REQ, MESSAGE_PRIORITY_MED_PLUS, PhyConfigurationReq, phy_configuration_req)
// UE: RRC -> PHY messages // UE: RRC -> PHY messages
MESSAGE_DEF(PHY_DEACTIVATE_REQ, MESSAGE_PRIORITY_MED_PLUS, PhyDeactivateReq, phy_deactivate_req) MESSAGE_DEF(PHY_DEACTIVATE_REQ, MESSAGE_PRIORITY_MED_PLUS, PhyDeactivateReq, phy_deactivate_req)
......
...@@ -8,9 +8,12 @@ ...@@ -8,9 +8,12 @@
#ifndef PHY_MESSAGES_TYPES_H_ #ifndef PHY_MESSAGES_TYPES_H_
#define PHY_MESSAGES_TYPES_H_ #define PHY_MESSAGES_TYPES_H_
#include "PHY/impl_defs_lte.h"
#include "ral_messages_types.h" #include "ral_messages_types.h"
//-------------------------------------------------------------------------------------------// //-------------------------------------------------------------------------------------------//
// Defines to access message fields. // Defines to access message fields.
#define PHY_CONFIGURATION_REQ(mSGpTR) (mSGpTR)->ittiMsg.phy_configuration_req
#define PHY_DEACTIVATE_REQ(mSGpTR) (mSGpTR)->ittiMsg.phy_deactivate_req #define PHY_DEACTIVATE_REQ(mSGpTR) (mSGpTR)->ittiMsg.phy_deactivate_req
#define PHY_FIND_CELL_REQ(mSGpTR) (mSGpTR)->ittiMsg.phy_find_cell_req #define PHY_FIND_CELL_REQ(mSGpTR) (mSGpTR)->ittiMsg.phy_find_cell_req
...@@ -44,45 +47,52 @@ typedef struct CellInfo_s { ...@@ -44,45 +47,52 @@ typedef struct CellInfo_s {
} CellInfo; } CellInfo;
//-------------------------------------------------------------------------------------------// //-------------------------------------------------------------------------------------------//
// eNB: ENB_APP -> PHY messages
typedef struct PhyConfigurationReq_s {
lte_frame_type_t frame_type;
lte_prefix_type_t prefix_type;
uint32_t downlink_frequency;
int32_t uplink_frequency_offset;
} PhyConfigurationReq;
// UE: RRC -> PHY messages // UE: RRC -> PHY messages
typedef struct PhyDeactivateReq_s { typedef struct PhyDeactivateReq_s {
} PhyDeactivateReq; } PhyDeactivateReq;
typedef struct PhyFindCellReq_s { typedef struct PhyFindCellReq_s {
//# if defined(ENABLE_RAL) //# if defined(ENABLE_RAL)
ral_transaction_id_t transaction_id; ral_transaction_id_t transaction_id;
//# endif //# endif
Earfcn earfcn_start; Earfcn earfcn_start;
Earfcn earfcn_end; Earfcn earfcn_end;
} PhyFindCellReq; } PhyFindCellReq;
typedef struct PhyFindNextCellReq_s { typedef struct PhyFindNextCellReq_s {
} PhyFindNextCellReq; } PhyFindNextCellReq;
typedef struct PhyMeasThresholdReq_s { typedef struct PhyMeasThresholdReq_s {
ral_transaction_id_t transaction_id; ral_transaction_id_t transaction_id;
ral_link_cfg_param_t cfg_param; ral_link_cfg_param_t cfg_param;
} PhyMeasThresholdReq; } PhyMeasThresholdReq;
typedef struct PhyMeasReportInd_s { typedef struct PhyMeasReportInd_s {
ral_threshold_t threshold; ral_threshold_t threshold;
ral_link_param_t link_param; ral_link_param_t link_param;
} PhyMeasReportInd; } PhyMeasReportInd;
// UE: PHY -> RRC messages // UE: PHY -> RRC messages
typedef struct PhyFindCellInd_s { typedef struct PhyFindCellInd_s {
//# if defined(ENABLE_RAL) //# if defined(ENABLE_RAL)
ral_transaction_id_t transaction_id; ral_transaction_id_t transaction_id;
//# endif //# endif
uint8_t cell_nb; uint8_t cell_nb;
CellInfo cells[MAX_REPORTED_CELL]; CellInfo cells[MAX_REPORTED_CELL];
} PhyFindCellInd; } PhyFindCellInd;
typedef struct PhyMeasThresholdConf_s { typedef struct PhyMeasThresholdConf_s {
ral_transaction_id_t transaction_id; ral_transaction_id_t transaction_id;
ral_status_t status; ral_status_t status;
uint8_t num_link_cfg_params; uint8_t num_link_cfg_params;
ral_link_cfg_status_t cfg_status[RAL_MAX_LINK_CFG_PARAMS]; ral_link_cfg_status_t cfg_status[RAL_MAX_LINK_CFG_PARAMS];
}PhyMeasThresholdConf; }PhyMeasThresholdConf;
#endif /* PHY_MESSAGES_TYPES_H_ */ #endif /* PHY_MESSAGES_TYPES_H_ */
...@@ -40,6 +40,7 @@ ENABLE_ITTI = 1 ...@@ -40,6 +40,7 @@ ENABLE_ITTI = 1
COMMON_CFLAGS += -DENABLE_ITTI COMMON_CFLAGS += -DENABLE_ITTI
COMMON_CFLAGS += -DUSER_MODE COMMON_CFLAGS += -DUSER_MODE
COMMON_CFLAGS += -DLOG_NO_THREAD COMMON_CFLAGS += -DLOG_NO_THREAD
COMMON_CFLAGS += -I$(OPENAIR1_DIR)
COMMON_CFLAGS += -I$(OPENAIR2_DIR)/NAS COMMON_CFLAGS += -I$(OPENAIR2_DIR)/NAS
COMMON_CFLAGS += $(L2_incl) COMMON_CFLAGS += $(L2_incl)
COMMON_CFLAGS += $(UTILS_incl) COMMON_CFLAGS += $(UTILS_incl)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment