#ifndef GPS_SDR_SIGNAL_PROCESSING_H_ #define GPS_SDR_SIGNAL_PROCESSING_H_ //#include "gps_sdr_defines.h" #include "GPS_L1_CA.h" #include #include ///* // * Signal processing functions from gps-sdr. // */ // ///*----------------------------------------------------------------------------------------------*/ ///*! @ingroup STRUCTS // * @brief Define the CPX structure, used in the Fine_Acquisition FFT */ //typedef struct CPX //{ // int16 i; //!< Real value // int16 q; //!< Imaginary value //} CPX; // ///*! \ingroup STRUCTS // * @brief Format of complex accumulations */ //typedef struct CPX_ACCUM { // // int32 i; //!< Inphase (real) // int32 q; //!< Quadrature (imaginary) // //} CPX_ACCUM; // // ///*! \ingroup STRUCTS // * // */ //typedef struct MIX { // // int16 i; //!< Inphase (real) // int16 nq; //!< Quadrature (imaginary) // int16 q; //!< Quadrature (imaginary) // int16 ni; //!< Inphase (real) // //} MIX; /*----------------------------------------------------------------------------------------------*/ void code_gen_conplex(std::complex* _dest, signed int _prn, unsigned int _chip_shift); void code_gen_complex_sampled(std::complex* _dest, unsigned int _prn, signed int _fs, unsigned int _chip_shift); //signed int code_gen(CPX *_dest, signed int _prn); //void sine_gen(CPX *_dest, double _f, double _fs, signed int _samps); void sine_gen_complex(std::complex* _dest, double _f, double _fs, unsigned int _samps); //void sine_gen(CPX *_dest, double _f, double _fs, signed int _samps, double _p); //void wipeoff_gen(MIX *_dest, double _f, double _fs, signed int _samps); //void downsample(CPX *_dest, CPX *_source, double _fdest, double _fsource, signed int _samps); //void init_agc(CPX *_buff, signed int _samps, signed int bits, signed int *scale); //signed int run_agc(CPX *_buff, signed int _samps, signed int bits, signed int scale); #endif /* GPS_SDR_SIGNAL_PROCESSING_H_ */