27 #include "RestHandler.h"
28 #include <libconfig.h++>
29 #include "srslte/srslte.h"
30 #include "srslte/upper/rlc.h"
31 #include "srslte/upper/pdcp.h"
104 float cinr_db() {
return _ue_dl.chest_res.snr_db; }
107 const libconfig::Config& _cfg;
112 cf_t* _signal_buffer_rx[SRSLTE_MAX_PORTS] = {};
113 uint32_t _signal_buffer_max_samples = 0;
115 srslte_softbuffer_rx_t _softbuffer;
116 uint8_t* _data[SRSLTE_MAX_CODEWORDS];
118 srslte_ue_dl_t _ue_dl = {};
119 srslte_ue_dl_cfg_t _ue_dl_cfg = {};
120 srslte_dl_sf_cfg_t _sf_cfg = {};
bool init()
Initialize signal- and softbuffers, init all underlying components.
Frame processor for CAS subframes.
bool process(uint32_t tti)
Process the sample data in the signal buffer.
CasFrameProcessor(const libconfig::Config &cfg, Phy &phy, srslte::rlc &rlc, RestHandler &rest)
Default constructor.
virtual ~CasFrameProcessor()
Default destructor.
std::vector< uint8_t > pdsch_data()
Get the constellation diagram data (I/Q data of the subcarriers after CE)
float cinr_db()
Get the CINR estimate (in dB)
void set_cell(srslte_cell_t cell)
Set the parameters for the cell (Nof PRB, etc).
uint32_t rx_buffer_size()
Size of the signal buffer.
cf_t ** rx_buffer()
Get a handle of the signal buffer to store samples for processing in.
std::vector< uint8_t > ce_values()
Get the CE values (time domain) for displaying the spectrum of the received signal.