1 /*******************************************************************************
2 ################################################################################
3 # Copyright (c) [2017-2019] [Radisys] #
5 # Licensed under the Apache License, Version 2.0 (the "License"); #
6 # you may not use this file except in compliance with the License. #
7 # You may obtain a copy of the License at #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
11 # Unless required by applicable law or agreed to in writing, software #
12 # distributed under the License is distributed on an "AS IS" BASIS, #
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
14 # See the License for the specific language governing permissions and #
15 # limitations under the License. #
16 ################################################################################
17 *******************************************************************************/
19 #define MAX_SLOT_VALUE 9
20 #define MAX_SFN_VALUE 1023
24 uint16_t sfnValue = 0;
25 uint16_t slotValue = 0;
26 bool rachIndSent = false;
27 bool msg3Sent = false;
28 bool msg5ShortBsrSent = false;
29 bool msg5Sent = false;
30 bool dlDedMsg = false;
31 bool msgSecurityModeComp = false;
38 MSG_TYPE_SECURITY_MODE_COMPLETE,
39 MSG_TYPE_RRC_RECONFIG_COMPLETE,
40 MSG_TYPE_REGISTRATION_COMPLETE
43 void phyToMac ARGS((uint16_t msgType, uint32_t msgLen,void *msg));
45 void fillTlvs ARGS((fapi_uint16_tlv_t *tlv, uint16_t tag, uint16_t
46 length, uint16_t value, uint32_t *msgLen));
47 void fillMsgHeader ARGS((fapi_msg_t *hdr, uint16_t msgType, uint16_t msgLen));
49 void procPhyMessages(uint16_t msgType, uint32_t msgSize, void *msg);
51 /**********************************************************************
53 **********************************************************************/