20 #ifndef GNSS_SDR_GPS_L2_M_PCPS_ACQUISITION_FPGA_H 21 #define GNSS_SDR_GPS_L2_M_PCPS_ACQUISITION_FPGA_H 25 #include <gnuradio/runtime_types.h> 26 #include <volk_gnsssdr/volk_gnsssdr_alloc.h> 49 const std::string& role,
50 unsigned int in_streams,
51 unsigned int out_streams);
55 inline std::string role()
override 65 return "GPS_L2_M_PCPS_Acquisition_Fpga";
68 inline size_t item_size()
override 73 void connect(gr::top_block_sptr top_block)
override;
74 void disconnect(gr::top_block_sptr top_block)
override;
75 gr::basic_block_sptr get_left_block()
override;
76 gr::basic_block_sptr get_right_block()
override;
91 acquisition_fpga_->set_channel(channel_);
99 channel_fsm_ = channel_fsm;
100 acquisition_fpga_->set_channel_fsm(channel_fsm);
121 void init()
override;
131 signed int mag()
override;
136 void reset()
override;
148 void set_resampler_latency(uint32_t latency_samples __attribute__((unused)))
override{};
151 const std::string acquisition_device_name =
"acquisition_S00_AXI";
153 static const uint32_t NUM_PRNs = 32;
154 static const uint32_t QUANT_BITS_LOCAL_CODE = 16;
155 static const uint32_t SELECT_LSBits = 0x0000FFFF;
156 static const uint32_t SELECT_MSBbits = 0xFFFF0000;
157 static const uint32_t SELECT_ALL_CODE_BITS = 0xFFFFFFFF;
158 static const uint32_t SHL_CODE_BITS = 65536;
160 pcps_acquisition_fpga_sptr acquisition_fpga_;
161 volk_gnsssdr::vector<uint32_t> d_all_fft_codes_;
162 std::weak_ptr<ChannelFsm> channel_fsm_;
164 std::string item_type_;
165 std::string dump_filename_;
169 unsigned int channel_;
170 unsigned int doppler_max_;
171 unsigned int doppler_step_;
172 unsigned int in_streams_;
173 unsigned int out_streams_;
179 #endif // GNSS_SDR_GPS_L2_M_PCPS_ACQUISITION_FPGA_H 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.