diff options
author | Johnathan Corgan | 2009-10-21 14:20:15 -0700 |
---|---|---|
committer | Johnathan Corgan | 2009-10-21 14:20:15 -0700 |
commit | 8e003a402af2993f978620741fdf195ac9bf7834 (patch) | |
tree | 17bc885b8e32b3b29f78d9ae0817c88c581d87f2 /gr-vrt/src/vrt_quadradio_source_32fc.h | |
parent | 3f60c94858810b605c2f8a343375c57c78a660dc (diff) | |
parent | 2875cf23fcb5d38866a42327cafa2b43abe2fbf4 (diff) | |
download | gnuradio-8e003a402af2993f978620741fdf195ac9bf7834.tar.gz gnuradio-8e003a402af2993f978620741fdf195ac9bf7834.tar.bz2 gnuradio-8e003a402af2993f978620741fdf195ac9bf7834.zip |
Merge branch 'vrt' of http://gnuradio.org/git/jblum
Merge fix: added GRUEL_INCLUDES to vrt Makefile
Merge fix: added missing include in gr-vrt
* 'vrt' of http://gnuradio.org/git/jblum:
query the model number from the host
fix so all handlers get called on event
simplfied the code while i was looking at it
added access methods for gps stuff
added access methods and parsing for caldiv if context
use existing utility method
reading the lo back and storing it
use the new htonll and vrt types to send cal and lo freqs
checking for if context packets and setting up the payload pointer and size
Reading 64 bit freq out of chunk of context packet.
copied over vrt context and type headers, updated bits.h as well
Dump IF-Context packets in hex.
use gruel/inet.h instead of arap/inet.h
fix white space
made rxdspno a parameter for: start/stop streaming, and quadradio32fc
Diffstat (limited to 'gr-vrt/src/vrt_quadradio_source_32fc.h')
-rw-r--r-- | gr-vrt/src/vrt_quadradio_source_32fc.h | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/gr-vrt/src/vrt_quadradio_source_32fc.h b/gr-vrt/src/vrt_quadradio_source_32fc.h index 6193efa10..bb3935c46 100644 --- a/gr-vrt/src/vrt_quadradio_source_32fc.h +++ b/gr-vrt/src/vrt_quadradio_source_32fc.h @@ -33,19 +33,21 @@ typedef boost::shared_ptr<vrt_quadradio_source_32fc> vrt_quadradio_source_32fc_s vrt_quadradio_source_32fc_sptr vrt_make_quadradio_source_32fc(const std::string &ip, size_t rx_bufsize = 0, - size_t samples_per_pkt = 0); + size_t samples_per_pkt = 0, + int rxdspno = 0); class vrt_quadradio_source_32fc : public vrt_source_32fc { size_t d_samples_per_pkt; boost::shared_ptr<vrt::quadradio> d_qr; + int d_rxdspno; vrt_quadradio_source_32fc(const std::string &ip, size_t rx_bufsize, - size_t samples_per_pkt); + size_t samples_per_pkt, int rxdspno); friend vrt_quadradio_source_32fc_sptr vrt_make_quadradio_source_32fc(const std::string &ip, size_t rx_bufsize, - size_t samples_per_pkt); + size_t samples_per_pkt, int rxdspno); public: virtual ~vrt_quadradio_source_32fc(); @@ -110,6 +112,23 @@ public: bool set_cal_freq(double freq); bool set_beamforming(std::vector<gr_complex> gains); bool set_cal_enb(bool enb); + + //caldiv public access methods + double get_cal_freq(void){return d_cal_freq;} + bool get_cal_locked(void){return d_cal_locked;} + bool get_cal_enabled(void){return d_cal_enabled;} + double get_lo_freq(void){return d_lo_freq;} + bool get_lo_locked(void){return d_lo_locked;} + double get_caldiv_temp(void){return d_caldiv_temp;} + int get_caldiv_revision(void){return d_caldiv_rev;} + int get_caldiv_serial(void){return d_caldiv_ser;} + int get_caldiv_model(void){return d_caldiv_mod;} + + //gps public access methods + int get_utc_time(void){return d_utc_time;} + double get_altitude(void){return d_altitude;} + double get_longitude(void){return d_longitude;} + double get_latitude(void){return d_latitude;} }; |