19 #ifndef GNSS_SDR_GALILEO_E5B_PCPS_ACQUISITION_FPGA_H 20 #define GNSS_SDR_GALILEO_E5B_PCPS_ACQUISITION_FPGA_H 26 #include <volk_gnsssdr/volk_gnsssdr_alloc.h> 50 const std::string&
role,
51 unsigned int in_streams,
52 unsigned int out_streams);
62 inline std::string
role()
override 72 return "Galileo_E5b_PCPS_Acquisition_FPGA";
80 return sizeof(int16_t);
86 void connect(gr::top_block_sptr top_block)
override;
91 void disconnect(gr::top_block_sptr top_block)
override;
116 acquisition_fpga_->set_channel(channel_);
124 channel_fsm_ = std::move(channel_fsm);
125 acquisition_fpga_->set_channel_fsm(channel_fsm_);
151 void init()
override;
161 signed int mag()
override;
166 void reset()
override;
191 static const uint32_t ACQ_BUFF_1 = 1;
192 static const uint32_t DEFAULT_FPGA_BLK_EXP = 13;
193 static const uint32_t QUANT_BITS_LOCAL_CODE = 16;
194 static const uint32_t SELECT_LSBITS = 0x0000FFFF;
195 static const uint32_t SELECT_MSBITS = 0xFFFF0000;
196 static const uint32_t SELECT_ALL_CODE_BITS = 0xFFFFFFFF;
197 static const uint32_t SHL_CODE_BITS = 65536;
199 void generate_galileo_e5b_prn_codes();
201 pcps_acquisition_fpga_sptr acquisition_fpga_;
202 volk_gnsssdr::vector<uint32_t> d_all_fft_codes_;
203 std::weak_ptr<ChannelFsm> channel_fsm_;
208 int32_t doppler_center_;
210 uint32_t doppler_max_;
211 uint32_t doppler_step_;
212 unsigned int in_streams_;
213 unsigned int out_streams_;
221 #endif // GNSS_SDR_GALILEO_E5B_PCPS_ACQUISITION_FPGA_H Class that contains all the configuration parameters for generic acquisition block based on the PCPS ...
void set_local_code() override
Sets local Galileo E5b code for PCPS acquisition algorithm.
This class adapts a PCPS acquisition block off-loaded on an FPGA to an AcquisitionInterface for Galil...
void connect(gr::top_block_sptr top_block) override
Connect.
void reset() override
Restart acquisition algorithm.
void set_gnss_synchro(Gnss_Synchro *p_gnss_synchro) override
Set acquisition/tracking common Gnss_Synchro object pointer to efficiently exchange synchronization d...
void set_doppler_center(int doppler_center) override
Set Doppler center for the grid search.
std::string implementation() override
Returns "Galileo_E5b_Pcps_Acquisition_FPGA".
void set_channel(unsigned int channel) override
Set acquisition channel unique ID.
Interface of the State Machine for channel.
void set_doppler_step(unsigned int doppler_step) override
Set Doppler steps for the grid search.
void set_state(int state) override
If set to 1, ensures that acquisition starts at the first available sample.
This abstract class represents an interface to an acquisition GNSS block.
This is the class that contains the information that is shared by the processing blocks.
void set_doppler_max(unsigned int doppler_max) override
Set maximum Doppler off grid search.
This abstract class represents an interface to configuration parameters.
void init() override
Initializes acquisition algorithm.
void set_channel_fsm(std::weak_ptr< ChannelFsm > channel_fsm) override
Set channel fsm associated to this acquisition instance.
This class implements a Parallel Code Phase Search Acquisition for the FPGA.
void stop_acquisition() override
Stop running acquisition.
gr::basic_block_sptr get_right_block() override
Get right block.
void disconnect(gr::top_block_sptr top_block) override
Disconnect.
void set_single_doppler_flag(unsigned int single_doppler_flag)
This function is only used in the unit tests.
signed int mag() override
Returns the maximum peak of grid search.
size_t item_size() override
Returns size of lv_16sc_t.
GalileoE5bPcpsAcquisitionFpga(const ConfigurationInterface *configuration, const std::string &role, unsigned int in_streams, unsigned int out_streams)
Constructor.
~GalileoE5bPcpsAcquisitionFpga()=default
Destructor.
std::string role() override
Role.
gr::basic_block_sptr get_left_block() override
Get left block.
void set_threshold(float threshold) override
Set statistics threshold of PCPS algorithm.
Interface of the Gnss_Synchro class.
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override
Set resampler latency.