pdcp_messages_types.h 2.4 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
Cedric Roux's avatar
Cedric 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
36
#define RRC_PCCH_DATA_REQ(mSGpTR)               (mSGpTR)->ittiMsg.rrc_pcch_data_req
winckel's avatar
RRC:  
winckel committed
37 38 39

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

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

64 65 66 67 68 69 70 71 72
typedef struct RrcPcchDataReq_s {
  uint32_t     sdu_size;
  uint8_t      *sdu_p;
  uint8_t      mode;
  uint16_t     rnti;
  uint8_t      ue_index;
  uint8_t      CC_id;
} RrcPcchDataReq;

winckel's avatar
RRC:  
winckel committed
73
#endif /* PDCP_MESSAGES_TYPES_H_ */