diff options
| author | Ashish Chaudhari <ashish@ettus.com> | 2015-04-09 09:47:55 -0700 |
|---|---|---|
| committer | Ashish Chaudhari <ashish@ettus.com> | 2015-04-09 09:47:55 -0700 |
| commit | 625724d7f81c214e9955334860a364802be3fda9 (patch) | |
| tree | 39d6d0087646ef4028bc6a57d33c89a28112fed8 /host/lib/usrp/x300/x300_dboard_iface.cpp | |
| parent | 700bf99bdc483fdcc9deb54abc29bd7f81e16089 (diff) | |
| parent | 3f0b770ab14aa0acaf4846680e3ee7379a1f93d7 (diff) | |
| download | uhd-625724d7f81c214e9955334860a364802be3fda9.tar.gz uhd-625724d7f81c214e9955334860a364802be3fda9.tar.bz2 uhd-625724d7f81c214e9955334860a364802be3fda9.zip | |
Merge branch 'master' into vivado
Diffstat (limited to 'host/lib/usrp/x300/x300_dboard_iface.cpp')
| -rw-r--r-- | host/lib/usrp/x300/x300_dboard_iface.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/host/lib/usrp/x300/x300_dboard_iface.cpp b/host/lib/usrp/x300/x300_dboard_iface.cpp index eff5183e0..c286e805a 100644 --- a/host/lib/usrp/x300/x300_dboard_iface.cpp +++ b/host/lib/usrp/x300/x300_dboard_iface.cpp @@ -1,5 +1,5 @@ // -// Copyright 2013 Ettus Research LLC +// Copyright 2013,2015 Ettus Research LLC // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -50,6 +50,9 @@ public: void _set_gpio_ddr(unit_t, boost::uint16_t); void _set_gpio_out(unit_t, boost::uint16_t); + void set_command_time(const uhd::time_spec_t& t); + uhd::time_spec_t get_command_time(void); + void set_gpio_debug(unit_t, int); boost::uint16_t read_gpio(unit_t); @@ -331,3 +334,13 @@ double x300_dboard_iface::read_aux_adc(unit_t unit, aux_adc_t which) //convert to voltage and return return 3.3*ad7922_regs.result/4095; } + +uhd::time_spec_t x300_dboard_iface::get_command_time() +{ + return _config.cmd_time_ctrl->get_time(); +} + +void x300_dboard_iface::set_command_time(const uhd::time_spec_t& t) +{ + _config.cmd_time_ctrl->set_time(t); +} |
