Created some phy messages.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4694 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "timer_messages_def.h"
|
||||
|
||||
// Messages files used between tasks
|
||||
#include "phy_messages_def.h"
|
||||
#include "mac_messages_def.h"
|
||||
#include "pdcp_messages_def.h"
|
||||
#include "rrc_messages_def.h"
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
#include "timer_messages_types.h"
|
||||
|
||||
#include "phy_messages_types.h"
|
||||
#include "mac_messages_types.h"
|
||||
#include "pdcp_messages_types.h"
|
||||
#include "rrc_messages_types.h"
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* mphy_messages_def.h
|
||||
*
|
||||
* Created on: Dec 12, 2013
|
||||
* Author: winckel
|
||||
*/
|
||||
|
||||
//-------------------------------------------------------------------------------------------//
|
||||
// UE: RRC -> PHY messages
|
||||
MESSAGE_DEF(PHY_DEACTIVATE_REQ, MESSAGE_PRIORITY_MED_PLUS, PhyDeactivateReq, phy_deactivate_req)
|
||||
|
||||
MESSAGE_DEF(PHY_FIND_CELL_REQ, MESSAGE_PRIORITY_MED_PLUS, PhyFindCellReq, phy_find_cell_req)
|
||||
MESSAGE_DEF(PHY_FIND_NEXT_CELL_REQ, MESSAGE_PRIORITY_MED_PLUS, PhyFindNextCellReq, phy_find_next_cell_req)
|
||||
|
||||
// UE: PHY -> RRC messages
|
||||
MESSAGE_DEF(PHY_FIND_CELL_IND, MESSAGE_PRIORITY_MED_PLUS, PhyFindCellInd, phy_find_cell_ind)
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* phy_messages_types.h
|
||||
*
|
||||
* Created on: Dec 12, 2013
|
||||
* Author: winckel
|
||||
*/
|
||||
|
||||
#ifndef PHY_MESSAGES_TYPES_H_
|
||||
#define PHY_MESSAGES_TYPES_H_
|
||||
|
||||
//-------------------------------------------------------------------------------------------//
|
||||
// Defines to access message fields.
|
||||
#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_NEXT_CELL_REQ(mSGpTR) (mSGpTR)->ittiMsg.phy_find_next_cell_req
|
||||
|
||||
#define PHY_FIND_CELL_IND(mSGpTR) (mSGpTR)->ittiMsg.phy_find_cell_ind
|
||||
|
||||
//-------------------------------------------------------------------------------------------//
|
||||
#define MAX_REPORTED_CELL 10
|
||||
|
||||
/* Enhance absolute radio frequency channel number */
|
||||
typedef uint16_t Earfcn;
|
||||
|
||||
/* Physical cell identity, valid value are from 0 to 503 */
|
||||
typedef int16_t PhyCellId;
|
||||
|
||||
/* Reference signal received power, valid value are from 0 (rsrp < -140 dBm) to 97 (rsrp <= -44 dBm) */
|
||||
typedef int8_t Rsrp;
|
||||
|
||||
/* Reference signal received quality, valid value are from 0 (rsrq < -19.50 dB) to 34 (rsrq <= -3 dB) */
|
||||
typedef int8_t Rsrq;
|
||||
|
||||
typedef struct CellInfo_s {
|
||||
Earfcn earfcn;
|
||||
PhyCellId cell_id;
|
||||
Rsrp rsrp;
|
||||
Rsrq rsrq;
|
||||
} CellInfo;
|
||||
|
||||
//-------------------------------------------------------------------------------------------//
|
||||
// UE: RRC -> PHY messages
|
||||
typedef struct PhyDeactivateReq_s {
|
||||
} PhyDeactivateReq;
|
||||
|
||||
typedef struct PhyFindCellReq_s {
|
||||
Earfcn earfcn_start;
|
||||
Earfcn earfcn_end;
|
||||
} PhyFindCellReq;
|
||||
|
||||
typedef struct PhyFindNextCellReq_s {
|
||||
} PhyFindNextCellReq;
|
||||
|
||||
// UE: PHY -> RRC messages
|
||||
typedef struct PhyFindCellInd_s {
|
||||
uint8_t cell_nb;
|
||||
CellInfo cells[MAX_REPORTED_CELL];
|
||||
} PhyFindCellInd;
|
||||
#endif /* PHY_MESSAGES_TYPES_H_ */
|
||||
Reference in New Issue
Block a user