GNU Radio's GNMAX2769 Package
gnmax_source.h
Go to the documentation of this file.
1/*----------------------------------------------------------------------------------------------*/
2//
3// FILENAME: gps_source.h
4//
5// DESCRIPTION: Defines the GPS_Source class.
6//
7// DEVELOPERS: Gregory W. Heckler (2003-2009)
8// Wojciech Kazubski (2019)
9//
10// LICENSE TERMS: Copyright (c) Gregory W. Heckler 2009
11// Copyright (c) Wojciech Kazubski 2019
12//
13// This file is based on gn3s_source.h file, a part of GN3S driver for gnss-sdr project
14//
15// This file is part of the GPS Software Defined Radio (GPS-SDR)
16//
17// The GPS-SDR is free software; you can redistribute it and/or modify it under the terms of the
18// GNU General Public License as published by the Free Software Foundation; either version 2 of
19// the License, or (at your option) any later version. The GPS-SDR is distributed in the hope that
20// it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
21// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
22// more details.
23//
24// Note: Comments within this file follow a syntax that is compatible with
25// DOXYGEN and are utilized for automated document extraction
26//
27// Reference:
28/*----------------------------------------------------------------------------------------------*/
29
30#ifndef GNMAX_SOURCE_H_
31#define GNMAX_OURCE_H_
32
33#include "gnmax_defines.h"
34#include "gnmax.h"
35
36/*! \ingroup CLASSES
37 *
38 */
40{
41
42 private:
43
44 /* Generic variables */
45 int ms_count; //!< Count the numbers of ms processed
46
47 bool flag_first_read;
48
49 /* Tag overflows */
50 time_t rawtime;
51 struct tm * timeinfo;
52
53 /* SOURCE_GNMAX Handles */
54 gnmax *gnmax_a;
55
56 void Open_GNMAX(gnmax_settings settings); //!< Open the MAX2769 Sampler
57 void Close_GNMAX(); //!< Close the MAX2769 Sampler
58 int Read_GNMAX(unsigned char *bbuf, int n_samples);//!< Read from the MAX2769 Sampler
59
60 public:
61
62 gnmax_Source(gnmax_settings settings); //!< Create the GPS source with the proper hardware type
63 ~gnmax_Source(); //!< Kill the object
64 int Read(unsigned char *bbuf, int n_samples); //!< Read in a single ms of data
65 bool w_set_bias(int bias);
66 bool w_set_ant(int ant);
67 bool w_set_freq(int freq);
68 bool w_set_bw(int bw, int zeroif);
69};
70
71#endif /* GNMAX_SOURCE_H_ */
bool w_set_bias(int bias)
bool w_set_freq(int freq)
bool w_set_ant(int ant)
~gnmax_Source()
Kill the object.
gnmax_Source(gnmax_settings settings)
Create the GPS source with the proper hardware type.
bool w_set_bw(int bw, int zeroif)
int Read(unsigned char *bbuf, int n_samples)
Read in a single ms of data.
Definition gnmax.h:83
Definition gnmax_defines.h:25