20 #ifndef GNSS_SDR_GPS_L2_M_PCPS_ACQUISITION_FPGA_H 21 #define GNSS_SDR_GPS_L2_M_PCPS_ACQUISITION_FPGA_H 27 #include <gnuradio/runtime_types.h> 28 #include <volk_gnsssdr/volk_gnsssdr_alloc.h> 51 const std::string& role,
52 unsigned int in_streams,
53 unsigned int out_streams);
57 inline std::string role()
override 67 return "GPS_L2_M_PCPS_Acquisition_Fpga";
70 inline size_t item_size()
override 75 void connect(gr::top_block_sptr top_block)
override;
76 void disconnect(gr::top_block_sptr top_block)
override;
77 gr::basic_block_sptr get_left_block()
override;
78 gr::basic_block_sptr get_right_block()
override;
93 acquisition_fpga_->set_channel(channel_);
101 channel_fsm_ = std::move(channel_fsm);
102 acquisition_fpga_->set_channel_fsm(channel_fsm_);
123 void init()
override;
133 signed int mag()
override;
138 void reset()
override;
150 void set_resampler_latency(uint32_t latency_samples __attribute__((unused)))
override{};
153 static const uint32_t downsampling_factor_default = 1;
154 static const uint32_t fpga_buff_num = 0;
155 static const uint32_t fpga_blk_exp = 13;
157 static const uint32_t NUM_PRNs = 32;
158 static const uint32_t QUANT_BITS_LOCAL_CODE = 16;
159 static const uint32_t SELECT_LSBits = 0x0000FFFF;
160 static const uint32_t SELECT_MSBbits = 0xFFFF0000;
161 static const uint32_t SELECT_ALL_CODE_BITS = 0xFFFFFFFF;
162 static const uint32_t SHL_CODE_BITS = 65536;
164 pcps_acquisition_fpga_sptr acquisition_fpga_;
165 volk_gnsssdr::vector<uint32_t> d_all_fft_codes_;
166 std::weak_ptr<ChannelFsm> channel_fsm_;
172 unsigned int channel_;
173 unsigned int doppler_max_;
174 unsigned int doppler_step_;
175 unsigned int in_streams_;
176 unsigned int out_streams_;
182 #endif // GNSS_SDR_GPS_L2_M_PCPS_ACQUISITION_FPGA_H Class that contains all the configuration parameters for generic acquisition block based on the PCPS ...
void set_channel_fsm(std::weak_ptr< ChannelFsm > channel_fsm) override
Set channel fsm associated to this acquisition instance.
void reset() override
Restart acquisition algorithm.
signed int mag() override
Returns the maximum peak of grid search.
void init() override
Initializes acquisition algorithm.
void set_doppler_max(unsigned int doppler_max) override
Set maximum Doppler off grid search.
Interface of the State Machine for channel.
This abstract class represents an interface to an acquisition GNSS block.
void set_gnss_synchro(Gnss_Synchro *p_gnss_synchro) override
Set acquisition/tracking common Gnss_Synchro object pointer to efficiently exchange synchronization d...
This is the class that contains the information that is shared by the processing blocks.
This abstract class represents an interface to configuration parameters.
std::string implementation() override
Returns "GPS_L2_M_PCPS_Acquisition_Fpga".
void set_state(int state) override
If state = 1, it forces the block to start acquiring from the first sample.
This class implements a Parallel Code Phase Search Acquisition for the FPGA.
void set_threshold(float threshold) override
Set statistics threshold of PCPS algorithm.
void set_local_code() override
Sets local code for GPS L2/M PCPS acquisition algorithm.
void stop_acquisition() override
Stop running acquisition.
This class adapts a PCPS acquisition block off-loaded on an FPGA to an AcquisitionInterface for GPS L...
void set_doppler_step(unsigned int doppler_step) override
Set Doppler steps for the grid search.
void set_channel(unsigned int channel) override
Set acquisition channel unique ID.
Interface of the Gnss_Synchro class.