rrc_messages_types.h 3.08 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"
13
#include "s1ap_messages_types.h"
winckel's avatar
RRC:    
winckel committed
14
15
16

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

25
26
27
28
29
30
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;
31
#endif
32
33

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

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

winckel's avatar
winckel committed
39
40
41
#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
42

winckel's avatar
winckel committed
43
44
45
46
47
48
49
50
51
#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
52
53

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

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

63
    uint16_t            tac;
winckel's avatar
winckel committed
64

65
66
67
68
69
70
    uint16_t            mcc;
    uint16_t            mnc;

    paging_drx_t        default_drx;

    lte_frame_type_t    frame_type;
winckel's avatar
winckel committed
71
72
} RrcConfigurationReq;

winckel's avatar
winckel committed
73
74
75
76
77
// UE: NAS -> RRC messages
typedef cell_info_req_t         NasCellSelectionReq;
typedef nas_establish_req_t     NasConnEstabliReq;
typedef ul_info_transfer_req_t  NasUlDataReq;

78
79
typedef rab_establish_rsp_t     NasRabEstRsp;

winckel's avatar
winckel committed
80
81
82
83
84
85
86
87
// 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;
88
89

#endif /* RRC_MESSAGES_TYPES_H_ */