pdcp_messages_types.h 2.13 KB
Newer Older
1
2
3
4
5
/*
 * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The OpenAirInterface Software Alliance licenses this file to You under
Cédric Roux's avatar
Cédric Roux committed
6
 * the OAI Public License, Version 1.1  (the "License"); you may not use this file
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 * except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.openairinterface.org/?page_id=698
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *-------------------------------------------------------------------------------
 * For more information about the OpenAirInterface (OAI) Software Alliance:
 *      contact@openairinterface.org
 */

winckel's avatar
RRC:  
winckel committed
22
23
24
25
/*
 * pdcp_messages_types.h
 *
 *  Created on: Oct 24, 2013
nikaeinn's avatar
nikaeinn committed
26
 *      Author: winckel and Navid Nikaein
winckel's avatar
RRC:  
winckel committed
27
28
29
30
31
32
33
 */

#ifndef PDCP_MESSAGES_TYPES_H_
#define PDCP_MESSAGES_TYPES_H_

//-------------------------------------------------------------------------------------------//
// Defines to access message fields.
34
35
#define RRC_DCCH_DATA_REQ(mSGpTR)               (mSGpTR)->ittiMsg.rrc_dcch_data_req
#define RRC_DCCH_DATA_IND(mSGpTR)               (mSGpTR)->ittiMsg.rrc_dcch_data_ind
winckel's avatar
RRC:  
winckel committed
36
37
38

//-------------------------------------------------------------------------------------------//
// Messages between RRC and PDCP layers
winckel's avatar
winckel committed
39
typedef struct RrcDcchDataReq_s {
winckel's avatar
RRC:  
winckel committed
40
41
42
43
44
45
46
47
  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;
48
49
  uint16_t     rnti;
  uint8_t      module_id;
50
  uint8_t eNB_index;
winckel's avatar
RRC:  
winckel committed
51
52
} RrcDcchDataReq;

winckel's avatar
winckel committed
53
typedef struct RrcDcchDataInd_s {
winckel's avatar
RRC:  
winckel committed
54
55
56
57
  uint32_t frame;
  uint8_t dcch_index;
  uint32_t sdu_size;
  uint8_t *sdu_p;
58
59
60
  uint16_t     rnti;
  uint8_t      module_id;
  uint8_t      eNB_index; // LG: needed in UE
winckel's avatar
RRC:  
winckel committed
61
62
63
} RrcDcchDataInd;

#endif /* PDCP_MESSAGES_TYPES_H_ */