rrc_messages_types.h 2.29 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/*
 * 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.

16 17
#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
18 19

#define RRC_MAC_BCCH_DATA_REQ(mSGpTR)           (mSGpTR)->msg.rrc_mac_bcch_data_req
20 21 22 23
#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_CCCH_SUCCESS_IND(mSGpTR)        (mSGpTR)->msg.rrc_mac_ccch_success_ind
#define RRC_MAC_MCCH_DATA_IND(mSGpTR)           (mSGpTR)->msg.rrc_mac_mcch_data_ind
24

25 26
#define RRC_DCCH_DATA_REQ(mSGpTR)               (mSGpTR)->msg.rrc_dcch_data_req
#define RRC_DCCH_DATA_IND(mSGpTR)               (mSGpTR)->msg.rrc_dcch_data_ind
27 28 29 30 31 32 33 34 35 36 37 38 39

typedef UE_EUTRA_Capability_t RrcUeEutraCapability;

//-------------------------------------------------------------------------------------------//
// Messages from MAC layer

typedef struct {
  uint32_t frame;
  uint16_t enb_index;
} RrcMacInSyncInd;

typedef RrcMacInSyncInd RrcMacOutOfSyncInd;

40 41 42 43 44 45 46
typedef struct {
  uint32_t frame;
  uint32_t sdu_size;
  uint8_t *sdu_p;
  uint8_t enb_index;
} RrcMacBcchDataReq;

47 48 49 50 51 52 53 54 55
typedef struct {
  uint32_t frame;
  uint32_t sdu_size;
  uint8_t *sdu_p;
  uint8_t enb_index;
} RrcMacBcchDataInd;

typedef RrcMacBcchDataInd RrcMacCcchDataInd;

56 57 58 59
typedef struct {
  uint8_t enb_index;
} RrcMacCcchSuccessInd;

60 61 62 63
typedef struct {
  uint32_t frame;
  uint32_t sdu_size;
  uint8_t *sdu_p;
64
  uint8_t enb_index;
65 66 67 68
  uint8_t mbsfn_sync_area;
} RrcMacMcchDataInd;

//-------------------------------------------------------------------------------------------//
69 70 71 72 73 74 75 76 77 78 79 80
// Messages from/to PDCP layer

typedef struct {
  uint32_t frame;
  uint8_t enb_flag;
  uint32_t rb_id;
  uint32_t muip;
  uint32_t confirmp;
  uint32_t sdu_size;
  uint8_t *sdu_p;
  uint8_t mode;
} RrcDcchDataReq;
81 82 83 84 85 86 87 88 89 90

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_ */