At this point we are successfully able to build. Additionally, we can run the scenario, however, it does not pass. It seems that the gNB is not connecting to the proxy correctly. Just wanted to push the progress so far. FYI, the items that had to be changed to correct the linking issues were the following: - mac_rrc_data_ind_ue vs. nr_mac_rrc_data_ind_ue - rrc_data_req vs. nr_rrc_data_req - mac_rrc_data_req_ue vs. nr_mac_rrc_data_req_ue - rrc_data_req_ue vs. rrc_data_req_nr_ue - rrc_data_req vs. nr_rrc_data_req The listed functions should be declard in the LTE/NR UE directory depending on the functionality. Several were mixed. i.e.: LTE functions being called in NR UE. Also, removing siWindowLength, siWindowLength_int, SIBType, SIBPeriod, and siPeriod_int from the NR UE RRC. These variable were not used in the NR UE and are defined for LTE only. Lastly, in the NR_IF_Module.c of the NR UE, the global variable def_dci_pdu_rel15 is not accessible. Need to revisit this. For not it is commented out.
39 lines
994 B
C
39 lines
994 B
C
#ifndef _UTILS_H
|
|
#define _UTILS_H
|
|
|
|
#include <stdint.h>
|
|
#include <sys/types.h>
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define sizeofArray(a) (sizeof(a)/sizeof(*(a)))
|
|
void *calloc_or_fail(size_t size);
|
|
void *malloc_or_fail(size_t size);
|
|
const char *hexdump(const void *data, size_t data_len, char *out, size_t out_len);
|
|
|
|
// Converts an hexadecimal ASCII coded digit into its value. **
|
|
int hex_char_to_hex_value (char c);
|
|
// Converts an hexadecimal ASCII coded string into its value.**
|
|
int hex_string_to_hex_value (uint8_t *hex_value, const char *hex_string, int size);
|
|
|
|
void *memcpy1(void *dst,const void *src,size_t n);
|
|
|
|
|
|
char *itoa(int i);
|
|
|
|
#define findInList(keY, result, list, element_type) {\
|
|
int i;\
|
|
for (i=0; i<sizeof(list)/sizeof(element_type) ; i++)\
|
|
if (list[i].key==keY) {\
|
|
result=list[i].val;\
|
|
break;\
|
|
}\
|
|
AssertFatal(i < sizeof(list)/sizeof(element_type), "List %s doesn't contain %s\n",#list, #keY); \
|
|
}
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|