mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-10-26 21:17:38 +00:00
Sort includes automatically with clang-format
Order: 1.- Main header 2.- Local headers 3.- Third-party library headers 4.- System headers each category sorted lexicographically
This commit is contained in:
@@ -30,11 +30,11 @@
|
||||
|
||||
|
||||
#include "rtklib_pvt.h"
|
||||
#include "pvt_conf.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include <boost/archive/xml_oarchive.hpp>
|
||||
#include "pvt_conf.h"
|
||||
#include <boost/archive/xml_iarchive.hpp>
|
||||
#include <boost/archive/xml_oarchive.hpp>
|
||||
#include <boost/serialization/map.hpp>
|
||||
#include <glog/logging.h>
|
||||
#if OLD_BOOST
|
||||
|
||||
@@ -34,8 +34,8 @@
|
||||
#include "galileo_almanac_helper.h"
|
||||
#include "gnss_sdr_create_directory.h"
|
||||
#include "pvt_conf.h"
|
||||
#include <boost/archive/xml_oarchive.hpp>
|
||||
#include <boost/archive/xml_iarchive.hpp>
|
||||
#include <boost/archive/xml_oarchive.hpp>
|
||||
#include <boost/exception/all.hpp>
|
||||
#include <boost/filesystem/path.hpp>
|
||||
#include <boost/serialization/map.hpp>
|
||||
@@ -43,9 +43,9 @@
|
||||
#include <gnuradio/gr_complex.h>
|
||||
#include <gnuradio/io_signature.h>
|
||||
#include <algorithm>
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <map>
|
||||
#include <exception>
|
||||
#if OLD_BOOST
|
||||
#include <boost/math/common_factor_rt.hpp>
|
||||
namespace bc = boost::math;
|
||||
|
||||
@@ -31,26 +31,26 @@
|
||||
#ifndef GNSS_SDR_RTKLIB_PVT_CC_H
|
||||
#define GNSS_SDR_RTKLIB_PVT_CC_H
|
||||
|
||||
#include "gps_ephemeris.h"
|
||||
#include "nmea_printer.h"
|
||||
#include "kml_printer.h"
|
||||
#include "gpx_printer.h"
|
||||
#include "geojson_printer.h"
|
||||
#include "gps_ephemeris.h"
|
||||
#include "gpx_printer.h"
|
||||
#include "kml_printer.h"
|
||||
#include "nmea_printer.h"
|
||||
#include "pvt_conf.h"
|
||||
#include "rinex_printer.h"
|
||||
#include "rtcm_printer.h"
|
||||
#include "pvt_conf.h"
|
||||
#include "rtklib_solver.h"
|
||||
#include <boost/date_time/posix_time/posix_time.hpp>
|
||||
#include <boost/date_time/gregorian/gregorian.hpp>
|
||||
#include <boost/date_time/posix_time/posix_time.hpp>
|
||||
#include <gnuradio/sync_block.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/msg.h>
|
||||
#include <chrono>
|
||||
#include <cstdint>
|
||||
#include <fstream>
|
||||
#include <utility>
|
||||
#include <string>
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/msg.h>
|
||||
#include <sys/types.h>
|
||||
#include <utility>
|
||||
|
||||
|
||||
class rtklib_pvt_cc;
|
||||
|
||||
@@ -30,12 +30,12 @@
|
||||
*/
|
||||
|
||||
#include "hybrid_ls_pvt.h"
|
||||
#include "Galileo_E1.h"
|
||||
#include "GPS_L1_CA.h"
|
||||
#include "GPS_L2C.h"
|
||||
#include "Galileo_E1.h"
|
||||
#include <boost/date_time/posix_time/posix_time.hpp>
|
||||
#include <utility>
|
||||
#include <glog/logging.h>
|
||||
#include <utility>
|
||||
|
||||
|
||||
using google::LogMessage;
|
||||
|
||||
@@ -32,12 +32,12 @@
|
||||
#ifndef GNSS_SDR_HYBRID_LS_PVT_H_
|
||||
#define GNSS_SDR_HYBRID_LS_PVT_H_
|
||||
|
||||
#include "ls_pvt.h"
|
||||
#include "galileo_navigation_message.h"
|
||||
#include "gps_navigation_message.h"
|
||||
#include "gps_cnav_navigation_message.h"
|
||||
#include "galileo_almanac.h"
|
||||
#include "galileo_navigation_message.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "gps_cnav_navigation_message.h"
|
||||
#include "gps_navigation_message.h"
|
||||
#include "ls_pvt.h"
|
||||
#include "rtklib_rtkcmn.h"
|
||||
#include <fstream>
|
||||
#include <map>
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
class Pvt_Conf
|
||||
{
|
||||
|
||||
@@ -33,9 +33,9 @@
|
||||
#define GNSS_SDR_PVT_SOLUTION_H_
|
||||
|
||||
|
||||
#include <armadillo>
|
||||
#include <boost/date_time/posix_time/posix_time.hpp>
|
||||
#include <deque>
|
||||
#include <armadillo>
|
||||
|
||||
const unsigned int PVT_MAX_CHANNELS = 90;
|
||||
const unsigned int PVT_MAX_PRN = 127; // 126 is SBAS
|
||||
|
||||
@@ -29,21 +29,21 @@
|
||||
*/
|
||||
|
||||
#include "rinex_printer.h"
|
||||
#include <boost/date_time/time_zone_base.hpp>
|
||||
#include <boost/date_time/gregorian/gregorian.hpp>
|
||||
#include <boost/date_time/local_time/local_time.hpp>
|
||||
#include <boost/date_time/posix_time/posix_time.hpp>
|
||||
#include <boost/date_time/time_zone_base.hpp>
|
||||
#include <boost/filesystem/operations.hpp> // for create_directories, exists
|
||||
#include <boost/filesystem/path.hpp> // for path, operator<<
|
||||
#include <boost/filesystem/path_traits.hpp> // for filesystem
|
||||
#include <glog/logging.h>
|
||||
#include <unistd.h> // for getlogin_r()
|
||||
#include <algorithm> // for min and max
|
||||
#include <cmath> // for floor
|
||||
#include <cstdlib> // for getenv()
|
||||
#include <iterator>
|
||||
#include <ostream>
|
||||
#include <set>
|
||||
#include <unistd.h> // for getlogin_r()
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
|
||||
@@ -51,21 +51,21 @@
|
||||
#ifndef GNSS_SDR_RINEX_PRINTER_H_
|
||||
#define GNSS_SDR_RINEX_PRINTER_H_
|
||||
|
||||
#include "gps_navigation_message.h"
|
||||
#include "gps_cnav_navigation_message.h"
|
||||
#include "galileo_navigation_message.h"
|
||||
#include "glonass_gnav_navigation_message.h"
|
||||
#include "GLONASS_L1_L2_CA.h"
|
||||
#include "GPS_L1_CA.h"
|
||||
#include "Galileo_E1.h"
|
||||
#include "GLONASS_L1_L2_CA.h"
|
||||
#include "galileo_navigation_message.h"
|
||||
#include "glonass_gnav_navigation_message.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "gps_cnav_navigation_message.h"
|
||||
#include "gps_navigation_message.h"
|
||||
#include <boost/date_time/posix_time/posix_time.hpp>
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
#include <sstream> // for stringstream
|
||||
#include <iomanip> // for setprecision
|
||||
#include <map>
|
||||
#include <sstream> // for stringstream
|
||||
#include <string>
|
||||
|
||||
class Sbas_Raw_Msg;
|
||||
|
||||
|
||||
@@ -38,10 +38,10 @@
|
||||
#include <boost/filesystem/path_traits.hpp> // for filesystem
|
||||
#include <glog/logging.h>
|
||||
#include <cstdint>
|
||||
#include <fcntl.h> // for O_RDWR
|
||||
#include <iomanip>
|
||||
#include <utility>
|
||||
#include <fcntl.h> // for O_RDWR
|
||||
#include <termios.h> // for tcgetattr
|
||||
#include <utility>
|
||||
|
||||
|
||||
using google::LogMessage;
|
||||
|
||||
@@ -148,7 +148,7 @@ private:
|
||||
std::string rtcm_devname;
|
||||
uint16_t port;
|
||||
uint16_t station_id;
|
||||
int32_t rtcm_dev_descriptor; // RTCM serial device descriptor (i.e. COM port)
|
||||
int32_t rtcm_dev_descriptor; // RTCM serial device descriptor (i.e. COM port)
|
||||
int32_t init_serial(const std::string& serial_device); //serial port control
|
||||
void close_serial();
|
||||
std::shared_ptr<Rtcm> rtcm;
|
||||
|
||||
@@ -52,13 +52,13 @@
|
||||
* -----------------------------------------------------------------------*/
|
||||
|
||||
#include "rtklib_solver.h"
|
||||
#include "rtklib_conversions.h"
|
||||
#include "rtklib_solution.h"
|
||||
#include "GLONASS_L1_L2_CA.h"
|
||||
#include "GPS_L1_CA.h"
|
||||
#include "Galileo_E1.h"
|
||||
#include "GLONASS_L1_L2_CA.h"
|
||||
#include <matio.h>
|
||||
#include "rtklib_conversions.h"
|
||||
#include "rtklib_solution.h"
|
||||
#include <glog/logging.h>
|
||||
#include <matio.h>
|
||||
#include <utility>
|
||||
|
||||
|
||||
|
||||
@@ -55,14 +55,14 @@
|
||||
#define GNSS_SDR_RTKLIB_SOLVER_H_
|
||||
|
||||
|
||||
#include "rtklib_rtkpos.h"
|
||||
#include "galileo_navigation_message.h"
|
||||
#include "gps_navigation_message.h"
|
||||
#include "gps_cnav_navigation_message.h"
|
||||
#include "glonass_gnav_navigation_message.h"
|
||||
#include "galileo_almanac.h"
|
||||
#include "galileo_navigation_message.h"
|
||||
#include "glonass_gnav_navigation_message.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "gps_cnav_navigation_message.h"
|
||||
#include "gps_navigation_message.h"
|
||||
#include "pvt_solution.h"
|
||||
#include "rtklib_rtkpos.h"
|
||||
#include <fstream>
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
@@ -30,12 +30,12 @@
|
||||
*/
|
||||
|
||||
#include "galileo_e1_pcps_8ms_ambiguous_acquisition.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
#include "galileo_e1_signal_processing.h"
|
||||
#include "Galileo_E1.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "galileo_e1_signal_processing.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
|
||||
using google::LogMessage;
|
||||
|
||||
|
||||
@@ -32,9 +32,9 @@
|
||||
#ifndef GNSS_SDR_GALILEO_E1_PCPS_8MS_AMBIGUOUS_ACQUISITION_H_
|
||||
#define GNSS_SDR_GALILEO_E1_PCPS_8MS_AMBIGUOUS_ACQUISITION_H_
|
||||
|
||||
#include "gnss_synchro.h"
|
||||
#include "acquisition_interface.h"
|
||||
#include "galileo_pcps_8ms_acquisition_cc.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include <gnuradio/blocks/stream_to_vector.h>
|
||||
#include <string>
|
||||
|
||||
|
||||
@@ -30,11 +30,11 @@
|
||||
*/
|
||||
|
||||
#include "galileo_e1_pcps_ambiguous_acquisition.h"
|
||||
#include "Galileo_E1.h"
|
||||
#include "acq_conf.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "galileo_e1_signal_processing.h"
|
||||
#include "Galileo_E1.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include "acq_conf.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
|
||||
|
||||
@@ -33,9 +33,9 @@
|
||||
#define GNSS_SDR_GALILEO_E1_PCPS_AMBIGUOUS_ACQUISITION_H_
|
||||
|
||||
#include "acquisition_interface.h"
|
||||
#include "complex_byte_to_float_x2.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "pcps_acquisition.h"
|
||||
#include "complex_byte_to_float_x2.h"
|
||||
#include <gnuradio/blocks/float_to_complex.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <string>
|
||||
|
||||
@@ -30,9 +30,9 @@
|
||||
*/
|
||||
|
||||
#include "galileo_e1_pcps_ambiguous_acquisition_fpga.h"
|
||||
#include "Galileo_E1.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "galileo_e1_signal_processing.h"
|
||||
#include "Galileo_E1.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
|
||||
@@ -33,11 +33,11 @@
|
||||
#define GNSS_SDR_GALILEO_E1_PCPS_AMBIGUOUS_ACQUISITION_FPGA_H_
|
||||
|
||||
#include "acquisition_interface.h"
|
||||
#include "complex_byte_to_float_x2.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "pcps_acquisition_fpga.h"
|
||||
#include "complex_byte_to_float_x2.h"
|
||||
#include <gnuradio/blocks/stream_to_vector.h>
|
||||
#include <gnuradio/blocks/float_to_complex.h>
|
||||
#include <gnuradio/blocks/stream_to_vector.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <string>
|
||||
|
||||
|
||||
@@ -30,12 +30,12 @@
|
||||
*/
|
||||
|
||||
#include "galileo_e1_pcps_cccwsr_ambiguous_acquisition.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
#include "galileo_e1_signal_processing.h"
|
||||
#include "Galileo_E1.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "galileo_e1_signal_processing.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
|
||||
using google::LogMessage;
|
||||
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
#ifndef GNSS_SDR_GALILEO_E1_PCPS_CCCWSR_AMBIGUOUS_ACQUISITION_H_
|
||||
#define GNSS_SDR_GALILEO_E1_PCPS_CCCWSR_AMBIGUOUS_ACQUISITION_H_
|
||||
|
||||
#include "gnss_synchro.h"
|
||||
#include "acquisition_interface.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "pcps_cccwsr_acquisition_cc.h"
|
||||
#include <gnuradio/blocks/stream_to_vector.h>
|
||||
#include <string>
|
||||
|
||||
@@ -30,12 +30,12 @@
|
||||
*/
|
||||
|
||||
#include "galileo_e1_pcps_quicksync_ambiguous_acquisition.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
#include "galileo_e1_signal_processing.h"
|
||||
#include "Galileo_E1.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "galileo_e1_signal_processing.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
|
||||
using google::LogMessage;
|
||||
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
#ifndef GNSS_SDR_GALILEO_E1_PCPS_QUICKSYNC_AMBIGUOUS_ACQUISITION_H_
|
||||
#define GNSS_SDR_GALILEO_E1_PCPS_QUICKSYNC_AMBIGUOUS_ACQUISITION_H_
|
||||
|
||||
#include "gnss_synchro.h"
|
||||
#include "acquisition_interface.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "pcps_quicksync_acquisition_cc.h"
|
||||
#include <gnuradio/blocks/stream_to_vector.h>
|
||||
#include <string>
|
||||
|
||||
@@ -30,12 +30,12 @@
|
||||
*/
|
||||
|
||||
#include "galileo_e1_pcps_tong_ambiguous_acquisition.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
#include "galileo_e1_signal_processing.h"
|
||||
#include "Galileo_E1.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "galileo_e1_signal_processing.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
|
||||
using google::LogMessage;
|
||||
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
#ifndef GNSS_SDR_GALILEO_E1_PCPS_TONG_AMBIGUOUS_ACQUISITION_H_
|
||||
#define GNSS_SDR_GALILEO_E1_PCPS_TONG_AMBIGUOUS_ACQUISITION_H_
|
||||
|
||||
#include "gnss_synchro.h"
|
||||
#include "acquisition_interface.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "pcps_tong_acquisition_cc.h"
|
||||
#include <gnuradio/blocks/stream_to_vector.h>
|
||||
#include <string>
|
||||
|
||||
@@ -36,12 +36,12 @@
|
||||
*/
|
||||
|
||||
#include "galileo_e5a_noncoherent_iq_acquisition_caf.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
#include "galileo_e5_signal_processing.h"
|
||||
#include "Galileo_E5a.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "galileo_e5_signal_processing.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
|
||||
using google::LogMessage;
|
||||
|
||||
|
||||
@@ -38,9 +38,9 @@
|
||||
#ifndef GALILEO_E5A_NONCOHERENT_IQ_ACQUISITION_CAF_H_
|
||||
#define GALILEO_E5A_NONCOHERENT_IQ_ACQUISITION_CAF_H_
|
||||
|
||||
#include "gnss_synchro.h"
|
||||
#include "acquisition_interface.h"
|
||||
#include "galileo_e5a_noncoherent_iq_acquisition_caf_cc.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include <string>
|
||||
|
||||
class ConfigurationInterface;
|
||||
|
||||
@@ -29,11 +29,11 @@
|
||||
*/
|
||||
|
||||
#include "galileo_e5a_pcps_acquisition.h"
|
||||
#include "Galileo_E5a.h"
|
||||
#include "acq_conf.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "galileo_e5_signal_processing.h"
|
||||
#include "Galileo_E5a.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include "acq_conf.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr_complex.h>
|
||||
|
||||
@@ -29,9 +29,9 @@
|
||||
*/
|
||||
|
||||
#include "galileo_e5a_pcps_acquisition_fpga.h"
|
||||
#include "Galileo_E5a.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "galileo_e5_signal_processing.h"
|
||||
#include "Galileo_E5a.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
|
||||
@@ -32,11 +32,11 @@
|
||||
*/
|
||||
|
||||
#include "glonass_l1_ca_pcps_acquisition.h"
|
||||
#include "GLONASS_L1_L2_CA.h"
|
||||
#include "acq_conf.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "glonass_l1_signal_processing.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include "acq_conf.h"
|
||||
#include "GLONASS_L1_L2_CA.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
|
||||
|
||||
@@ -35,9 +35,9 @@
|
||||
#define GNSS_SDR_GLONASS_L1_CA_PCPS_ACQUISITION_H_
|
||||
|
||||
#include "acquisition_interface.h"
|
||||
#include "complex_byte_to_float_x2.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "pcps_acquisition.h"
|
||||
#include "complex_byte_to_float_x2.h"
|
||||
#include <gnuradio/blocks/float_to_complex.h>
|
||||
#include <string>
|
||||
|
||||
|
||||
@@ -31,11 +31,11 @@
|
||||
*/
|
||||
|
||||
#include "glonass_l2_ca_pcps_acquisition.h"
|
||||
#include "GLONASS_L1_L2_CA.h"
|
||||
#include "acq_conf.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "glonass_l2_signal_processing.h"
|
||||
#include "GLONASS_L1_L2_CA.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include "acq_conf.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
|
||||
|
||||
@@ -34,9 +34,9 @@
|
||||
#define GNSS_SDR_GLONASS_L2_CA_PCPS_ACQUISITION_H_
|
||||
|
||||
#include "acquisition_interface.h"
|
||||
#include "complex_byte_to_float_x2.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "pcps_acquisition.h"
|
||||
#include "complex_byte_to_float_x2.h"
|
||||
#include <gnuradio/blocks/float_to_complex.h>
|
||||
#include <string>
|
||||
|
||||
|
||||
@@ -34,11 +34,11 @@
|
||||
*/
|
||||
|
||||
#include "gps_l1_ca_pcps_acquisition.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "gps_sdr_signal_processing.h"
|
||||
#include "GPS_L1_CA.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include "acq_conf.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include "gps_sdr_signal_processing.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
|
||||
|
||||
@@ -37,9 +37,9 @@
|
||||
#define GNSS_SDR_GPS_L1_CA_PCPS_ACQUISITION_H_
|
||||
|
||||
#include "acquisition_interface.h"
|
||||
#include "complex_byte_to_float_x2.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "pcps_acquisition.h"
|
||||
#include "complex_byte_to_float_x2.h"
|
||||
#include <gnuradio/blocks/float_to_complex.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <string>
|
||||
|
||||
@@ -33,11 +33,11 @@
|
||||
*/
|
||||
|
||||
#include "gps_l1_ca_pcps_acquisition_fine_doppler.h"
|
||||
#include "gps_sdr_signal_processing.h"
|
||||
#include "GPS_L1_CA.h"
|
||||
#include "acq_conf.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include "acq_conf.h"
|
||||
#include "gps_sdr_signal_processing.h"
|
||||
#include <glog/logging.h>
|
||||
|
||||
using google::LogMessage;
|
||||
|
||||
@@ -34,8 +34,8 @@
|
||||
#ifndef GNSS_SDR_GPS_L1_CA_PCPS_ACQUISITION_FINE_DOPPLER_H_
|
||||
#define GNSS_SDR_GPS_L1_CA_PCPS_ACQUISITION_FINE_DOPPLER_H_
|
||||
|
||||
#include "gnss_synchro.h"
|
||||
#include "acquisition_interface.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "pcps_acquisition_fine_doppler_cc.h"
|
||||
#include <string>
|
||||
|
||||
|
||||
@@ -34,13 +34,13 @@
|
||||
* -------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
#include "gps_l1_ca_pcps_acquisition_fpga.h"
|
||||
#include "GPS_L1_CA.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include "gps_l1_ca_pcps_acquisition_fpga.h"
|
||||
#include "gps_sdr_signal_processing.h"
|
||||
#include "GPS_L1_CA.h"
|
||||
#include <gnuradio/fft/fft.h>
|
||||
#include <glog/logging.h>
|
||||
#include <gnuradio/fft/fft.h>
|
||||
#include <new>
|
||||
|
||||
|
||||
|
||||
@@ -33,11 +33,11 @@
|
||||
*/
|
||||
|
||||
#include "gps_l1_ca_pcps_assisted_acquisition.h"
|
||||
#include <glog/logging.h>
|
||||
#include "gps_sdr_signal_processing.h"
|
||||
#include "GPS_L1_CA.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include "gps_sdr_signal_processing.h"
|
||||
#include <glog/logging.h>
|
||||
|
||||
|
||||
using google::LogMessage;
|
||||
|
||||
@@ -34,8 +34,8 @@
|
||||
#ifndef GNSS_SDR_GPS_L1_CA_PCPS_ASSISTED_ACQUISITION_H_
|
||||
#define GNSS_SDR_GPS_L1_CA_PCPS_ASSISTED_ACQUISITION_H_
|
||||
|
||||
#include "gnss_synchro.h"
|
||||
#include "acquisition_interface.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "pcps_assisted_acquisition_cc.h"
|
||||
#include <string>
|
||||
|
||||
|
||||
@@ -30,12 +30,12 @@
|
||||
*/
|
||||
|
||||
#include "gps_l1_ca_pcps_opencl_acquisition.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
#include "gps_sdr_signal_processing.h"
|
||||
#include "GPS_L1_CA.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include "gps_sdr_signal_processing.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
|
||||
|
||||
using google::LogMessage;
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
#ifndef GNSS_SDR_GPS_L1_CA_PCPS_OPENCL_ACQUISITION_H_
|
||||
#define GNSS_SDR_GPS_L1_CA_PCPS_OPENCL_ACQUISITION_H_
|
||||
|
||||
#include "gnss_synchro.h"
|
||||
#include "acquisition_interface.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "pcps_opencl_acquisition_cc.h"
|
||||
#include <gnuradio/blocks/stream_to_vector.h>
|
||||
#include <string>
|
||||
|
||||
@@ -31,12 +31,12 @@
|
||||
*/
|
||||
|
||||
#include "gps_l1_ca_pcps_quicksync_acquisition.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
#include "gps_sdr_signal_processing.h"
|
||||
#include "GPS_L1_CA.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include "gps_sdr_signal_processing.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
|
||||
|
||||
using google::LogMessage;
|
||||
|
||||
@@ -33,10 +33,10 @@
|
||||
#ifndef GNSS_SDR_GPS_L1_CA_PCPS_QUICKSYNC_ACQUISITION_H_
|
||||
#define GNSS_SDR_GPS_L1_CA_PCPS_QUICKSYNC_ACQUISITION_H_
|
||||
|
||||
#include "gnss_synchro.h"
|
||||
#include "acquisition_interface.h"
|
||||
#include "pcps_quicksync_acquisition_cc.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "pcps_quicksync_acquisition_cc.h"
|
||||
#include <gnuradio/blocks/stream_to_vector.h>
|
||||
#include <string>
|
||||
|
||||
|
||||
@@ -30,12 +30,12 @@
|
||||
*/
|
||||
|
||||
#include "gps_l1_ca_pcps_tong_acquisition.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
#include "gps_sdr_signal_processing.h"
|
||||
#include "GPS_L1_CA.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include "gps_sdr_signal_processing.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
|
||||
|
||||
using google::LogMessage;
|
||||
|
||||
@@ -32,10 +32,10 @@
|
||||
#ifndef GNSS_SDR_GPS_L1_CA_TONG_ACQUISITION_H_
|
||||
#define GNSS_SDR_GPS_L1_CA_TONG_ACQUISITION_H_
|
||||
|
||||
#include "gnss_synchro.h"
|
||||
#include "acquisition_interface.h"
|
||||
#include "pcps_tong_acquisition_cc.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "pcps_tong_acquisition_cc.h"
|
||||
#include <gnuradio/blocks/stream_to_vector.h>
|
||||
#include <string>
|
||||
|
||||
|
||||
@@ -32,11 +32,11 @@
|
||||
*/
|
||||
|
||||
#include "gps_l2_m_pcps_acquisition.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "gps_l2c_signal.h"
|
||||
#include "GPS_L2C.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include "acq_conf.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include "gps_l2c_signal.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
|
||||
|
||||
@@ -35,9 +35,9 @@
|
||||
#define GNSS_SDR_GPS_L2_M_PCPS_ACQUISITION_H_
|
||||
|
||||
#include "acquisition_interface.h"
|
||||
#include "complex_byte_to_float_x2.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "pcps_acquisition.h"
|
||||
#include "complex_byte_to_float_x2.h"
|
||||
#include <gnuradio/blocks/float_to_complex.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <string>
|
||||
|
||||
@@ -32,10 +32,10 @@
|
||||
*/
|
||||
|
||||
#include "gps_l2_m_pcps_acquisition_fpga.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "gps_l2c_signal.h"
|
||||
#include "GPS_L2C.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include "gps_l2c_signal.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
|
||||
|
||||
@@ -35,11 +35,11 @@
|
||||
#define GNSS_SDR_GPS_L2_M_PCPS_ACQUISITION_FPGA_H_
|
||||
|
||||
#include "acquisition_interface.h"
|
||||
#include "complex_byte_to_float_x2.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "pcps_acquisition_fpga.h"
|
||||
#include "complex_byte_to_float_x2.h"
|
||||
#include <gnuradio/blocks/stream_to_vector.h>
|
||||
#include <gnuradio/blocks/float_to_complex.h>
|
||||
#include <gnuradio/blocks/stream_to_vector.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <string>
|
||||
|
||||
|
||||
@@ -32,11 +32,11 @@
|
||||
*/
|
||||
|
||||
#include "gps_l5i_pcps_acquisition.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "gps_l5_signal.h"
|
||||
#include "GPS_L5.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include "acq_conf.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include "gps_l5_signal.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
|
||||
|
||||
@@ -35,9 +35,9 @@
|
||||
#define GNSS_SDR_GPS_L5i_PCPS_ACQUISITION_H_
|
||||
|
||||
#include "acquisition_interface.h"
|
||||
#include "complex_byte_to_float_x2.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "pcps_acquisition.h"
|
||||
#include "complex_byte_to_float_x2.h"
|
||||
#include <gnuradio/blocks/float_to_complex.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <string>
|
||||
|
||||
@@ -32,10 +32,10 @@
|
||||
*/
|
||||
|
||||
#include "gps_l5i_pcps_acquisition_fpga.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "gps_l5_signal.h"
|
||||
#include "GPS_L5.h"
|
||||
#include "configuration_interface.h"
|
||||
#include "gnss_sdr_flags.h"
|
||||
#include "gps_l5_signal.h"
|
||||
#include <boost/math/distributions/exponential.hpp>
|
||||
#include <glog/logging.h>
|
||||
|
||||
|
||||
@@ -35,11 +35,11 @@
|
||||
#define GNSS_SDR_GPS_L5i_PCPS_ACQUISITION_FPGA_H_
|
||||
|
||||
#include "acquisition_interface.h"
|
||||
#include "complex_byte_to_float_x2.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "pcps_acquisition_fpga.h"
|
||||
#include "complex_byte_to_float_x2.h"
|
||||
#include <gnuradio/blocks/stream_to_vector.h>
|
||||
#include <gnuradio/blocks/float_to_complex.h>
|
||||
#include <gnuradio/blocks/stream_to_vector.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <string>
|
||||
|
||||
|
||||
@@ -38,12 +38,12 @@
|
||||
#ifndef GALILEO_E5A_NONCOHERENT_IQ_ACQUISITION_CAF_CC_H_
|
||||
#define GALILEO_E5A_NONCOHERENT_IQ_ACQUISITION_CAF_CC_H_
|
||||
|
||||
#include "gnss_synchro.h"
|
||||
#include <gnuradio/block.h>
|
||||
#include <gnuradio/fft/fft.h>
|
||||
#include <gnuradio/gr_complex.h>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <gnuradio/block.h>
|
||||
#include <gnuradio/gr_complex.h>
|
||||
#include <gnuradio/fft/fft.h>
|
||||
#include "gnss_synchro.h"
|
||||
|
||||
class galileo_e5a_noncoherentIQ_acquisition_caf_cc;
|
||||
|
||||
|
||||
@@ -30,13 +30,13 @@
|
||||
*/
|
||||
|
||||
#include "galileo_pcps_8ms_acquisition_cc.h"
|
||||
#include <sstream>
|
||||
#include <utility>
|
||||
#include "control_message_factory.h"
|
||||
#include <glog/logging.h>
|
||||
#include <gnuradio/io_signature.h>
|
||||
#include <volk/volk.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include "control_message_factory.h"
|
||||
#include <sstream>
|
||||
#include <utility>
|
||||
|
||||
using google::LogMessage;
|
||||
|
||||
|
||||
@@ -32,12 +32,12 @@
|
||||
#ifndef GNSS_SDR_PCPS_8MS_ACQUISITION_CC_H_
|
||||
#define GNSS_SDR_PCPS_8MS_ACQUISITION_CC_H_
|
||||
|
||||
#include "gnss_synchro.h"
|
||||
#include <gnuradio/block.h>
|
||||
#include <gnuradio/fft/fft.h>
|
||||
#include <gnuradio/gr_complex.h>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <gnuradio/block.h>
|
||||
#include <gnuradio/gr_complex.h>
|
||||
#include <gnuradio/fft/fft.h>
|
||||
#include "gnss_synchro.h"
|
||||
|
||||
class galileo_pcps_8ms_acquisition_cc;
|
||||
|
||||
|
||||
@@ -52,8 +52,8 @@
|
||||
#ifndef GNSS_SDR_PCPS_ACQUISITION_H_
|
||||
#define GNSS_SDR_PCPS_ACQUISITION_H_
|
||||
|
||||
#include "gnss_synchro.h"
|
||||
#include "acq_conf.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include <armadillo>
|
||||
#include <gnuradio/block.h>
|
||||
#include <gnuradio/fft/fft.h>
|
||||
|
||||
@@ -31,18 +31,18 @@
|
||||
*/
|
||||
|
||||
#include "pcps_acquisition_fine_doppler_cc.h"
|
||||
#include "gps_sdr_signal_processing.h"
|
||||
#include "control_message_factory.h"
|
||||
#include "GPS_L1_CA.h"
|
||||
#include "control_message_factory.h"
|
||||
#include "gnss_sdr_create_directory.h"
|
||||
#include "gps_sdr_signal_processing.h"
|
||||
#include <boost/filesystem/path.hpp>
|
||||
#include <glog/logging.h>
|
||||
#include <gnuradio/io_signature.h>
|
||||
#include <matio.h>
|
||||
#include <volk/volk.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <algorithm> // std::rotate, std::fill_n
|
||||
#include <sstream>
|
||||
#include <matio.h>
|
||||
|
||||
|
||||
using google::LogMessage;
|
||||
|
||||
@@ -49,12 +49,12 @@
|
||||
#ifndef GNSS_SDR_PCPS_ACQUISITION_FINE_DOPPLER_CC_H_
|
||||
#define GNSS_SDR_PCPS_ACQUISITION_FINE_DOPPLER_CC_H_
|
||||
|
||||
#include "gnss_synchro.h"
|
||||
#include "acq_conf.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include <armadillo>
|
||||
#include <gnuradio/block.h>
|
||||
#include <gnuradio/gr_complex.h>
|
||||
#include <gnuradio/fft/fft.h>
|
||||
#include <gnuradio/gr_complex.h>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
|
||||
|
||||
@@ -39,9 +39,9 @@
|
||||
*/
|
||||
|
||||
|
||||
#include "pcps_acquisition_fpga.h"
|
||||
#include <glog/logging.h>
|
||||
#include <gnuradio/io_signature.h>
|
||||
#include "pcps_acquisition_fpga.h"
|
||||
|
||||
|
||||
#define AQ_DOWNSAMPLING_DELAY 40 // delay due to the downsampling filter in the acquisition
|
||||
|
||||
@@ -31,16 +31,16 @@
|
||||
*/
|
||||
|
||||
#include "pcps_assisted_acquisition_cc.h"
|
||||
#include <sstream>
|
||||
#include <utility>
|
||||
#include "GPS_L1_CA.h"
|
||||
#include "concurrent_map.h"
|
||||
#include "control_message_factory.h"
|
||||
#include "gps_acq_assist.h"
|
||||
#include <glog/logging.h>
|
||||
#include <gnuradio/io_signature.h>
|
||||
#include <volk/volk.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include "concurrent_map.h"
|
||||
#include "control_message_factory.h"
|
||||
#include "gps_acq_assist.h"
|
||||
#include "GPS_L1_CA.h"
|
||||
#include <sstream>
|
||||
#include <utility>
|
||||
|
||||
extern concurrent_map<Gps_Acq_Assist> global_gps_acq_assist_map;
|
||||
|
||||
|
||||
@@ -48,12 +48,12 @@
|
||||
#ifndef GNSS_SDR_PCPS_ASSISTED_ACQUISITION_CC_H_
|
||||
#define GNSS_SDR_PCPS_ASSISTED_ACQUISITION_CC_H_
|
||||
|
||||
#include "gnss_synchro.h"
|
||||
#include <gnuradio/block.h>
|
||||
#include <gnuradio/fft/fft.h>
|
||||
#include <gnuradio/gr_complex.h>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <gnuradio/block.h>
|
||||
#include <gnuradio/gr_complex.h>
|
||||
#include <gnuradio/fft/fft.h>
|
||||
#include "gnss_synchro.h"
|
||||
|
||||
class pcps_assisted_acquisition_cc;
|
||||
|
||||
|
||||
@@ -35,8 +35,8 @@
|
||||
*/
|
||||
|
||||
#include "pcps_cccwsr_acquisition_cc.h"
|
||||
#include "control_message_factory.h"
|
||||
#include "GPS_L1_CA.h" // GPS_TWO_PI
|
||||
#include "control_message_factory.h"
|
||||
#include <glog/logging.h>
|
||||
#include <gnuradio/io_signature.h>
|
||||
#include <volk/volk.h>
|
||||
|
||||
@@ -37,12 +37,12 @@
|
||||
#ifndef GNSS_SDR_PCPS_CCCWSR_ACQUISITION_CC_H_
|
||||
#define GNSS_SDR_PCPS_CCCWSR_ACQUISITION_CC_H_
|
||||
|
||||
#include "gnss_synchro.h"
|
||||
#include <gnuradio/block.h>
|
||||
#include <gnuradio/fft/fft.h>
|
||||
#include <gnuradio/gr_complex.h>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <gnuradio/block.h>
|
||||
#include <gnuradio/gr_complex.h>
|
||||
#include <gnuradio/fft/fft.h>
|
||||
#include "gnss_synchro.h"
|
||||
|
||||
|
||||
class pcps_cccwsr_acquisition_cc;
|
||||
|
||||
@@ -49,10 +49,10 @@
|
||||
*/
|
||||
|
||||
#include "pcps_opencl_acquisition_cc.h"
|
||||
#include "GPS_L1_CA.h" //GPS_TWO_PI
|
||||
#include "control_message_factory.h"
|
||||
#include "opencl/fft_base_kernels.h"
|
||||
#include "opencl/fft_internal.h"
|
||||
#include "GPS_L1_CA.h" //GPS_TWO_PI
|
||||
#include <glog/logging.h>
|
||||
#include <gnuradio/io_signature.h>
|
||||
#include <volk/volk.h>
|
||||
|
||||
@@ -54,8 +54,8 @@
|
||||
#include "gnss_synchro.h"
|
||||
#include "opencl/fft_internal.h"
|
||||
#include <gnuradio/block.h>
|
||||
#include <gnuradio/gr_complex.h>
|
||||
#include <gnuradio/fft/fft.h>
|
||||
#include <gnuradio/gr_complex.h>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -29,10 +29,10 @@
|
||||
*/
|
||||
|
||||
#include "pcps_quicksync_acquisition_cc.h"
|
||||
#include "control_message_factory.h"
|
||||
#include "GPS_L1_CA.h"
|
||||
#include <gnuradio/io_signature.h>
|
||||
#include "control_message_factory.h"
|
||||
#include <glog/logging.h>
|
||||
#include <gnuradio/io_signature.h>
|
||||
#include <volk/volk.h>
|
||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||
#include <cmath>
|
||||
|
||||
@@ -53,13 +53,13 @@
|
||||
|
||||
#include "gnss_synchro.h"
|
||||
#include <gnuradio/block.h>
|
||||
#include <gnuradio/gr_complex.h>
|
||||
#include <gnuradio/fft/fft.h>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <gnuradio/gr_complex.h>
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
#include <cassert>
|
||||
#include <fstream>
|
||||
#include <functional>
|
||||
#include <string>
|
||||
|
||||
class pcps_quicksync_acquisition_cc;
|
||||
|
||||
@@ -90,17 +90,17 @@ class pcps_quicksync_acquisition_cc : public gr::block
|
||||
{
|
||||
private:
|
||||
friend pcps_quicksync_acquisition_cc_sptr
|
||||
pcps_quicksync_make_acquisition_cc(uint32_t folding_factor,
|
||||
uint32_t sampled_ms, uint32_t max_dwells,
|
||||
uint32_t doppler_max, int64_t fs_in,
|
||||
pcps_quicksync_make_acquisition_cc(uint32_t folding_factor,
|
||||
uint32_t sampled_ms, uint32_t max_dwells,
|
||||
uint32_t doppler_max, int64_t fs_in,
|
||||
int32_t samples_per_ms, int32_t samples_per_code,
|
||||
bool bit_transition_flag,
|
||||
bool dump,
|
||||
std::string dump_filename);
|
||||
|
||||
pcps_quicksync_acquisition_cc(uint32_t folding_factor,
|
||||
uint32_t sampled_ms, uint32_t max_dwells,
|
||||
uint32_t doppler_max, int64_t fs_in,
|
||||
pcps_quicksync_acquisition_cc(uint32_t folding_factor,
|
||||
uint32_t sampled_ms, uint32_t max_dwells,
|
||||
uint32_t doppler_max, int64_t fs_in,
|
||||
int32_t samples_per_ms, int32_t samples_per_code,
|
||||
bool bit_transition_flag,
|
||||
bool dump,
|
||||
@@ -110,36 +110,36 @@ private:
|
||||
int32_t doppler_offset);
|
||||
|
||||
gr_complex* d_code;
|
||||
uint32_t d_folding_factor; // also referred in the paper as 'p'
|
||||
uint32_t d_folding_factor; // also referred in the paper as 'p'
|
||||
float* d_corr_acumulator;
|
||||
uint32_t * d_possible_delay;
|
||||
uint32_t* d_possible_delay;
|
||||
float* d_corr_output_f;
|
||||
float* d_magnitude_folded;
|
||||
gr_complex* d_signal_folded;
|
||||
gr_complex* d_code_folded;
|
||||
float d_noise_floor_power;
|
||||
|
||||
int64_t d_fs_in;
|
||||
int64_t d_fs_in;
|
||||
int32_t d_samples_per_ms;
|
||||
int32_t d_samples_per_code;
|
||||
uint32_t d_doppler_resolution;
|
||||
uint32_t d_doppler_resolution;
|
||||
float d_threshold;
|
||||
std::string d_satellite_str;
|
||||
uint32_t d_doppler_max;
|
||||
uint32_t d_doppler_step;
|
||||
uint32_t d_sampled_ms;
|
||||
uint32_t d_max_dwells;
|
||||
uint32_t d_well_count;
|
||||
uint32_t d_fft_size;
|
||||
uint32_t d_doppler_max;
|
||||
uint32_t d_doppler_step;
|
||||
uint32_t d_sampled_ms;
|
||||
uint32_t d_max_dwells;
|
||||
uint32_t d_well_count;
|
||||
uint32_t d_fft_size;
|
||||
uint64_t d_sample_counter;
|
||||
gr_complex** d_grid_doppler_wipeoffs;
|
||||
uint32_t d_num_doppler_bins;
|
||||
uint32_t d_num_doppler_bins;
|
||||
gr_complex* d_fft_codes;
|
||||
gr::fft::fft_complex* d_fft_if;
|
||||
gr::fft::fft_complex* d_fft_if2;
|
||||
gr::fft::fft_complex* d_ifft;
|
||||
Gnss_Synchro* d_gnss_synchro;
|
||||
uint32_t d_code_phase;
|
||||
uint32_t d_code_phase;
|
||||
float d_doppler_freq;
|
||||
float d_mag;
|
||||
float* d_magnitude;
|
||||
@@ -150,7 +150,7 @@ private:
|
||||
bool d_active;
|
||||
int32_t d_state;
|
||||
bool d_dump;
|
||||
uint32_t d_channel;
|
||||
uint32_t d_channel;
|
||||
std::string d_dump_filename;
|
||||
|
||||
public:
|
||||
@@ -172,7 +172,7 @@ public:
|
||||
/*!
|
||||
* \brief Returns the maximum peak of grid search.
|
||||
*/
|
||||
inline uint32_t mag() const
|
||||
inline uint32_t mag() const
|
||||
{
|
||||
return d_mag;
|
||||
}
|
||||
@@ -209,7 +209,7 @@ public:
|
||||
* \brief Set acquisition channel unique ID
|
||||
* \param channel - receiver channel.
|
||||
*/
|
||||
inline void set_channel(uint32_t channel)
|
||||
inline void set_channel(uint32_t channel)
|
||||
{
|
||||
d_channel = channel;
|
||||
}
|
||||
@@ -228,7 +228,7 @@ public:
|
||||
* \brief Set maximum Doppler grid search
|
||||
* \param doppler_max - Maximum Doppler shift considered in the grid search [Hz].
|
||||
*/
|
||||
inline void set_doppler_max(uint32_t doppler_max)
|
||||
inline void set_doppler_max(uint32_t doppler_max)
|
||||
{
|
||||
d_doppler_max = doppler_max;
|
||||
}
|
||||
@@ -237,7 +237,7 @@ public:
|
||||
* \brief Set Doppler steps for the grid search
|
||||
* \param doppler_step - Frequency bin of the search grid [Hz].
|
||||
*/
|
||||
inline void set_doppler_step(uint32_t doppler_step)
|
||||
inline void set_doppler_step(uint32_t doppler_step)
|
||||
{
|
||||
d_doppler_step = doppler_step;
|
||||
}
|
||||
|
||||
@@ -49,8 +49,8 @@
|
||||
*/
|
||||
|
||||
#include "pcps_tong_acquisition_cc.h"
|
||||
#include "control_message_factory.h"
|
||||
#include "GPS_L1_CA.h" // for GPS_TWO_PI
|
||||
#include "control_message_factory.h"
|
||||
#include <glog/logging.h>
|
||||
#include <gnuradio/io_signature.h>
|
||||
#include <volk/volk.h>
|
||||
|
||||
@@ -53,8 +53,8 @@
|
||||
|
||||
#include "gnss_synchro.h"
|
||||
#include <gnuradio/block.h>
|
||||
#include <gnuradio/gr_complex.h>
|
||||
#include <gnuradio/fft/fft.h>
|
||||
#include <gnuradio/gr_complex.h>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
|
||||
|
||||
@@ -37,8 +37,8 @@
|
||||
#include "GPS_L1_CA.h"
|
||||
#include "gps_sdr_signal_processing.h"
|
||||
#include <glog/logging.h>
|
||||
#include <fcntl.h> // libraries used by the GIPO
|
||||
#include <iostream>
|
||||
#include <fcntl.h> // libraries used by the GIPO
|
||||
#include <sys/mman.h> // libraries used by the GIPO
|
||||
|
||||
|
||||
|
||||
@@ -35,15 +35,15 @@
|
||||
#ifndef GNSS_SDR_CHANNEL_H_
|
||||
#define GNSS_SDR_CHANNEL_H_
|
||||
|
||||
#include "channel_interface.h"
|
||||
#include "channel_fsm.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include "channel_interface.h"
|
||||
#include "channel_msg_receiver_cc.h"
|
||||
#include <gnuradio/msg_queue.h>
|
||||
#include "gnss_synchro.h"
|
||||
#include <gnuradio/block.h>
|
||||
#include <gnuradio/msg_queue.h>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <mutex>
|
||||
#include <string>
|
||||
|
||||
class ConfigurationInterface;
|
||||
class AcquisitionInterface;
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
#define GNSS_SDR_CHANNEL_FSM_H
|
||||
|
||||
#include "acquisition_interface.h"
|
||||
#include "tracking_interface.h"
|
||||
#include "telemetry_decoder_interface.h"
|
||||
#include "tracking_interface.h"
|
||||
#include <gnuradio/msg_queue.h>
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
|
||||
@@ -30,9 +30,9 @@
|
||||
|
||||
|
||||
#include "channel_msg_receiver_cc.h"
|
||||
#include <glog/logging.h>
|
||||
#include <gnuradio/gr_complex.h>
|
||||
#include <gnuradio/io_signature.h>
|
||||
#include <glog/logging.h>
|
||||
#include <cstdint>
|
||||
|
||||
using google::LogMessage;
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
|
||||
#include "array_signal_conditioner.h"
|
||||
#include <glog/logging.h>
|
||||
|
||||
#include <utility>
|
||||
|
||||
|
||||
|
||||
@@ -33,9 +33,9 @@
|
||||
#define GNSS_SDR_ARRAY_SIGNAL_CONDITIONER_H_
|
||||
|
||||
|
||||
#include <string>
|
||||
#include <gnuradio/msg_queue.h>
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/msg_queue.h>
|
||||
#include <string>
|
||||
|
||||
|
||||
class ConfigurationInterface;
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
|
||||
#include "signal_conditioner.h"
|
||||
#include <glog/logging.h>
|
||||
|
||||
#include <utility>
|
||||
|
||||
|
||||
|
||||
@@ -34,8 +34,8 @@
|
||||
#include "conjugate_cc.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include <gnuradio/blocks/interleaved_char_to_complex.h>
|
||||
#include <gnuradio/blocks/file_sink.h>
|
||||
#include <gnuradio/blocks/interleaved_char_to_complex.h>
|
||||
#include <string>
|
||||
|
||||
class ConfigurationInterface;
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
#define GNSS_SDR_IBYTE_TO_CSHORT_H_
|
||||
|
||||
#include "conjugate_sc.h"
|
||||
#include "interleaved_byte_to_complex_short.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include "interleaved_byte_to_complex_short.h"
|
||||
#include <gnuradio/blocks/file_sink.h>
|
||||
#include <string>
|
||||
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
|
||||
#include "conjugate_cc.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include <gnuradio/blocks/interleaved_short_to_complex.h>
|
||||
#include <gnuradio/blocks/file_sink.h>
|
||||
#include <gnuradio/blocks/interleaved_short_to_complex.h>
|
||||
#include <string>
|
||||
|
||||
class ConfigurationInterface;
|
||||
|
||||
@@ -31,10 +31,10 @@
|
||||
|
||||
#include "fir_filter.h"
|
||||
#include "configuration_interface.h"
|
||||
#include <utility>
|
||||
#include <gnuradio/filter/pm_remez.h>
|
||||
#include <glog/logging.h>
|
||||
#include <gnuradio/filter/pm_remez.h>
|
||||
#include <volk/volk.h>
|
||||
#include <utility>
|
||||
|
||||
|
||||
using google::LogMessage;
|
||||
|
||||
@@ -33,16 +33,16 @@
|
||||
#ifndef GNSS_SDR_FIR_FILTER_H_
|
||||
#define GNSS_SDR_FIR_FILTER_H_
|
||||
|
||||
#include "gnss_block_interface.h"
|
||||
#include "complex_byte_to_float_x2.h"
|
||||
#include "byte_x2_to_complex_byte.h"
|
||||
#include "short_x2_to_cshort.h"
|
||||
#include "complex_byte_to_float_x2.h"
|
||||
#include "cshort_to_float_x2.h"
|
||||
#include <gnuradio/gr_complex.h>
|
||||
#include "gnss_block_interface.h"
|
||||
#include "short_x2_to_cshort.h"
|
||||
#include <gnuradio/blocks/file_sink.h>
|
||||
#include <gnuradio/blocks/float_to_char.h>
|
||||
#include <gnuradio/blocks/float_to_complex.h>
|
||||
#include <gnuradio/blocks/float_to_short.h>
|
||||
#include <gnuradio/gr_complex.h>
|
||||
#ifdef GR_GREATER_38
|
||||
#include <gnuradio/filter/fir_filter_blk.h>
|
||||
#else
|
||||
|
||||
@@ -31,12 +31,12 @@
|
||||
|
||||
#include "freq_xlating_fir_filter.h"
|
||||
#include "configuration_interface.h"
|
||||
#include <utility>
|
||||
#include <gnuradio/blocks/file_sink.h>
|
||||
#include <gnuradio/filter/pm_remez.h>
|
||||
#include <gnuradio/filter/firdes.h>
|
||||
#include <glog/logging.h>
|
||||
#include <gnuradio/blocks/file_sink.h>
|
||||
#include <gnuradio/filter/firdes.h>
|
||||
#include <gnuradio/filter/pm_remez.h>
|
||||
#include <volk/volk.h>
|
||||
#include <utility>
|
||||
|
||||
using google::LogMessage;
|
||||
|
||||
|
||||
@@ -33,9 +33,9 @@
|
||||
#ifndef GNSS_SDR_FREQ_XLATING_FIR_FILTER_H_
|
||||
#define GNSS_SDR_FREQ_XLATING_FIR_FILTER_H_
|
||||
|
||||
#include "complex_float_to_complex_byte.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include "short_x2_to_cshort.h"
|
||||
#include "complex_float_to_complex_byte.h"
|
||||
#ifdef GR_GREATER_38
|
||||
#include <gnuradio/filter/freq_xlating_fir_filter.h>
|
||||
#else
|
||||
@@ -43,9 +43,9 @@
|
||||
#include <gnuradio/filter/freq_xlating_fir_filter_fcf.h>
|
||||
#include <gnuradio/filter/freq_xlating_fir_filter_scf.h>
|
||||
#endif
|
||||
#include <gnuradio/blocks/file_sink.h>
|
||||
#include <gnuradio/blocks/complex_to_float.h>
|
||||
#include <gnuradio/blocks/char_to_short.h>
|
||||
#include <gnuradio/blocks/complex_to_float.h>
|
||||
#include <gnuradio/blocks/file_sink.h>
|
||||
#include <gnuradio/blocks/float_to_short.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
#ifndef GNSS_SDR_NOTCH_FILTER_H_
|
||||
#define GNSS_SDR_NOTCH_FILTER_H_
|
||||
|
||||
#include "notch_cc.h"
|
||||
#include "gnss_block_interface.h"
|
||||
#include "notch_cc.h"
|
||||
#include <gnuradio/blocks/file_sink.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@@ -33,9 +33,9 @@
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <glog/logging.h>
|
||||
#include <gnuradio/filter/firdes.h>
|
||||
#include <cmath>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
#include <cmath>
|
||||
|
||||
using google::LogMessage;
|
||||
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
#include <glog/logging.h>
|
||||
#include <gnuradio/io_signature.h>
|
||||
#include <volk/volk.h>
|
||||
#include <cstring>
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
|
||||
using google::LogMessage;
|
||||
|
||||
@@ -86,7 +86,7 @@ Notch::~Notch()
|
||||
|
||||
void Notch::forecast(int noutput_items __attribute__((unused)), gr_vector_int &ninput_items_required)
|
||||
{
|
||||
for (int & aux : ninput_items_required)
|
||||
for (int &aux : ninput_items_required)
|
||||
{
|
||||
aux = length_;
|
||||
}
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
#include <glog/logging.h>
|
||||
#include <gnuradio/io_signature.h>
|
||||
#include <volk/volk.h>
|
||||
#include <cstring>
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
|
||||
using google::LogMessage;
|
||||
|
||||
@@ -89,7 +89,7 @@ NotchLite::~NotchLite()
|
||||
|
||||
void NotchLite::forecast(int noutput_items __attribute__((unused)), gr_vector_int &ninput_items_required)
|
||||
{
|
||||
for (int & aux : ninput_items_required)
|
||||
for (int &aux : ninput_items_required)
|
||||
{
|
||||
aux = length_;
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ pulse_blanking_cc::~pulse_blanking_cc()
|
||||
|
||||
void pulse_blanking_cc::forecast(int noutput_items __attribute__((unused)), gr_vector_int &ninput_items_required)
|
||||
{
|
||||
for (int & aux : ninput_items_required)
|
||||
for (int &aux : ninput_items_required)
|
||||
{
|
||||
aux = length_;
|
||||
}
|
||||
|
||||
@@ -236,7 +236,7 @@ void galileo_e1_code_gen_complex_sampled(std::complex<float>* _dest, char _Signa
|
||||
std::string _galileo_signal = _Signal;
|
||||
const int32_t _codeFreqBasis = Galileo_E1_CODE_CHIP_RATE_HZ; // Hz
|
||||
auto _samplesPerCode = static_cast<uint32_t>(static_cast<double>(_fs) /
|
||||
(static_cast<double>(_codeFreqBasis) / static_cast<double>(Galileo_E1_B_CODE_LENGTH_CHIPS)));
|
||||
(static_cast<double>(_codeFreqBasis) / static_cast<double>(Galileo_E1_B_CODE_LENGTH_CHIPS)));
|
||||
|
||||
if (_galileo_signal.rfind("1C") != std::string::npos && _galileo_signal.length() >= 2 && _secondary_flag)
|
||||
{
|
||||
|
||||
@@ -33,8 +33,9 @@
|
||||
|
||||
#ifndef GNSS_SDR_CIRCULAR_DEQUE_H_
|
||||
#define GNSS_SDR_CIRCULAR_DEQUE_H_
|
||||
#include <vector>
|
||||
|
||||
#include <boost/circular_buffer.hpp>
|
||||
#include <vector>
|
||||
|
||||
template <class T>
|
||||
class Gnss_circular_deque
|
||||
|
||||
@@ -31,22 +31,23 @@
|
||||
|
||||
#include "gnss_sdr_fpga_sample_counter.h"
|
||||
#include "gnss_synchro.h"
|
||||
#include <glog/logging.h>
|
||||
#include <gnuradio/io_signature.h>
|
||||
#include <cmath>
|
||||
#include <fcntl.h> // libraries used by the GIPO
|
||||
#include <inttypes.h>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <glog/logging.h>
|
||||
#include <fcntl.h> // libraries used by the GIPO
|
||||
#include <sys/mman.h> // libraries used by the GIPO
|
||||
|
||||
#include <inttypes.h>
|
||||
#define PAGE_SIZE 0x10000 // default page size for the multicorrelator memory map
|
||||
#define TEST_REG_SANITY_CHECK 0x55AA // value to check the presence of the test register (to detect the hw)
|
||||
|
||||
#define PAGE_SIZE 0x10000 // default page size for the multicorrelator memory map
|
||||
#define TEST_REG_SANITY_CHECK 0x55AA // value to check the presence of the test register (to detect the hw)
|
||||
|
||||
gnss_sdr_fpga_sample_counter::gnss_sdr_fpga_sample_counter(double _fs, int32_t _interval_ms) : gr::block("fpga_fpga_sample_counter",
|
||||
gr::io_signature::make(0, 0, 0),
|
||||
gr::io_signature::make(1, 1, sizeof(Gnss_Synchro)))
|
||||
gnss_sdr_fpga_sample_counter::gnss_sdr_fpga_sample_counter(
|
||||
double _fs,
|
||||
int32_t _interval_ms) : gr::block("fpga_fpga_sample_counter",
|
||||
gr::io_signature::make(0, 0, 0),
|
||||
gr::io_signature::make(1, 1, sizeof(Gnss_Synchro)))
|
||||
{
|
||||
message_port_register_out(pmt::mp("fpga_sample_counter"));
|
||||
set_max_noutput_items(1);
|
||||
@@ -88,10 +89,10 @@ bool gnss_sdr_fpga_sample_counter::start()
|
||||
{
|
||||
//todo: place here the RE-INITIALIZATION routines. This function will be called by GNURadio at every start of the flowgraph.
|
||||
|
||||
// configure the number of samples per output in the FPGA and enable the interrupts
|
||||
// configure the number of samples per output in the FPGA and enable the interrupts
|
||||
configure_samples_per_output(samples_per_output);
|
||||
|
||||
// return true if everything is ok.
|
||||
// return true if everything is ok.
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -101,7 +102,7 @@ bool gnss_sdr_fpga_sample_counter::stop()
|
||||
{
|
||||
//todo: place here the routines to stop the associated hardware (if needed).This function will be called by GNURadio at every stop of the flowgraph.
|
||||
// return true if everything is ok.
|
||||
close_device();
|
||||
close_device();
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -119,15 +120,15 @@ int gnss_sdr_fpga_sample_counter::general_work(int noutput_items __attribute__((
|
||||
// Possible problem: what happen if the PS is overloaded and gnuradio does not call this function
|
||||
// with the sufficient rate to catch all the interrupts in the counter. To be evaluated later.
|
||||
|
||||
uint32_t counter = wait_for_interrupt_and_read_counter();
|
||||
uint64_t samples_passed = 2*static_cast<uint64_t>(samples_per_output) - static_cast<uint64_t>(counter); // ellapsed samples
|
||||
//printf("============================================ interrupter : samples_passed = %" PRIu64 "\n", samples_passed);
|
||||
// Note: at this moment the sample counter is implemented as a sample counter that decreases to zero and then it is automatically
|
||||
// reloaded again and keeps counter. It is done in this way to minimize the logic in the FPGA and maximize the FPGA clock performance
|
||||
// (it takes less resources and latency in the FPGA to compare a number against a fixed value like zero than to compare it to a programmable
|
||||
// variable number).
|
||||
uint32_t counter = wait_for_interrupt_and_read_counter();
|
||||
uint64_t samples_passed = 2 * static_cast<uint64_t>(samples_per_output) - static_cast<uint64_t>(counter); // ellapsed samples
|
||||
//printf("============================================ interrupter : samples_passed = %" PRIu64 "\n", samples_passed);
|
||||
// Note: at this moment the sample counter is implemented as a sample counter that decreases to zero and then it is automatically
|
||||
// reloaded again and keeps counter. It is done in this way to minimize the logic in the FPGA and maximize the FPGA clock performance
|
||||
// (it takes less resources and latency in the FPGA to compare a number against a fixed value like zero than to compare it to a programmable
|
||||
// variable number).
|
||||
|
||||
sample_counter = sample_counter + samples_passed; //samples_per_output;
|
||||
sample_counter = sample_counter + samples_passed; //samples_per_output;
|
||||
Gnss_Synchro *out = reinterpret_cast<Gnss_Synchro *>(output_items[0]);
|
||||
out[0] = Gnss_Synchro();
|
||||
out[0].Flag_valid_symbol_output = false;
|
||||
@@ -136,11 +137,11 @@ int gnss_sdr_fpga_sample_counter::general_work(int noutput_items __attribute__((
|
||||
out[0].fs = fs;
|
||||
if ((current_T_rx_ms % report_interval_ms) == 0)
|
||||
{
|
||||
//printf("time to print sample_counter = %" PRIu64 "\n", sample_counter);
|
||||
//printf("time to print current Tx ms : %" PRIu64 "\n", current_T_rx_ms);
|
||||
//printf("time to print report_interval_ms : %" PRIu32 "\n", report_interval_ms);
|
||||
//printf("time to print %f\n", (current_T_rx_ms % report_interval_ms));
|
||||
current_s++;
|
||||
//printf("time to print sample_counter = %" PRIu64 "\n", sample_counter);
|
||||
//printf("time to print current Tx ms : %" PRIu64 "\n", current_T_rx_ms);
|
||||
//printf("time to print report_interval_ms : %" PRIu32 "\n", report_interval_ms);
|
||||
//printf("time to print %f\n", (current_T_rx_ms % report_interval_ms));
|
||||
current_s++;
|
||||
if ((current_s % 60) == 0)
|
||||
{
|
||||
current_s = 0;
|
||||
@@ -198,7 +199,7 @@ int gnss_sdr_fpga_sample_counter::general_work(int noutput_items __attribute__((
|
||||
}
|
||||
out[0].Tracking_sample_counter = sample_counter;
|
||||
//current_T_rx_ms = (sample_counter * 1000) / samples_per_output;
|
||||
current_T_rx_ms = interval_ms*(sample_counter) / samples_per_output;
|
||||
current_T_rx_ms = interval_ms * (sample_counter) / samples_per_output;
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -215,16 +216,16 @@ uint32_t gnss_sdr_fpga_sample_counter::test_register(uint32_t writeval)
|
||||
|
||||
void gnss_sdr_fpga_sample_counter::configure_samples_per_output(uint32_t interval)
|
||||
{
|
||||
// note : the counter is a 48-bit value in the HW.
|
||||
//printf("============================================ total counter - interrupted interval : %" PRIu32 "\n", interval);
|
||||
//uint64_t temp_interval;
|
||||
//temp_interval = (interval & static_cast<uint32_t>(0xFFFFFFFF));
|
||||
//printf("LSW counter - interrupted interval : %" PRIu32 "\n", static_cast<uint32_t>(temp_interval));
|
||||
//map_base[0] = static_cast<uint32_t>(temp_interval);
|
||||
map_base[0] = interval - 1;
|
||||
//temp_interval = (interval >> 32) & static_cast<uint32_t>(0xFFFFFFFF);
|
||||
//printf("MSbits counter - interrupted interval : %" PRIu32 "\n", static_cast<uint32_t>(temp_interval));
|
||||
//map_base[1] = static_cast<uint32_t>(temp_interval); // writing the most significant bits also enables the interrupts
|
||||
// note : the counter is a 48-bit value in the HW.
|
||||
//printf("============================================ total counter - interrupted interval : %" PRIu32 "\n", interval);
|
||||
//uint64_t temp_interval;
|
||||
//temp_interval = (interval & static_cast<uint32_t>(0xFFFFFFFF));
|
||||
//printf("LSW counter - interrupted interval : %" PRIu32 "\n", static_cast<uint32_t>(temp_interval));
|
||||
//map_base[0] = static_cast<uint32_t>(temp_interval);
|
||||
map_base[0] = interval - 1;
|
||||
//temp_interval = (interval >> 32) & static_cast<uint32_t>(0xFFFFFFFF);
|
||||
//printf("MSbits counter - interrupted interval : %" PRIu32 "\n", static_cast<uint32_t>(temp_interval));
|
||||
//map_base[1] = static_cast<uint32_t>(temp_interval); // writing the most significant bits also enables the interrupts
|
||||
}
|
||||
|
||||
void gnss_sdr_fpga_sample_counter::open_device()
|
||||
@@ -261,8 +262,8 @@ void gnss_sdr_fpga_sample_counter::open_device()
|
||||
|
||||
void gnss_sdr_fpga_sample_counter::close_device()
|
||||
{
|
||||
//printf("=========================================== NOW closing device ...\n");
|
||||
map_base[2] = 0; // disable the generation of the interrupt in the device
|
||||
//printf("=========================================== NOW closing device ...\n");
|
||||
map_base[2] = 0; // disable the generation of the interrupt in the device
|
||||
|
||||
uint32_t *aux = const_cast<uint32_t *>(map_base);
|
||||
if (munmap(static_cast<void *>(aux), PAGE_SIZE) == -1)
|
||||
@@ -294,12 +295,9 @@ uint32_t gnss_sdr_fpga_sample_counter::wait_for_interrupt_and_read_counter()
|
||||
}
|
||||
|
||||
// acknowledge the interrupt
|
||||
map_base[1] = 0; // writing anything to reg 1 acknowledges the interrupt
|
||||
map_base[1] = 0; // writing anything to reg 1 acknowledges the interrupt
|
||||
|
||||
// add number of passed samples or read the current counter value for more accuracy
|
||||
counter = samples_per_output; //map_base[0];
|
||||
counter = samples_per_output; //map_base[0];
|
||||
return counter;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
#ifndef GNSS_SDR_FPGA_sample_counter_H_
|
||||
#define GNSS_SDR_FPGA_sample_counter_H_
|
||||
|
||||
#include <gnuradio/block.h>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <gnuradio/block.h>
|
||||
#include <cstdint>
|
||||
|
||||
class gnss_sdr_fpga_sample_counter;
|
||||
@@ -57,18 +57,18 @@ private:
|
||||
uint64_t sample_counter;
|
||||
uint32_t interval_ms;
|
||||
uint64_t current_T_rx_ms; // Receiver time in ms since the beginning of the run
|
||||
uint32_t current_s; // Receiver time in seconds, modulo 60
|
||||
bool flag_m; // True if the receiver has been running for at least 1 minute
|
||||
uint32_t current_m; // Receiver time in minutes, modulo 60
|
||||
bool flag_h; // True if the receiver has been running for at least 1 hour
|
||||
uint32_t current_h; // Receiver time in hours, modulo 24
|
||||
bool flag_days; // True if the receiver has been running for at least 1 day
|
||||
uint32_t current_days; // Receiver time in days since the beginning of the run
|
||||
uint32_t current_s; // Receiver time in seconds, modulo 60
|
||||
bool flag_m; // True if the receiver has been running for at least 1 minute
|
||||
uint32_t current_m; // Receiver time in minutes, modulo 60
|
||||
bool flag_h; // True if the receiver has been running for at least 1 hour
|
||||
uint32_t current_h; // Receiver time in hours, modulo 24
|
||||
bool flag_days; // True if the receiver has been running for at least 1 day
|
||||
uint32_t current_days; // Receiver time in days since the beginning of the run
|
||||
int32_t report_interval_ms;
|
||||
bool flag_enable_send_msg;
|
||||
int32_t fd; // driver descriptor
|
||||
volatile uint32_t *map_base; // driver memory map
|
||||
std::string device_name = "/dev/uio26"; // HW device name
|
||||
int32_t fd; // driver descriptor
|
||||
volatile uint32_t *map_base; // driver memory map
|
||||
std::string device_name = "/dev/uio26"; // HW device name
|
||||
|
||||
public:
|
||||
friend gnss_sdr_fpga_sample_counter_sptr gnss_sdr_make_fpga_sample_counter(double _fs, int32_t _interval_ms);
|
||||
|
||||
@@ -36,10 +36,13 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
gnss_sdr_sample_counter::gnss_sdr_sample_counter(double _fs, int32_t _interval_ms, size_t _size) : gr::sync_decimator("sample_counter",
|
||||
gr::io_signature::make(1, 1, _size),
|
||||
gr::io_signature::make(1, 1, sizeof(Gnss_Synchro)),
|
||||
static_cast<uint32_t>(std::round(_fs * static_cast<double>(_interval_ms) / 1e3)))
|
||||
gnss_sdr_sample_counter::gnss_sdr_sample_counter(
|
||||
double _fs,
|
||||
int32_t _interval_ms,
|
||||
size_t _size) : gr::sync_decimator("sample_counter",
|
||||
gr::io_signature::make(1, 1, _size),
|
||||
gr::io_signature::make(1, 1, sizeof(Gnss_Synchro)),
|
||||
static_cast<uint32_t>(std::round(_fs * static_cast<double>(_interval_ms) / 1e3)))
|
||||
{
|
||||
message_port_register_out(pmt::mp("sample_counter"));
|
||||
set_max_noutput_items(1);
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
#ifndef GNSS_SDR_SAMPLE_COUNTER_H_
|
||||
#define GNSS_SDR_SAMPLE_COUNTER_H_
|
||||
|
||||
#include <gnuradio/sync_decimator.h>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <gnuradio/sync_decimator.h>
|
||||
#include <cstdint>
|
||||
|
||||
|
||||
@@ -40,7 +40,10 @@ class gnss_sdr_sample_counter;
|
||||
|
||||
typedef boost::shared_ptr<gnss_sdr_sample_counter> gnss_sdr_sample_counter_sptr;
|
||||
|
||||
gnss_sdr_sample_counter_sptr gnss_sdr_make_sample_counter(double _fs, int32_t _interval_ms, size_t _size);
|
||||
gnss_sdr_sample_counter_sptr gnss_sdr_make_sample_counter(
|
||||
double _fs,
|
||||
int32_t _interval_ms,
|
||||
size_t _size);
|
||||
|
||||
class gnss_sdr_sample_counter : public gr::sync_decimator
|
||||
{
|
||||
|
||||
@@ -61,7 +61,7 @@ gnss_sdr_time_counter_sptr gnss_sdr_make_time_counter()
|
||||
|
||||
|
||||
int gnss_sdr_time_counter::general_work(int noutput_items __attribute__((unused)), gr_vector_int &ninput_items __attribute__((unused)),
|
||||
gr_vector_const_void_star &input_items __attribute__((unused)), gr_vector_void_star &output_items)
|
||||
gr_vector_const_void_star &input_items __attribute__((unused)), gr_vector_void_star &output_items)
|
||||
{
|
||||
Gnss_Synchro *out = reinterpret_cast<Gnss_Synchro *>(output_items[0]);
|
||||
const Gnss_Synchro *in = reinterpret_cast<const Gnss_Synchro *>(input_items[0]);
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
#ifndef GNSS_SDR_TIME_COUNTER_H_
|
||||
#define GNSS_SDR_TIME_COUNTER_H_
|
||||
|
||||
#include <gnuradio/block.h>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <gnuradio/block.h>
|
||||
#include <cstdint>
|
||||
|
||||
class gnss_sdr_time_counter;
|
||||
|
||||
@@ -34,9 +34,9 @@
|
||||
#ifndef GNSS_SDR_GNSS_SDR_VALVE_H_
|
||||
#define GNSS_SDR_GNSS_SDR_VALVE_H_
|
||||
|
||||
#include <gnuradio/sync_block.h>
|
||||
#include <gnuradio/msg_queue.h>
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <gnuradio/msg_queue.h>
|
||||
#include <gnuradio/sync_block.h>
|
||||
#include <cstdint>
|
||||
|
||||
boost::shared_ptr<gr::block> gnss_sdr_make_valve(size_t sizeof_stream_item,
|
||||
|
||||
@@ -23,15 +23,15 @@
|
||||
|
||||
/*! \file
|
||||
*
|
||||
* \brief C++ bindings for OpenCL 1.0 (rev 48), OpenCL 1.1 (rev 33) and
|
||||
* OpenCL 1.2 (rev 15)
|
||||
* \brief C++ bindings for OpenCL 1.0 (rev 48), OpenCL 1.1 (rev 33) and
|
||||
* OpenCL 1.2 (rev 15)
|
||||
* \author Benedict R. Gaster, Laurent Morichetti and Lee Howes
|
||||
*
|
||||
*
|
||||
* Additions and fixes from:
|
||||
* Brian Cole, March 3rd 2010 and April 2012
|
||||
* Brian Cole, March 3rd 2010 and April 2012
|
||||
* Matt Gruenke, April 2012.
|
||||
* Bruce Merry, February 2013.
|
||||
*
|
||||
*
|
||||
* \version 1.2.5
|
||||
* \date June 2013
|
||||
*
|
||||
@@ -71,7 +71,7 @@
|
||||
*
|
||||
* \code
|
||||
* #define __CL_ENABLE_EXCEPTIONS
|
||||
*
|
||||
*
|
||||
* #if defined(__APPLE__) || defined(__MACOSX)
|
||||
* #include <OpenCL/cl.hpp>
|
||||
* #else
|
||||
@@ -80,13 +80,13 @@
|
||||
* #include <cstdio>
|
||||
* #include <cstdlib>
|
||||
* #include <iostream>
|
||||
*
|
||||
*
|
||||
* const char * helloStr = "__kernel void "
|
||||
* "hello(void) "
|
||||
* "{ "
|
||||
* " "
|
||||
* "} ";
|
||||
*
|
||||
*
|
||||
* int
|
||||
* main(void)
|
||||
* {
|
||||
@@ -100,33 +100,33 @@
|
||||
* return -1;
|
||||
* }
|
||||
*
|
||||
* cl_context_properties properties[] =
|
||||
* cl_context_properties properties[] =
|
||||
* { CL_CONTEXT_PLATFORM, (cl_context_properties)(platforms[0])(), 0};
|
||||
* cl::Context context(CL_DEVICE_TYPE_CPU, properties);
|
||||
*
|
||||
* cl::Context context(CL_DEVICE_TYPE_CPU, properties);
|
||||
*
|
||||
* std::vector<cl::Device> devices = context.getInfo<CL_CONTEXT_DEVICES>();
|
||||
*
|
||||
*
|
||||
* cl::Program::Sources source(1,
|
||||
* std::make_pair(helloStr,strlen(helloStr)));
|
||||
* cl::Program program_ = cl::Program(context, source);
|
||||
* program_.build(devices);
|
||||
*
|
||||
*
|
||||
* cl::Kernel kernel(program_, "hello", &err);
|
||||
*
|
||||
*
|
||||
* cl::Event event;
|
||||
* cl::CommandQueue queue(context, devices[0], 0, &err);
|
||||
* queue.enqueueNDRangeKernel(
|
||||
* kernel,
|
||||
* cl::NullRange,
|
||||
* kernel,
|
||||
* cl::NullRange,
|
||||
* cl::NDRange(4,4),
|
||||
* cl::NullRange,
|
||||
* NULL,
|
||||
* &event);
|
||||
*
|
||||
* &event);
|
||||
*
|
||||
* event.wait();
|
||||
* }
|
||||
* catch (cl::Error err) {
|
||||
* std::cerr
|
||||
* std::cerr
|
||||
* << "ERROR: "
|
||||
* << err.what()
|
||||
* << "("
|
||||
@@ -134,10 +134,10 @@
|
||||
* << ")"
|
||||
* << std::endl;
|
||||
* }
|
||||
*
|
||||
*
|
||||
* return EXIT_SUCCESS;
|
||||
* }
|
||||
*
|
||||
*
|
||||
* \endcode
|
||||
*
|
||||
*/
|
||||
@@ -146,10 +146,10 @@
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
#include <windows.h>
|
||||
#include <malloc.h>
|
||||
#include <iterator>
|
||||
#include <intrin.h>
|
||||
#include <iterator>
|
||||
#include <malloc.h>
|
||||
#include <windows.h>
|
||||
|
||||
#if defined(__CL_ENABLE_EXCEPTIONS)
|
||||
#include <exception>
|
||||
@@ -169,12 +169,12 @@
|
||||
#endif
|
||||
|
||||
#if defined(__APPLE__) || defined(__MACOSX)
|
||||
#include <OpenGL/OpenGL.h>
|
||||
#include <OpenCL/opencl.h>
|
||||
#include <OpenGL/OpenGL.h>
|
||||
#include <libkern/OSAtomic.h>
|
||||
#else
|
||||
#include <GL/gl.h>
|
||||
#include <CL/opencl.h>
|
||||
#include <GL/gl.h>
|
||||
#endif // !__APPLE__
|
||||
|
||||
// To avoid accidentally taking ownership of core OpenCL types
|
||||
@@ -199,8 +199,8 @@
|
||||
#define CL_CALLBACK
|
||||
#endif //CL_CALLBACK
|
||||
|
||||
#include <utility>
|
||||
#include <limits>
|
||||
#include <utility>
|
||||
|
||||
#if !defined(__NO_STD_VECTOR)
|
||||
#include <vector>
|
||||
@@ -212,7 +212,6 @@
|
||||
|
||||
#if defined(linux) || defined(__APPLE__) || defined(__MACOSX)
|
||||
#include <alloca.h>
|
||||
|
||||
#include <emmintrin.h>
|
||||
#include <xmmintrin.h>
|
||||
#endif // linux
|
||||
@@ -264,8 +263,8 @@ class Memory;
|
||||
class Buffer;
|
||||
|
||||
#if defined(__CL_ENABLE_EXCEPTIONS)
|
||||
/*! \brief Exception class
|
||||
*
|
||||
/*! \brief Exception class
|
||||
*
|
||||
* This may be thrown by API functions when __CL_ENABLE_EXCEPTIONS is defined.
|
||||
*/
|
||||
class Error : public std::exception
|
||||
@@ -277,7 +276,7 @@ private:
|
||||
public:
|
||||
/*! \brief Create a new CL error exception for a given error code
|
||||
* and corresponding message.
|
||||
*
|
||||
*
|
||||
* \param err error code value.
|
||||
*
|
||||
* \param errStr a descriptive string that must remain in scope until
|
||||
@@ -476,7 +475,7 @@ typedef std::string STRING_CLASS;
|
||||
/*! \class string
|
||||
* \brief Simple string class, that provides a limited subset of std::string
|
||||
* functionality but avoids many of the issues that come with that class.
|
||||
|
||||
|
||||
* \note Deprecated. Please use std::string as default or
|
||||
* re-define the string class to match the std::string
|
||||
* interface by defining STRING_CLASS
|
||||
@@ -495,10 +494,10 @@ public:
|
||||
|
||||
/*! \brief Constructs a string populated from an arbitrary value of
|
||||
* specified size.
|
||||
*
|
||||
*
|
||||
* An extra '\0' is added, in case none was contained in str.
|
||||
*
|
||||
* \param str the initial value of the string instance. Note that '\0'
|
||||
* \param str the initial value of the string instance. Note that '\0'
|
||||
* characters receive no special treatment. If NULL,
|
||||
* the string is left empty, with a size of 0.
|
||||
*
|
||||
@@ -678,7 +677,7 @@ typedef cl::string STRING_CLASS;
|
||||
#endif
|
||||
|
||||
/*! \class vector
|
||||
* \brief Fixed sized vector implementation that mirroring
|
||||
* \brief Fixed sized vector implementation that mirroring
|
||||
*
|
||||
* \note Deprecated. Please use std::vector as default or
|
||||
* re-define the vector class to match the std::vector
|
||||
@@ -738,7 +737,7 @@ public:
|
||||
}
|
||||
|
||||
/*! \brief Appends an element after the last valid element.
|
||||
* Calling this on a vector that has reached capacity will throw an
|
||||
* Calling this on a vector that has reached capacity will throw an
|
||||
* exception if exceptions are enabled.
|
||||
*/
|
||||
void push_back(const T& x)
|
||||
@@ -921,7 +920,7 @@ public:
|
||||
|
||||
/**
|
||||
* Internal iterator constructor to capture reference
|
||||
* to the vector it iterates over rather than taking
|
||||
* to the vector it iterates over rather than taking
|
||||
* the vector by copy.
|
||||
*/
|
||||
iterator(const vector<T, N>& vec, int index) : vec_(&vec)
|
||||
@@ -1617,7 +1616,7 @@ struct ReferenceHandler<cl_device_id>
|
||||
/**
|
||||
* Retain the device.
|
||||
* \param device A valid device created using createSubDevices
|
||||
* \return
|
||||
* \return
|
||||
* CL_SUCCESS if the function executed successfully.
|
||||
* CL_INVALID_DEVICE if device was not a valid subdevice
|
||||
* CL_OUT_OF_RESOURCES
|
||||
@@ -1630,7 +1629,7 @@ struct ReferenceHandler<cl_device_id>
|
||||
/**
|
||||
* Retain the device.
|
||||
* \param device A valid device created using createSubDevices
|
||||
* \return
|
||||
* \return
|
||||
* CL_SUCCESS if the function executed successfully.
|
||||
* CL_INVALID_DEVICE if device was not a valid subdevice
|
||||
* CL_OUT_OF_RESOURCES
|
||||
@@ -2055,13 +2054,13 @@ public:
|
||||
Device() : detail::Wrapper<cl_type>() {}
|
||||
|
||||
/*! \brief Copy constructor.
|
||||
*
|
||||
*
|
||||
* This simply copies the device ID value, which is an inexpensive operation.
|
||||
*/
|
||||
Device(const Device& device) : detail::Wrapper<cl_type>(device) {}
|
||||
|
||||
/*! \brief Constructor from cl_device_id.
|
||||
*
|
||||
*
|
||||
* This simply copies the device ID value, which is an inexpensive operation.
|
||||
*/
|
||||
Device(const cl_device_id& device) : detail::Wrapper<cl_type>(device) {}
|
||||
@@ -2073,7 +2072,7 @@ public:
|
||||
static Device getDefault(cl_int* err = NULL);
|
||||
|
||||
/*! \brief Assignment operator from Device.
|
||||
*
|
||||
*
|
||||
* This simply copies the device ID value, which is an inexpensive operation.
|
||||
*/
|
||||
Device& operator=(const Device& rhs)
|
||||
@@ -2086,7 +2085,7 @@ public:
|
||||
}
|
||||
|
||||
/*! \brief Assignment operator from cl_device_id.
|
||||
*
|
||||
*
|
||||
* This simply copies the device ID value, which is an inexpensive operation.
|
||||
*/
|
||||
Device& operator=(const cl_device_id& rhs)
|
||||
@@ -2201,19 +2200,19 @@ public:
|
||||
Platform() : detail::Wrapper<cl_type>() {}
|
||||
|
||||
/*! \brief Copy constructor.
|
||||
*
|
||||
*
|
||||
* This simply copies the platform ID value, which is an inexpensive operation.
|
||||
*/
|
||||
Platform(const Platform& platform) : detail::Wrapper<cl_type>(platform) {}
|
||||
|
||||
/*! \brief Constructor from cl_platform_id.
|
||||
*
|
||||
*
|
||||
* This simply copies the platform ID value, which is an inexpensive operation.
|
||||
*/
|
||||
Platform(const cl_platform_id& platform) : detail::Wrapper<cl_type>(platform) {}
|
||||
|
||||
/*! \brief Assignment operator from Platform.
|
||||
*
|
||||
*
|
||||
* This simply copies the platform ID value, which is an inexpensive operation.
|
||||
*/
|
||||
Platform& operator=(const Platform& rhs)
|
||||
@@ -2226,7 +2225,7 @@ public:
|
||||
}
|
||||
|
||||
/*! \brief Assignment operator from cl_platform_id.
|
||||
*
|
||||
*
|
||||
* This simply copies the platform ID value, which is an inexpensive operation.
|
||||
*/
|
||||
Platform& operator=(const cl_platform_id& rhs)
|
||||
@@ -2259,7 +2258,7 @@ public:
|
||||
}
|
||||
|
||||
/*! \brief Gets a list of devices for this platform.
|
||||
*
|
||||
*
|
||||
* Wraps clGetDeviceIDs().
|
||||
*/
|
||||
cl_int getDevices(
|
||||
@@ -2369,7 +2368,7 @@ public:
|
||||
#endif
|
||||
|
||||
/*! \brief Gets a list of available platforms.
|
||||
*
|
||||
*
|
||||
* Wraps clGetPlatformIDs().
|
||||
*/
|
||||
static cl_int get(
|
||||
@@ -2401,7 +2400,7 @@ public:
|
||||
}
|
||||
|
||||
/*! \brief Gets the first available platform.
|
||||
*
|
||||
*
|
||||
* Wraps clGetPlatformIDs(), returning the first result.
|
||||
*/
|
||||
static cl_int get(
|
||||
@@ -2433,7 +2432,7 @@ public:
|
||||
}
|
||||
|
||||
/*! \brief Gets the first available platform, returning it by value.
|
||||
*
|
||||
*
|
||||
* Wraps clGetPlatformIDs(), returning the first result.
|
||||
*/
|
||||
static Platform get(
|
||||
@@ -2694,20 +2693,20 @@ public:
|
||||
Context() : detail::Wrapper<cl_type>() {}
|
||||
|
||||
/*! \brief Copy constructor.
|
||||
*
|
||||
*
|
||||
* This calls clRetainContext() on the parameter's cl_context.
|
||||
*/
|
||||
Context(const Context& context) : detail::Wrapper<cl_type>(context) {}
|
||||
|
||||
/*! \brief Constructor from cl_context - takes ownership.
|
||||
*
|
||||
*
|
||||
* This effectively transfers ownership of a refcount on the cl_context
|
||||
* into the new Context object.
|
||||
*/
|
||||
__CL_EXPLICIT_CONSTRUCTORS Context(const cl_context& context) : detail::Wrapper<cl_type>(context) {}
|
||||
|
||||
/*! \brief Assignment operator from Context.
|
||||
*
|
||||
*
|
||||
* This calls clRetainContext() on the parameter and clReleaseContext() on
|
||||
* the previous value held by this instance.
|
||||
*/
|
||||
@@ -2721,7 +2720,7 @@ public:
|
||||
}
|
||||
|
||||
/*! \brief Assignment operator from cl_context - takes ownership.
|
||||
*
|
||||
*
|
||||
* This effectively transfers ownership of a refcount on the rhs and calls
|
||||
* clReleaseContext() on the value previously held by this instance.
|
||||
*/
|
||||
@@ -2756,7 +2755,7 @@ public:
|
||||
}
|
||||
|
||||
/*! \brief Gets a list of supported image formats.
|
||||
*
|
||||
*
|
||||
* Wraps clGetSupportedImageFormats().
|
||||
*/
|
||||
cl_int getSupportedImageFormats(
|
||||
@@ -2855,13 +2854,13 @@ public:
|
||||
Event() : detail::Wrapper<cl_type>() {}
|
||||
|
||||
/*! \brief Copy constructor.
|
||||
*
|
||||
*
|
||||
* This calls clRetainEvent() on the parameter's cl_event.
|
||||
*/
|
||||
Event(const Event& event) : detail::Wrapper<cl_type>(event) {}
|
||||
|
||||
/*! \brief Constructor from cl_event - takes ownership.
|
||||
*
|
||||
*
|
||||
* This effectively transfers ownership of a refcount on the cl_event
|
||||
* into the new Event object.
|
||||
*/
|
||||
@@ -2882,7 +2881,7 @@ public:
|
||||
}
|
||||
|
||||
/*! \brief Assignment operator from cl_event.
|
||||
*
|
||||
*
|
||||
* This calls clRetainEvent() on the parameter and clReleaseEvent() on
|
||||
* the previous value held by this instance.
|
||||
*/
|
||||
@@ -2941,7 +2940,7 @@ public:
|
||||
}
|
||||
|
||||
/*! \brief Blocks the calling thread until this event completes.
|
||||
*
|
||||
*
|
||||
* Wraps clWaitForEvents().
|
||||
*/
|
||||
cl_int wait() const
|
||||
@@ -2972,7 +2971,7 @@ public:
|
||||
#endif
|
||||
|
||||
/*! \brief Blocks the calling thread until every event specified is complete.
|
||||
*
|
||||
*
|
||||
* Wraps clWaitForEvents().
|
||||
*/
|
||||
static cl_int
|
||||
@@ -2987,7 +2986,7 @@ public:
|
||||
|
||||
#if defined(CL_VERSION_1_1)
|
||||
/*! \brief Class interface for user events (a subset of cl_event's).
|
||||
*
|
||||
*
|
||||
* See Event for details about copy semantics, etc.
|
||||
*/
|
||||
class UserEvent : public Event
|
||||
@@ -3043,7 +3042,7 @@ public:
|
||||
#endif
|
||||
|
||||
/*! \brief Blocks the calling thread until every event specified is complete.
|
||||
*
|
||||
*
|
||||
* Wraps clWaitForEvents().
|
||||
*/
|
||||
inline static cl_int
|
||||
@@ -3076,20 +3075,20 @@ public:
|
||||
Memory() : detail::Wrapper<cl_type>() {}
|
||||
|
||||
/*! \brief Copy constructor - performs shallow copy.
|
||||
*
|
||||
*
|
||||
* This calls clRetainMemObject() on the parameter's cl_mem.
|
||||
*/
|
||||
Memory(const Memory& memory) : detail::Wrapper<cl_type>(memory) {}
|
||||
|
||||
/*! \brief Constructor from cl_mem - takes ownership.
|
||||
*
|
||||
*
|
||||
* This effectively transfers ownership of a refcount on the cl_mem
|
||||
* into the new Memory object.
|
||||
*/
|
||||
__CL_EXPLICIT_CONSTRUCTORS Memory(const cl_mem& memory) : detail::Wrapper<cl_type>(memory) {}
|
||||
|
||||
/*! \brief Assignment operator from Memory.
|
||||
*
|
||||
*
|
||||
* This calls clRetainMemObject() on the parameter and clReleaseMemObject()
|
||||
* on the previous value held by this instance.
|
||||
*/
|
||||
@@ -3173,7 +3172,7 @@ template <typename IteratorType>
|
||||
cl_int copy(const cl::Buffer& buffer, IteratorType startIterator, IteratorType endIterator);
|
||||
|
||||
/*! \brief Class interface for Buffer Memory Objects.
|
||||
*
|
||||
*
|
||||
* See Memory for details about copy semantics, etc.
|
||||
*
|
||||
* \see Memory
|
||||
@@ -3365,7 +3364,7 @@ public:
|
||||
/*! \brief Class interface for creating OpenCL buffers from ID3D10Buffer's.
|
||||
*
|
||||
* This is provided to facilitate interoperability with Direct3D.
|
||||
*
|
||||
*
|
||||
* See Memory for details about copy semantics, etc.
|
||||
*
|
||||
* \see Memory
|
||||
@@ -3463,9 +3462,9 @@ public:
|
||||
/*! \brief Class interface for GL Buffer Memory Objects.
|
||||
*
|
||||
* This is provided to facilitate interoperability with OpenGL.
|
||||
*
|
||||
*
|
||||
* See Memory for details about copy semantics, etc.
|
||||
*
|
||||
*
|
||||
* \see Memory
|
||||
*/
|
||||
class BufferGL : public Buffer
|
||||
@@ -3548,9 +3547,9 @@ public:
|
||||
/*! \brief Class interface for GL Render Buffer Memory Objects.
|
||||
*
|
||||
* This is provided to facilitate interoperability with OpenGL.
|
||||
*
|
||||
*
|
||||
* See Memory for details about copy semantics, etc.
|
||||
*
|
||||
*
|
||||
* \see Memory
|
||||
*/
|
||||
class BufferRenderGL : public Buffer
|
||||
@@ -3633,7 +3632,7 @@ public:
|
||||
/*! \brief C++ base class for Image Memory objects.
|
||||
*
|
||||
* See Memory for details about copy semantics, etc.
|
||||
*
|
||||
*
|
||||
* \see Memory
|
||||
*/
|
||||
class Image : public Memory
|
||||
@@ -3707,7 +3706,7 @@ public:
|
||||
/*! \brief Class interface for 1D Image Memory objects.
|
||||
*
|
||||
* See Memory for details about copy semantics, etc.
|
||||
*
|
||||
*
|
||||
* \see Memory
|
||||
*/
|
||||
class Image1D : public Image
|
||||
@@ -3913,7 +3912,7 @@ public:
|
||||
/*! \brief Class interface for 2D Image Memory objects.
|
||||
*
|
||||
* See Memory for details about copy semantics, etc.
|
||||
*
|
||||
*
|
||||
* \see Memory
|
||||
*/
|
||||
class Image2D : public Image
|
||||
@@ -4033,9 +4032,9 @@ public:
|
||||
/*! \brief Class interface for GL 2D Image Memory objects.
|
||||
*
|
||||
* This is provided to facilitate interoperability with OpenGL.
|
||||
*
|
||||
*
|
||||
* See Memory for details about copy semantics, etc.
|
||||
*
|
||||
*
|
||||
* \see Memory
|
||||
* \note Deprecated for OpenCL 1.2. Please use ImageGL instead.
|
||||
*/
|
||||
@@ -4182,7 +4181,7 @@ public:
|
||||
/*! \brief Class interface for 3D Image Memory objects.
|
||||
*
|
||||
* See Memory for details about copy semantics, etc.
|
||||
*
|
||||
*
|
||||
* \see Memory
|
||||
*/
|
||||
class Image3D : public Image
|
||||
@@ -4306,9 +4305,9 @@ public:
|
||||
/*! \brief Class interface for GL 3D Image Memory objects.
|
||||
*
|
||||
* This is provided to facilitate interoperability with OpenGL.
|
||||
*
|
||||
*
|
||||
* See Memory for details about copy semantics, etc.
|
||||
*
|
||||
*
|
||||
* \see Memory
|
||||
*/
|
||||
class Image3DGL : public Image3D
|
||||
@@ -4446,7 +4445,7 @@ public:
|
||||
* to the same underlying cl_sampler as the original. For details, see
|
||||
* clRetainSampler() and clReleaseSampler().
|
||||
*
|
||||
* \see cl_sampler
|
||||
* \see cl_sampler
|
||||
*/
|
||||
class Sampler : public detail::Wrapper<cl_sampler>
|
||||
{
|
||||
@@ -4487,20 +4486,20 @@ public:
|
||||
}
|
||||
|
||||
/*! \brief Copy constructor - performs shallow copy.
|
||||
*
|
||||
*
|
||||
* This calls clRetainSampler() on the parameter's cl_sampler.
|
||||
*/
|
||||
Sampler(const Sampler& sampler) : detail::Wrapper<cl_type>(sampler) {}
|
||||
|
||||
/*! \brief Constructor from cl_sampler - takes ownership.
|
||||
*
|
||||
*
|
||||
* This effectively transfers ownership of a refcount on the cl_sampler
|
||||
* into the new Sampler object.
|
||||
*/
|
||||
Sampler(const cl_sampler& sampler) : detail::Wrapper<cl_type>(sampler) {}
|
||||
|
||||
/*! \brief Assignment operator from Sampler.
|
||||
*
|
||||
*
|
||||
* This calls clRetainSampler() on the parameter and clReleaseSampler()
|
||||
* on the previous value held by this instance.
|
||||
*/
|
||||
@@ -4592,7 +4591,7 @@ public:
|
||||
}
|
||||
|
||||
/*! \brief Conversion operator to const ::size_t *.
|
||||
*
|
||||
*
|
||||
* \returns a pointer to the size of the first dimension.
|
||||
*/
|
||||
operator const ::size_t*() const
|
||||
@@ -4680,20 +4679,20 @@ public:
|
||||
Kernel() {}
|
||||
|
||||
/*! \brief Copy constructor - performs shallow copy.
|
||||
*
|
||||
*
|
||||
* This calls clRetainKernel() on the parameter's cl_kernel.
|
||||
*/
|
||||
Kernel(const Kernel& kernel) : detail::Wrapper<cl_type>(kernel) {}
|
||||
|
||||
/*! \brief Constructor from cl_kernel - takes ownership.
|
||||
*
|
||||
*
|
||||
* This effectively transfers ownership of a refcount on the cl_kernel
|
||||
* into the new Kernel object.
|
||||
*/
|
||||
__CL_EXPLICIT_CONSTRUCTORS Kernel(const cl_kernel& kernel) : detail::Wrapper<cl_type>(kernel) {}
|
||||
|
||||
/*! \brief Assignment operator from Kernel.
|
||||
*
|
||||
*
|
||||
* This calls clRetainKernel() on the parameter and clReleaseKernel()
|
||||
* on the previous value held by this instance.
|
||||
*/
|
||||
@@ -4962,7 +4961,7 @@ public:
|
||||
* Set to CL_INVALID_BINARY if the binary provided is not valid for the matching device.
|
||||
* \param err if non-NULL will be set to CL_SUCCESS on successful operation or one of the following errors:
|
||||
* CL_INVALID_CONTEXT if context is not a valid context.
|
||||
* CL_INVALID_VALUE if the length of devices is zero; or if the length of binaries does not match the length of devices;
|
||||
* CL_INVALID_VALUE if the length of devices is zero; or if the length of binaries does not match the length of devices;
|
||||
* or if any entry in binaries is NULL or has length 0.
|
||||
* CL_INVALID_DEVICE if OpenCL devices listed in devices are not in the list of devices associated with context.
|
||||
* CL_INVALID_BINARY if an invalid program binary was encountered for any device. binaryStatus will return specific status for each device.
|
||||
@@ -5688,7 +5687,7 @@ public:
|
||||
/**
|
||||
* Enqueue a command to fill a buffer object with a pattern
|
||||
* of a given size. The pattern is specified a as vector.
|
||||
* \tparam PatternType The datatype of the pattern field.
|
||||
* \tparam PatternType The datatype of the pattern field.
|
||||
* The pattern type must be an accepted OpenCL data type.
|
||||
*/
|
||||
template <typename PatternType>
|
||||
@@ -6033,14 +6032,14 @@ public:
|
||||
|
||||
#if defined(CL_VERSION_1_2)
|
||||
/**
|
||||
* Enqueues a marker command which waits for either a list of events to complete,
|
||||
* Enqueues a marker command which waits for either a list of events to complete,
|
||||
* or all previously enqueued commands to complete.
|
||||
*
|
||||
* Enqueues a marker command which waits for either a list of events to complete,
|
||||
* or if the list is empty it waits for all commands previously enqueued in command_queue
|
||||
* to complete before it completes. This command returns an event which can be waited on,
|
||||
* i.e. this event can be waited on to insure that all events either in the event_wait_list
|
||||
* or all previously enqueued commands, queued before this command to command_queue,
|
||||
* Enqueues a marker command which waits for either a list of events to complete,
|
||||
* or if the list is empty it waits for all commands previously enqueued in command_queue
|
||||
* to complete before it completes. This command returns an event which can be waited on,
|
||||
* i.e. this event can be waited on to insure that all events either in the event_wait_list
|
||||
* or all previously enqueued commands, queued before this command to command_queue,
|
||||
* have completed.
|
||||
*/
|
||||
cl_int enqueueMarkerWithWaitList(
|
||||
@@ -6065,12 +6064,12 @@ public:
|
||||
/**
|
||||
* A synchronization point that enqueues a barrier operation.
|
||||
*
|
||||
* Enqueues a barrier command which waits for either a list of events to complete,
|
||||
* or if the list is empty it waits for all commands previously enqueued in command_queue
|
||||
* to complete before it completes. This command blocks command execution, that is, any
|
||||
* following commands enqueued after it do not execute until it completes. This command
|
||||
* returns an event which can be waited on, i.e. this event can be waited on to insure that
|
||||
* all events either in the event_wait_list or all previously enqueued commands, queued
|
||||
* Enqueues a barrier command which waits for either a list of events to complete,
|
||||
* or if the list is empty it waits for all commands previously enqueued in command_queue
|
||||
* to complete before it completes. This command blocks command execution, that is, any
|
||||
* following commands enqueued after it do not execute until it completes. This command
|
||||
* returns an event which can be waited on, i.e. this event can be waited on to insure that
|
||||
* all events either in the event_wait_list or all previously enqueued commands, queued
|
||||
* before this command to command_queue, have completed.
|
||||
*/
|
||||
cl_int enqueueBarrierWithWaitList(
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user