1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-15 04:30:33 +00:00
gnss-sdr/drivers/gr-gn3s/include/gn3s_defines.h
Javier Arribas b849b20a8c Added optional support for Sparkfun SiGe GN3S USB GPS RF sampler:
- Added a pre-compiled custom GN3S firmware.
- Added a fully-compliant GNU Radio source block for GN3S USB dongle. It can be used also from GNU Radio companion and from Python applications.
- Added a new GN3S_Signal_Source block. It is possible to disable the GN3S signal source compilation. See README.

git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@217 64b25241-fba3-4117-9849-534c7e92360d
2012-07-30 15:46:07 +00:00

26 lines
830 B
C

#ifndef GN3S_DEFINES_H_
#define GN3S_DEFINES_H_
typedef struct GN3S_CPX
{
short int i; //!< Real value
short int q; //!< Imaginary value
} GN3S_CPX;
//#define GN3S_SAMPS_MS (2048) //!< All incoming signals are resampled to this sampling frequency
#define GN3S_SAMPS_5MS (40919) // 5MS at fs=8.1838e6
//!< FIFO structure for linked list?
/*----------------------------------------------------------------------------------------------*/
/*! \ingroup STRUCTS
* @brief linked list structure for circular FIFO buffer */
typedef struct gn3s_ms_packet {
gn3s_ms_packet *next;
int count; //!< Number of packets
GN3S_CPX data[GN3S_SAMPS_5MS]; //!< Payload size
} gn3s_ms_packet;
/*----------------------------------------------------------------------------------------------*/
#endif //GN3S_DEFINES_H_