RESOLVED build errors
This commit is contained in:
@@ -171,10 +171,7 @@ typedef struct {
|
||||
uint8_t prach_format;
|
||||
/// Num RA
|
||||
uint8_t num_ra;
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
uint8_t prach_slot;
|
||||
>>>>>>> fork_develop_new
|
||||
uint8_t prach_start_symbol;
|
||||
/// 38.211 (NCS 38.211 6.3.3.1).
|
||||
uint16_t num_cs;
|
||||
@@ -184,11 +181,8 @@ typedef struct {
|
||||
uint8_t restricted_set;
|
||||
/// see TS 38.211 (6.3.3.2).
|
||||
uint16_t freq_msg1;
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
// When multiple SSBs per RO is configured, this indicates which one is selected in this RO -> this is used to properly compute the PRACH preamble
|
||||
uint8_t ssb_nb_in_ro;
|
||||
>>>>>>> fork_develop_new
|
||||
// nfapi_nr_ul_beamforming_t beamforming;
|
||||
} fapi_nr_ul_config_prach_pdu;
|
||||
|
||||
|
||||
@@ -69,11 +69,7 @@ typedef enum {
|
||||
NFAPI_NR_PHY_MSG_TYPE_CRC_INDICATION= 0X86,
|
||||
NFAPI_NR_PHY_MSG_TYPE_UCI_INDICATION= 0X87,
|
||||
NFAPI_NR_PHY_MSG_TYPE_SRS_INDICATION= 0X88,
|
||||
<<<<<<< HEAD
|
||||
NFAPI_NR_PHY_MSG_TYPE_RACH_INDICATION= 0X89,
|
||||
=======
|
||||
NFAPI_NR_PHY_MSG_TYPE_RACH_INDICATION= 0X89
|
||||
>>>>>>> fork_develop_new
|
||||
//RESERVED 0X8a ~ 0xff
|
||||
NFAPI_NR_PHY_MSG_TYPE_PNF_PARAM_REQUEST = 0x0100,
|
||||
NFAPI_NR_PHY_MSG_TYPE_PNF_PARAM_RESPONSE = 0x0101,
|
||||
@@ -1040,7 +1036,7 @@ typedef struct {
|
||||
} nfapi_nr_dl_tti_request_pdu_t;
|
||||
|
||||
#define NFAPI_NR_MAX_DL_TTI_PDUS 32
|
||||
/*
|
||||
|
||||
typedef struct {
|
||||
/// Number of PDUs that are included in this message. All PDUs in the message are numbered in order. Value 0 -> 255
|
||||
uint8_t nPDUs;
|
||||
@@ -1053,7 +1049,7 @@ typedef struct {
|
||||
/// This value is an index for number of PDU identified by nPDU in this message Value: 0 -> 255
|
||||
uint8_t PduIdx[256][12];
|
||||
} nfapi_nr_dl_tti_request_body_t;
|
||||
*/
|
||||
|
||||
|
||||
typedef struct {
|
||||
nfapi_p7_message_header_t header;
|
||||
@@ -1077,17 +1073,7 @@ typedef struct {
|
||||
uint16_t SFN;
|
||||
/// Slot number (0-19)
|
||||
uint16_t Slot;
|
||||
/// Number of PDUs that are included in this message. All PDUs in the message are numbered in order. Value 0 -> 255
|
||||
uint8_t nPDUs;
|
||||
/// Number of UEs in the Group included in this message. Value 0 -> 255
|
||||
uint8_t nGroup;
|
||||
/// List containing PDUs
|
||||
nfapi_nr_dl_tti_request_pdu_t dl_tti_pdu_list[NFAPI_NR_MAX_DL_TTI_PDUS];
|
||||
//nfapi_nr_dl_tti_request_pdu_t *dl_tti_pdu_list;
|
||||
/// Number of UE in this group. For SU-MIMO, one group includes one UE only. For MU-MIMO, one group includes up to 12 UEs. Value 1 -> 12
|
||||
uint8_t nUe[256];
|
||||
/// This value is an index for number of PDU identified by nPDU in this message Value: 0 -> 255
|
||||
uint8_t PduIdx[256][12];
|
||||
nfapi_nr_dl_tti_request_body_t dl_tti_request_body;
|
||||
nfapi_vendor_extension_tlv_t vendor_extension;
|
||||
} nfapi_nr_dl_tti_request_t;
|
||||
|
||||
|
||||
@@ -899,27 +899,27 @@ static uint8_t pack_dl_tti_request(void *msg, uint8_t **ppWritePackedMsg, uint8_
|
||||
|
||||
if (!(push16(pNfapiMsg->SFN , ppWritePackedMsg, end) &&
|
||||
push16(pNfapiMsg->Slot , ppWritePackedMsg, end) &&
|
||||
push8(pNfapiMsg->nGroup , ppWritePackedMsg, end) &&
|
||||
push8(pNfapiMsg->nPDUs , ppWritePackedMsg, end) &&
|
||||
pusharray8(pNfapiMsg->nUe ,256,pNfapiMsg->nGroup, ppWritePackedMsg, end)
|
||||
push8(pNfapiMsg->dl_tti_request_body.nGroup , ppWritePackedMsg, end) &&
|
||||
push8(pNfapiMsg->dl_tti_request_body.nPDUs , ppWritePackedMsg, end) &&
|
||||
pusharray8(pNfapiMsg->dl_tti_request_body.nUe ,256,pNfapiMsg->dl_tti_request_body.nGroup, ppWritePackedMsg, end)
|
||||
//pusharray8(pNfapiMsg->PduIdx[0] ,256,256, ppWritePackedMsg, end)
|
||||
))
|
||||
return 0;
|
||||
|
||||
int arr[12];
|
||||
for(int i=0;i<pNfapiMsg->nGroup;i++)
|
||||
for(int i=0;i<pNfapiMsg->dl_tti_request_body.nGroup;i++)
|
||||
{
|
||||
for(int j=0;j<pNfapiMsg->nUe[i];j++)
|
||||
for(int j=0;j<pNfapiMsg->dl_tti_request_body.nUe[i];j++)
|
||||
{
|
||||
arr[j] = pNfapiMsg->PduIdx[i][j];
|
||||
arr[j] = pNfapiMsg->dl_tti_request_body.PduIdx[i][j];
|
||||
}
|
||||
if(!(pusharray8(arr,12,pNfapiMsg->nUe[i],ppWritePackedMsg, end)))
|
||||
if(!(pusharray8(arr,12,pNfapiMsg->dl_tti_request_body.nUe[i],ppWritePackedMsg, end)))
|
||||
return 0;
|
||||
}
|
||||
|
||||
for(int i=0;i<pNfapiMsg->nPDUs;i++)
|
||||
for(int i=0;i<pNfapiMsg->dl_tti_request_body.nPDUs;i++)
|
||||
{
|
||||
if(!pack_dl_tti_request_body_value(&pNfapiMsg->dl_tti_pdu_list[i],ppWritePackedMsg,end))
|
||||
if(!pack_dl_tti_request_body_value(&pNfapiMsg->dl_tti_request_body.dl_tti_pdu_list[i],ppWritePackedMsg,end))
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -4555,9 +4555,9 @@ static uint8_t unpack_dl_tti_request(uint8_t **ppReadPackedMsg, uint8_t *end, vo
|
||||
|
||||
if (!(pull16(ppReadPackedMsg,&pNfapiMsg->SFN, end) &&
|
||||
pull16(ppReadPackedMsg, &pNfapiMsg->Slot, end) &&
|
||||
pull8(ppReadPackedMsg, &pNfapiMsg->nGroup, end) &&
|
||||
pull8(ppReadPackedMsg, &pNfapiMsg->nPDUs, end) &&
|
||||
pullarray8(ppReadPackedMsg,&pNfapiMsg->nUe ,256,pNfapiMsg->nGroup, end)
|
||||
pull8(ppReadPackedMsg, &pNfapiMsg->dl_tti_request_body.nGroup, end) &&
|
||||
pull8(ppReadPackedMsg, &pNfapiMsg->dl_tti_request_body.nPDUs, end) &&
|
||||
pullarray8(ppReadPackedMsg,&pNfapiMsg->dl_tti_request_body.nUe ,256,pNfapiMsg->dl_tti_request_body.nGroup, end)
|
||||
//pusharray8(pNfapiMsg->PduIdx[0] ,256,256, ppWritePackedMsg, end)
|
||||
))
|
||||
return 0;
|
||||
@@ -4566,19 +4566,19 @@ static uint8_t unpack_dl_tti_request(uint8_t **ppReadPackedMsg, uint8_t *end, vo
|
||||
// }
|
||||
|
||||
int arr[12];
|
||||
for(int i=0;i<pNfapiMsg->nGroup;i++)
|
||||
for(int i=0;i<pNfapiMsg->dl_tti_request_body.nGroup;i++)
|
||||
{
|
||||
for(int j=0;j<pNfapiMsg->nUe[i];j++)
|
||||
for(int j=0;j<pNfapiMsg->dl_tti_request_body.nUe[i];j++)
|
||||
{
|
||||
arr[j] = pNfapiMsg->PduIdx[i][j];
|
||||
arr[j] = pNfapiMsg->dl_tti_request_body.PduIdx[i][j];
|
||||
}
|
||||
if(!(pullarray8(ppReadPackedMsg,arr,12,pNfapiMsg->nUe[i], end)))
|
||||
if(!(pullarray8(ppReadPackedMsg,arr,12,pNfapiMsg->dl_tti_request_body.nUe[i], end)))
|
||||
return 0;
|
||||
}
|
||||
|
||||
for(int i=0;i<pNfapiMsg->nPDUs;i++)
|
||||
for(int i=0;i<pNfapiMsg->dl_tti_request_body.nPDUs;i++)
|
||||
{
|
||||
if(!unpack_dl_tti_request_body_value(ppReadPackedMsg, end, &pNfapiMsg->dl_tti_pdu_list[i]))
|
||||
if(!unpack_dl_tti_request_body_value(ppReadPackedMsg, end, &pNfapiMsg->dl_tti_request_body.dl_tti_pdu_list[i]))
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user