From 1aef83037f6a9988b06a547710afbbe5ce815459 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 23 Mar 2010 18:17:47 -0700 Subject: Added example app to receive timed samples. Added useful calls to simple device. Fixed vrt frac time usage (wrong word). --- host/lib/simple_device.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'host/lib/simple_device.cpp') diff --git a/host/lib/simple_device.cpp b/host/lib/simple_device.cpp index ba1966e0d..bb7ddfc68 100644 --- a/host/lib/simple_device.cpp +++ b/host/lib/simple_device.cpp @@ -153,9 +153,25 @@ public: return _mboard[MBOARD_PROP_NAME].as(); } + /******************************************************************* + * Timing + ******************************************************************/ + void set_time_now(const time_spec_t &time_spec){ + _mboard[MBOARD_PROP_TIME_NOW] = time_spec; + } + + void set_time_next_pps(const time_spec_t &time_spec){ + _mboard[MBOARD_PROP_TIME_NEXT_PPS] = time_spec; + } + /******************************************************************* * Streaming ******************************************************************/ + void set_streaming_at(const time_spec_t &time_spec){ + _rx_ddc[std::string("stream_at")] = time_spec; + _rx_ddc[std::string("enabled")] = true; + } + void set_streaming(bool enb){ _rx_ddc[std::string("enabled")] = enb; } -- cgit v1.2.3