rrc_messages_types.h 2.93 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
/*
 * rrc_messages_types.h
 *
 *  Created on: Oct 24, 2013
 *      Author: winckel
 */

#ifndef RRC_MESSAGES_TYPES_H_
#define RRC_MESSAGES_TYPES_H_

winckel's avatar
RRC:    
winckel committed
11
#include "as_message.h"
winckel's avatar
winckel committed
12
#include "rrc_types.h"
winckel's avatar
RRC:    
winckel committed
13
14
15

//-------------------------------------------------------------------------------------------//
// Messages for RRC logging
16
#if defined(DISABLE_ITTI_XER_PRINT)
17
18
19
#include "BCCH-DL-SCH-Message.h"
#include "DL-CCCH-Message.h"
#include "DL-DCCH-Message.h"
20
#include "UE-EUTRA-Capability.h"
21
22
#include "UL-CCCH-Message.h"
#include "UL-DCCH-Message.h"
23

24
25
26
27
28
29
typedef BCCH_DL_SCH_Message_t   RrcDlBcchMessage;
typedef DL_CCCH_Message_t       RrcDlCcchMessage;
typedef DL_DCCH_Message_t       RrcDlDcchMessage;
typedef UE_EUTRA_Capability_t   RrcUeEutraCapability;
typedef UL_CCCH_Message_t       RrcUlCcchMessage;
typedef UL_DCCH_Message_t       RrcUlDcchMessage;
30
#endif
31
32

//-------------------------------------------------------------------------------------------//
winckel's avatar
RRC:    
winckel committed
33
// Defines to access message fields.
winckel's avatar
winckel committed
34
35
#define RRC_STATE_IND(mSGpTR)           (mSGpTR)->ittiMsg.rrc_state_ind

winckel's avatar
winckel committed
36
#define RRC_CONFIGURATION_REQ(mSGpTR)   (mSGpTR)->ittiMsg.rrc_configuration_req
winckel's avatar
winckel committed
37

winckel's avatar
winckel committed
38
39
40
#define NAS_CELL_SELECTION_REQ(mSGpTR)  (mSGpTR)->ittiMsg.nas_cell_selection_req
#define NAS_CONN_ESTABLI_REQ(mSGpTR)    (mSGpTR)->ittiMsg.nas_conn_establi_req
#define NAS_UPLINK_DATA_REQ(mSGpTR)     (mSGpTR)->ittiMsg.nas_ul_data_req
41

winckel's avatar
winckel committed
42
43
44
45
46
47
48
49
50
#define NAS_RAB_ESTABLI_RSP(mSGpTR)     (mSGpTR)->ittiMsg.nas_rab_est_rsp

#define NAS_CELL_SELECTION_CNF(mSGpTR)  (mSGpTR)->ittiMsg.nas_cell_selection_cnf
#define NAS_CELL_SELECTION_IND(mSGpTR)  (mSGpTR)->ittiMsg.nas_cell_selection_ind
#define NAS_PAGING_IND(mSGpTR)          (mSGpTR)->ittiMsg.nas_paging_ind
#define NAS_CONN_ESTABLI_CNF(mSGpTR)    (mSGpTR)->ittiMsg.nas_conn_establi_cnf
#define NAS_CONN_RELEASE_IND(mSGpTR)    (mSGpTR)->ittiMsg.nas_conn_release_ind
#define NAS_UPLINK_DATA_CNF(mSGpTR)     (mSGpTR)->ittiMsg.nas_ul_data_cnf
#define NAS_DOWNLINK_DATA_IND(mSGpTR)   (mSGpTR)->ittiMsg.nas_dl_data_ind
51
52

//-------------------------------------------------------------------------------------------//
winckel's avatar
winckel committed
53
54
55
56
57
typedef struct RrcStateInd_s{
    Rrc_State_t     state;
    Rrc_Sub_State_t sub_state;
} RrcStateInd;

winckel's avatar
winckel committed
58
59
60
61
62
63
64
65
66
67
// eNB: ENB_APP -> RRC messages
typedef struct RrcConfigurationReq_s {
    uint32_t cell_identity;

    uint16_t tac;

    uint16_t mcc;
    uint16_t mnc;
} RrcConfigurationReq;

winckel's avatar
winckel committed
68
69
70
71
72
// UE: NAS -> RRC messages
typedef cell_info_req_t         NasCellSelectionReq;
typedef nas_establish_req_t     NasConnEstabliReq;
typedef ul_info_transfer_req_t  NasUlDataReq;

73
74
typedef rab_establish_rsp_t     NasRabEstRsp;

winckel's avatar
winckel committed
75
76
77
78
79
80
81
82
// UE: RRC -> NAS messages
typedef cell_info_cnf_t         NasCellSelectionCnf;
typedef cell_info_ind_t         NasCellSelectionInd;
typedef paging_ind_t            NasPagingInd;
typedef nas_establish_cnf_t     NasConnEstabCnf;
typedef nas_release_ind_t       NasConnReleaseInd;
typedef ul_info_transfer_cnf_t  NasUlDataCnf;
typedef dl_info_transfer_ind_t  NasDlDataInd;
83
84

#endif /* RRC_MESSAGES_TYPES_H_ */