21 #ifndef GNSS_SDR_GPS_L5I_PCPS_ACQUISITION_FPGA_H 22 #define GNSS_SDR_GPS_L5I_PCPS_ACQUISITION_FPGA_H 27 #include <volk_gnsssdr/volk_gnsssdr_alloc.h> 52 const std::string&
role,
53 unsigned int in_streams,
54 unsigned int out_streams);
64 inline std::string
role()
override 74 return "GPS_L5i_PCPS_Acquisition_Fpga";
82 return sizeof(int16_t);
88 void connect(gr::top_block_sptr top_block)
override;
93 void disconnect(gr::top_block_sptr top_block)
override;
118 acquisition_fpga_->set_channel(channel_);
126 channel_fsm_ = channel_fsm;
127 acquisition_fpga_->set_channel_fsm(channel_fsm);
153 void init()
override;
163 signed int mag()
override;
168 void reset()
override;
186 static const uint32_t NUM_PRNs = 32;
188 const std::string acquisition_device_name =
"acquisition_S00_AXI";
192 static const uint32_t quant_bits_local_code = 16;
193 static const uint32_t select_lsbits = 0x0000FFFF;
194 static const uint32_t select_msbits = 0xFFFF0000;
195 static const uint32_t select_all_code_bits = 0xFFFFFFFF;
196 static const uint32_t shl_code_bits = 65536;
198 float calculate_threshold(
float pfa);
200 pcps_acquisition_fpga_sptr acquisition_fpga_;
201 std::weak_ptr<ChannelFsm> channel_fsm_;
202 volk_gnsssdr::vector<uint32_t> d_all_fft_codes_;
204 std::string item_type_;
205 std::string dump_filename_;
207 int32_t doppler_center_;
209 uint32_t doppler_max_;
210 uint32_t doppler_step_;
211 unsigned int in_streams_;
212 unsigned int out_streams_;
218 #endif // GNSS_SDR_GPS_L5I_PCPS_ACQUISITION_FPGA_H void set_doppler_step(unsigned int doppler_step) override
Set Doppler steps for the grid search.
void set_resampler_latency(uint32_t latency_samples __attribute__((unused))) override
Set resampler latency.
void set_channel(unsigned int channel) override
Set acquisition channel unique ID.
~GpsL5iPcpsAcquisitionFpga()=default
Destructor.
GpsL5iPcpsAcquisitionFpga(const ConfigurationInterface *configuration, const std::string &role, unsigned int in_streams, unsigned int out_streams)
Constructor.
void stop_acquisition() override
Stop running acquisition.
gr::basic_block_sptr get_right_block() override
Get right block.
std::string implementation() override
Returns "GPS_L5i_PCPS_Acquisition_Fpga".
Interface of the State Machine for channel.
void reset() override
Restart acquisition algorithm.
void set_doppler_max(unsigned int doppler_max) override
Set maximum Doppler off grid search.
signed int mag() override
Returns the maximum peak of grid search.
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_center(int doppler_center) override
Set Doppler center for the grid search.
This abstract class represents an interface to configuration parameters.
std::string role() override
Role.
This class adapts a PCPS acquisition block off-loaded on an FPGA to an AcquisitionInterface for GPS L...
This class implements a Parallel Code Phase Search Acquisition for the FPGA.
void set_local_code() override
Sets local code for GPS L5 PCPS 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 init() override
Initializes acquisition algorithm.
void disconnect(gr::top_block_sptr top_block) override
Disconnect.
void set_state(int state) override
If state = 1, it forces the block to start acquiring from the first sample.
void set_channel_fsm(std::weak_ptr< ChannelFsm > channel_fsm) override
Set channel fsm associated to this acquisition instance.
gr::basic_block_sptr get_left_block() override
Get left block.
void set_threshold(float threshold) override
Set statistics threshold of PCPS algorithm.
void connect(gr::top_block_sptr top_block) override
Connect.
size_t item_size() override
Returns size of lv_16sc_t.
Interface of the Gnss_Synchro class.