* \Generation of Narrowband Secondary Synchronisation Signal(NSSS) for NB-IoT, TS 36-212, V13.4.0 2017-02
* \author M. KANJ
* \date 2017
* \version 0.0
* \company bcom
* \email: matthieu.kanj@b-com.com
* \note
* \warning
*/
#include "PHY/defs.h"
#include "defs.h"
#include "PHY/extern.h"
intgenerate_sss_NB_IoT(int32_t**txdataF,
int16_tamp,
LTE_DL_FRAME_PARMS*frame_parms,
uint16_tsymbol_offset,// symbol_offset = 3 for NB-IoT
uint16_tslot_offset,
unsignedshortframe_number,// new attribute (Get value from higher layer), it does not exist for LTE
unsignedshortRB_IoT_ID)// new attribute (values are between 0.. Max_RB_number-1), it does not exist for LTE
{
uint8_taa,Nid_NB_IoT,Nid2,f,q,s,c,u;
int16_t*d;
uint8_tNid2;
uint16_tn_f;
unsignedshorta;
uint16_tslot_id;// slot_id = 17 in NB_IoT
unsignedshortbandwidth_even_odd;
unsignedshortNB_IoT_start;
n_f=frame_number;
Nid_NB_IoT=frame_parms->Nid_cell;// supposing Cell_Id of LTE = Cell_Id of NB-IoT // if different , NB_IOT_DL_FRAME_PARMS should be includes as attribute