diff options
author | Josh Blum <josh@joshknows.com> | 2011-10-12 09:59:41 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-11-03 20:37:12 -0700 |
commit | 9369259177e5517e2b0e775804224c5467e14eab (patch) | |
tree | 06b717dae712517e9acbb2e6bbbacce620c55f8e /host/lib/deprecated.cpp | |
parent | c885da11389ee275f9c5206b9f8a2155a5393a8a (diff) | |
download | uhd-9369259177e5517e2b0e775804224c5467e14eab.tar.gz uhd-9369259177e5517e2b0e775804224c5467e14eab.tar.bz2 uhd-9369259177e5517e2b0e775804224c5467e14eab.zip |
usrp: deprecated clock config, added time/clock source calls
Diffstat (limited to 'host/lib/deprecated.cpp')
-rw-r--r-- | host/lib/deprecated.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/host/lib/deprecated.cpp b/host/lib/deprecated.cpp index dd4cc02ad..b659d1be5 100644 --- a/host/lib/deprecated.cpp +++ b/host/lib/deprecated.cpp @@ -203,3 +203,31 @@ io_type_t::io_type_t(size_t size): { /* NOP */ } + +#include <uhd/types/clock_config.hpp> + +using namespace uhd; + +clock_config_t clock_config_t::external(void){ + clock_config_t clock_config; + clock_config.ref_source = clock_config_t::REF_SMA; + clock_config.pps_source = clock_config_t::PPS_SMA; + clock_config.pps_polarity = clock_config_t::PPS_POS; + return clock_config; +} + +clock_config_t clock_config_t::internal(void){ + clock_config_t clock_config; + clock_config.ref_source = clock_config_t::REF_INT; + clock_config.pps_source = clock_config_t::PPS_SMA; + clock_config.pps_polarity = clock_config_t::PPS_POS; + return clock_config; +} + +clock_config_t::clock_config_t(void): + ref_source(REF_INT), + pps_source(PPS_SMA), + pps_polarity(PPS_POS) +{ + /* NOP */ +} |