diff options
Diffstat (limited to 'host/lib/usrp_clock/octoclock/octoclock_impl.hpp')
-rw-r--r-- | host/lib/usrp_clock/octoclock/octoclock_impl.hpp | 49 |
1 files changed, 25 insertions, 24 deletions
diff --git a/host/lib/usrp_clock/octoclock/octoclock_impl.hpp b/host/lib/usrp_clock/octoclock/octoclock_impl.hpp index 8fcda1999..d293ce3e5 100644 --- a/host/lib/usrp_clock/octoclock/octoclock_impl.hpp +++ b/host/lib/usrp_clock/octoclock/octoclock_impl.hpp @@ -8,37 +8,37 @@ #ifndef INCLUDED_OCTOCLOCK_IMPL_HPP #define INCLUDED_OCTOCLOCK_IMPL_HPP -#include <memory> -#include <boost/thread.hpp> - +#include "common.h" #include <uhd/device.hpp> #include <uhd/stream.hpp> -#include <uhd/usrp/gps_ctrl.hpp> -#include <uhd/usrp_clock/octoclock_eeprom.hpp> #include <uhd/types/device_addr.hpp> #include <uhd/types/dict.hpp> #include <uhd/types/sensors.hpp> +#include <uhd/usrp/gps_ctrl.hpp> +#include <uhd/usrp_clock/octoclock_eeprom.hpp> +#include <boost/thread.hpp> +#include <memory> -#include "common.h" - -uhd::device_addrs_t octoclock_find(const uhd::device_addr_t &hint); +uhd::device_addrs_t octoclock_find(const uhd::device_addr_t& hint); /*! * OctoClock implementation guts */ -class octoclock_impl : public uhd::device{ +class octoclock_impl : public uhd::device +{ public: - octoclock_impl(const uhd::device_addr_t &); - ~octoclock_impl(void) {}; + octoclock_impl(const uhd::device_addr_t&); + ~octoclock_impl(void){}; - uhd::rx_streamer::sptr get_rx_stream(const uhd::stream_args_t &args); + uhd::rx_streamer::sptr get_rx_stream(const uhd::stream_args_t& args); - uhd::tx_streamer::sptr get_tx_stream(const uhd::stream_args_t &args); + uhd::tx_streamer::sptr get_tx_stream(const uhd::stream_args_t& args); bool recv_async_msg(uhd::async_metadata_t&, double); private: - struct oc_container_type{ + struct oc_container_type + { uhd::usrp_clock::octoclock_eeprom_t eeprom; octoclock_state_t state; uhd::transport::udp_simple::sptr ctrl_xport; @@ -47,25 +47,26 @@ private: }; uhd::dict<std::string, oc_container_type> _oc_dict; uint32_t _sequence; - uint32_t _proto_ver; + uint32_t _proto_ver; - void _set_eeprom(const std::string &oc, const uhd::usrp_clock::octoclock_eeprom_t &oc_eeprom); + void _set_eeprom( + const std::string& oc, const uhd::usrp_clock::octoclock_eeprom_t& oc_eeprom); - uint32_t _get_fw_version(const std::string &oc); + uint32_t _get_fw_version(const std::string& oc); - void _get_state(const std::string &oc); + void _get_state(const std::string& oc); - uhd::sensor_value_t _ext_ref_detected(const std::string &oc); + uhd::sensor_value_t _ext_ref_detected(const std::string& oc); - uhd::sensor_value_t _gps_detected(const std::string &oc); + uhd::sensor_value_t _gps_detected(const std::string& oc); - uhd::sensor_value_t _which_ref(const std::string &oc); + uhd::sensor_value_t _which_ref(const std::string& oc); - uhd::sensor_value_t _switch_pos(const std::string &oc); + uhd::sensor_value_t _switch_pos(const std::string& oc); - uint32_t _get_time(const std::string &oc); + uint32_t _get_time(const std::string& oc); - std::string _get_images_help_message(const std::string &addr); + std::string _get_images_help_message(const std::string& addr); boost::mutex _device_mutex; }; |