diff options
author | Josh Blum | 2009-09-28 19:04:38 -0700 |
---|---|---|
committer | Josh Blum | 2009-09-28 19:04:38 -0700 |
commit | 85a8e6cdb0fb05b12b071c81f9eb025b380fb155 (patch) | |
tree | 0274c77165b411d15eac444d088fec76c2c2e6f1 /gr-vrt/src/vrt_source_32fc.cc | |
parent | 1c528febdac158b3fe898a8cb37ac37f8f4fee61 (diff) | |
download | gnuradio-85a8e6cdb0fb05b12b071c81f9eb025b380fb155.tar.gz gnuradio-85a8e6cdb0fb05b12b071c81f9eb025b380fb155.tar.bz2 gnuradio-85a8e6cdb0fb05b12b071c81f9eb025b380fb155.zip |
added access methods and parsing for caldiv if context
Diffstat (limited to 'gr-vrt/src/vrt_source_32fc.cc')
-rw-r--r-- | gr-vrt/src/vrt_source_32fc.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gr-vrt/src/vrt_source_32fc.cc b/gr-vrt/src/vrt_source_32fc.cc index 551ea9821..0091619ab 100644 --- a/gr-vrt/src/vrt_source_32fc.cc +++ b/gr-vrt/src/vrt_source_32fc.cc @@ -171,7 +171,14 @@ vrt_source_32fc::work(int noutput_items, //we have a context packet, grab its useful information... //remember that things are in network byte order! if (h.get_if_context()){ - d_actual_lo_freq = vrt_freq_to_double(ntohll(h.get_if_context()->beamformer.rf_ref_freq)); + d_lo_freq = vrt_freq_to_double(ntohll(h.get_if_context()->caldiv.lo_freq)); + d_cal_freq = vrt_freq_to_double(ntohll(h.get_if_context()->caldiv.cal_freq)); + d_lo_locked = bool(ntohl(h.get_if_context()->caldiv.lo_locked)); + d_cal_locked = bool(ntohl(h.get_if_context()->caldiv.cal_locked)); + d_cal_enabled = bool(ntohl(h.get_if_context()->caldiv.cal_enabled)); + d_caldiv_temp = vrt_temp_to_double(ntohl(h.get_if_context()->caldiv.temp)); + d_caldiv_ser = ntohl(h.get_if_context()->caldiv.ser); + d_caldiv_rev = ntohl(h.get_if_context()->caldiv.rev); } return oo; |