21 #ifndef GNSS_SDR_GALILEO_E5A_PCPS_ACQUISITION_FPGA_H 22 #define GNSS_SDR_GALILEO_E5A_PCPS_ACQUISITION_FPGA_H 47 const std::string&
role,
48 unsigned int in_streams,
49 unsigned int out_streams);
59 inline std::string
role()
override 69 return "Galileo_E5a_Pcps_Acquisition_Fpga";
77 return sizeof(int16_t);
83 void connect(gr::top_block_sptr top_block)
override;
88 void disconnect(gr::top_block_sptr top_block)
override;
113 acquisition_fpga_->set_channel(channel_);
121 channel_fsm_ = channel_fsm;
122 acquisition_fpga_->set_channel_fsm(channel_fsm);
148 void init()
override;
158 signed int mag()
override;
163 void reset()
override;
190 static const uint32_t quant_bits_local_code = 16;
191 static const uint32_t select_lsbits = 0x0000FFFF;
192 static const uint32_t select_msbits = 0xFFFF0000;
193 static const uint32_t select_all_code_bits = 0xFFFFFFFF;
194 static const uint32_t shl_code_bits = 65536;
196 pcps_acquisition_fpga_sptr acquisition_fpga_;
197 std::weak_ptr<ChannelFsm> channel_fsm_;
198 std::vector<uint32_t> d_all_fft_codes_;
201 std::string item_type_;
202 std::string dump_filename_;
203 int32_t doppler_center_;
205 uint32_t doppler_max_;
206 uint32_t doppler_step_;
207 unsigned int in_streams_;
208 unsigned int out_streams_;
213 #endif // GNSS_SDR_GALILEO_E5A_PCPS_ACQUISITION_FPGA_H void set_local_code() override
Sets local Galileo E5a code for PCPS acquisition algorithm.
std::string implementation() override
Returns "Galileo_E5a_Pcps_Acquisition_Fpga".
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_state(int state) override
If set to 1, ensures that acquisition starts at the first available sample.
void set_threshold(float threshold) override
Set statistics threshold of PCPS algorithm.
Interface of the State Machine for channel.
signed int mag() override
Returns the maximum peak of grid search.
~GalileoE5aPcpsAcquisitionFpga()=default
Destructor.
void set_doppler_step(unsigned int doppler_step) override
Set Doppler steps for the grid search.
void stop_acquisition() override
Stop running acquisition.
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.
std::string role() override
Role.
This abstract class represents an interface to configuration parameters.
void reset() override
Restart acquisition algorithm.
GalileoE5aPcpsAcquisitionFpga(const ConfigurationInterface *configuration, const std::string &role, unsigned int in_streams, unsigned int out_streams)
Constructor.
This class implements a Parallel Code Phase Search Acquisition for the FPGA.
This class adapts a PCPS acquisition block off-loaded on an FPGA to an AcquisitionInterface for Galil...
void init() override
Initializes acquisition algorithm.
void connect(gr::top_block_sptr top_block) override
Connect.
void set_doppler_max(unsigned int doppler_max) override
Set maximum Doppler off grid search.
gr::basic_block_sptr get_right_block() override
Get right block.
void set_channel(unsigned int channel) override
Set acquisition channel unique ID.
void disconnect(gr::top_block_sptr top_block) override
Disconnect.
void set_doppler_center(int doppler_center) override
Set Doppler center for the grid search.
void set_single_doppler_flag(unsigned int single_doppler_flag)
This function is only used in the unit tests.
void set_channel_fsm(std::weak_ptr< ChannelFsm > channel_fsm) override
Set channel fsm associated to this acquisition instance.
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override
Set resampler latency.
size_t item_size() override
Returns size of lv_16sc_t.
gr::basic_block_sptr get_left_block() override
Get left block.
Interface of the Gnss_Synchro class.