uint32_tpointer_to_sf=SIB23->pointer_to_subframe;/// to identify wich encoded subframe to transmit
uint32_tpointer_to_sf=SIB23->pointer_to_subframe;/// to identify wich encoded subframe to transmit
...
@@ -176,7 +176,7 @@ int generate_SIB23(NB_IoT_eNB_NDLSCH_t *SIB23,
...
@@ -176,7 +176,7 @@ int generate_SIB23(NB_IoT_eNB_NDLSCH_t *SIB23,
dlsch_modulation_NB_IoT(txdataF,
dlsch_modulation_NB_IoT(txdataF,
amp,
amp,
frame_parms,
frame_parms,
eutro_control_region,//should be replace by start_symbole // control region size for LTE , values between 0..3, (0 for stand-alone / 1, 2 or 3 for in-band)
eutra_control_region,//should be replace by start_symbole // control region size for LTE , values between 0..3, (0 for stand-alone / 1, 2 or 3 for in-band)
SIB23,
SIB23,
G,// number of bits per subframe
G,// number of bits per subframe
pointer_to_sf,
pointer_to_sf,
...
@@ -217,7 +217,7 @@ int generate_NDLSCH_NB_IoT(NB_IoT_eNB_NDLSCH_t *RAR,
...
@@ -217,7 +217,7 @@ int generate_NDLSCH_NB_IoT(NB_IoT_eNB_NDLSCH_t *RAR,
uint32_tcounter_sf_rep=RAR->counter_current_sf_repetition;/// for identifiying when to trigger new scrambling
uint32_tcounter_sf_rep=RAR->counter_current_sf_repetition;/// for identifiying when to trigger new scrambling
...
@@ -261,7 +261,7 @@ int generate_NDLSCH_NB_IoT(NB_IoT_eNB_NDLSCH_t *RAR,
...
@@ -261,7 +261,7 @@ int generate_NDLSCH_NB_IoT(NB_IoT_eNB_NDLSCH_t *RAR,
dlsch_modulation_NB_IoT(txdataF,
dlsch_modulation_NB_IoT(txdataF,
amp,
amp,
frame_parms,
frame_parms,
eutro_control_region,//should be replace by start_symbole // control region size for LTE , values between 0..3, (0 for stand-alone / 1, 2 or 3 for in-band)
eutra_control_region,//should be replace by start_symbole // control region size for LTE , values between 0..3, (0 for stand-alone / 1, 2 or 3 for in-band)
RAR,
RAR,
G,// number of bits per subframe
G,// number of bits per subframe
pointer_to_sf,
pointer_to_sf,
...
@@ -294,7 +294,7 @@ int generate_NDLSCH_NB_IoT(NB_IoT_eNB_NDLSCH_t *RAR,
...
@@ -294,7 +294,7 @@ int generate_NDLSCH_NB_IoT(NB_IoT_eNB_NDLSCH_t *RAR,
dlsch_modulation_NB_IoT(txdataF,
dlsch_modulation_NB_IoT(txdataF,
amp,
amp,
frame_parms,
frame_parms,
eutro_control_region,//should be replace by start_symbole // control region size for LTE , values between 0..3, (0 for stand-alone / 1, 2 or 3 for in-band)
eutra_control_region,//should be replace by start_symbole // control region size for LTE , values between 0..3, (0 for stand-alone / 1, 2 or 3 for in-band)
RAR,
RAR,
G,// number of bits per subframe
G,// number of bits per subframe
pointer_to_sf,
pointer_to_sf,
...
@@ -320,7 +320,7 @@ int generate_NDLSCH_NB_IoT(NB_IoT_eNB_NDLSCH_t *RAR,
...
@@ -320,7 +320,7 @@ int generate_NDLSCH_NB_IoT(NB_IoT_eNB_NDLSCH_t *RAR,
eutro_control_region, //should be replace by start_symbole // control region size for LTE , values between 0..3, (0 for stand-alone / 1, 2 or 3 for in-band)
DCI,
G, // number of bits per subframe
pointer_to_sf,
subframe,
RB_IoT_ID);
if(DCI->counter_current_sf_repetition == rep)
if(counter_rep==rep)
{
{
DCI->pointer_to_subframe++;
if (Nsf == DCI->pointer_to_subframe)
{
DCI->active = 0;
done =1;
}
}
dci_encoding_NB_IoT(DCI_pdu,// Array of two DCI pdus, even if one DCI is to transmit , the number of DCI is indicated in dci_number
DCI,////uint8_t *e[2], // *e should be e[2][G]
}
num_bits_of_DCI,//////A = number of bits of the DCI
G,
ncce_index,
agr_level);
npdcch_scrambling_NB_IoT(frame_parms,
DCI,// Input data
G,// Total number of bits to transmit in one subframe(case of DCI = G)
subframe*2,//XXX we pass the subframe // Slot number (0..19)
ncce_index,
agr_level);
}
if(((counter_rep%4)==0)&&(counter_rep!=rep))
{
npdcch_scrambling_NB_IoT(frame_parms,
DCI,// Input data
G,// Total number of bits to transmit in one subframe(case of DCI = G)
subframe*2,//XXX we pass the subframe // Slot number (0..19)
ncce_index,
agr_level);
}
dci_modulation_NB_IoT(txdataF,
amp,
frame_parms,
eutra_control_region,// control region size for LTE , values between 0..3, (0 for stand-alone / 1, 2 or 3 for in-band)
DCI,
0,// npdsch_data_subframe, // subframe index of the data table of npdsch channel (G*Nsf) , values are between 0..Nsf