summaryrefslogtreecommitdiffstats
path: root/host/lib/simple_device.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-03-23 18:17:47 -0700
committerJosh Blum <josh@joshknows.com>2010-03-23 18:17:47 -0700
commit1aef83037f6a9988b06a547710afbbe5ce815459 (patch)
tree7698e49c2f4d891feb49a9b937f9da9fc6f4cbc5 /host/lib/simple_device.cpp
parent694dc3c7bc6f07b9660aef0c5ace9f6e11f98066 (diff)
downloaduhd-1aef83037f6a9988b06a547710afbbe5ce815459.tar.gz
uhd-1aef83037f6a9988b06a547710afbbe5ce815459.tar.bz2
uhd-1aef83037f6a9988b06a547710afbbe5ce815459.zip
Added example app to receive timed samples.
Added useful calls to simple device. Fixed vrt frac time usage (wrong word).
Diffstat (limited to 'host/lib/simple_device.cpp')
-rw-r--r--host/lib/simple_device.cpp16
1 files changed, 16 insertions, 0 deletions
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
@@ -154,8 +154,24 @@ public:
}
/*******************************************************************
+ * 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;
}