AssertFatal(rt_period>0,"Invalid rt period !%u\n",rt_period);
LOG_I(RRH,"[eNB] Real time period is set to %u ns\n",rt_period);
}
staticvoidcheck_dev_config(rrh_module_t*mod_enb){
AssertFatal((mod_enb->devs->openair0_cfg.num_rb_dl==100||mod_enb->devs->openair0_cfg.num_rb_dl==50||mod_enb->devs->openair0_cfg.num_rb_dl==25||mod_enb->devs->openair0_cfg.num_rb_dl==6),"Invalid number of resource blocks! %d\n",mod_enb->devs->openair0_cfg.num_rb_dl);
AssertFatal(mod_enb->devs->openair0_cfg.samples_per_frame>0,"Invalid number of samples per frame! %d\n",mod_enb->devs->openair0_cfg.samples_per_frame);
AssertFatal(mod_enb->devs->openair0_cfg.samples_per_packet>0,"Invalid number of samples per packet! %d\n",mod_enb->devs->openair0_cfg.samples_per_packet);
AssertFatal(mod_enb->devs->openair0_cfg.rx_num_channels>0,"Invalid number of RX antennas! %d\n",mod_enb->devs->openair0_cfg.rx_num_channels);
AssertFatal(mod_enb->devs->openair0_cfg.tx_num_channels>0,"Invalid number of TX antennas! %d\n",mod_enb->devs->openair0_cfg.tx_num_channels);
AssertFatal(mod_enb->devs->openair0_cfg.autocal[0]>0,"Invalid auto calibration choice! %d\n",mod_enb->devs->openair0_cfg.autocal[0]);
AssertFatal((mod_enb->devs->openair0_cfg->num_rb_dl==100||mod_enb->devs->openair0_cfg->num_rb_dl==50||mod_enb->devs->openair0_cfg->num_rb_dl==25||mod_enb->devs->openair0_cfg->num_rb_dl==6),"Invalid number of resource blocks! %d\n",mod_enb->devs->openair0_cfg->num_rb_dl);
AssertFatal(mod_enb->devs->openair0_cfg->samples_per_frame>0,"Invalid number of samples per frame! %d\n",mod_enb->devs->openair0_cfg->samples_per_frame);
AssertFatal(mod_enb->devs->openair0_cfg->samples_per_packet>0,"Invalid number of samples per packet! %d\n",mod_enb->devs->openair0_cfg->samples_per_packet);
AssertFatal(mod_enb->devs->openair0_cfg->rx_num_channels>0,"Invalid number of RX antennas! %d\n",mod_enb->devs->openair0_cfg->rx_num_channels);
AssertFatal(mod_enb->devs->openair0_cfg->tx_num_channels>0,"Invalid number of TX antennas! %d\n",mod_enb->devs->openair0_cfg->tx_num_channels);