From 22db12c4b2b55225801ec1efb2465c7a06295b9e Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 23 Jan 2020 10:32:59 -0800 Subject: octoclock: Apply clang-format --- host/lib/usrp_clock/octoclock/octoclock_uart.hpp | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'host/lib/usrp_clock/octoclock/octoclock_uart.hpp') diff --git a/host/lib/usrp_clock/octoclock/octoclock_uart.hpp b/host/lib/usrp_clock/octoclock/octoclock_uart.hpp index cb0f58591..02fcf25e3 100644 --- a/host/lib/usrp_clock/octoclock/octoclock_uart.hpp +++ b/host/lib/usrp_clock/octoclock/octoclock_uart.hpp @@ -8,23 +8,26 @@ #ifndef INCLUDED_OCTOCLOCK_UART_HPP #define INCLUDED_OCTOCLOCK_UART_HPP -#include - +#include "common.h" #include #include +#include +#include +#include /*! * The OctoClock doesn't take UART input per se but reads a specific * packet type and sends the string from there through its own serial * functions. */ -namespace uhd{ -class octoclock_uart_iface : public uhd::uart_iface{ +namespace uhd { +class octoclock_uart_iface : public uhd::uart_iface +{ public: octoclock_uart_iface(uhd::transport::udp_simple::sptr udp, uint32_t proto_ver); - ~octoclock_uart_iface(void) {}; + ~octoclock_uart_iface(void){}; - void write_uart(const std::string &buf); + void write_uart(const std::string& buf); std::string read_uart(double timeout); private: @@ -36,15 +39,16 @@ private: std::vector _cache; std::string _rxbuff; uint32_t _sequence; - uint32_t _proto_ver; + uint32_t _proto_ver; boost::system_time _last_cache_update; void _update_cache(); char _getchar(); }; -uart_iface::sptr octoclock_make_uart_iface(uhd::transport::udp_simple::sptr udp, uint32_t proto_ver); +uart_iface::sptr octoclock_make_uart_iface( + uhd::transport::udp_simple::sptr udp, uint32_t proto_ver); -} +} // namespace uhd #endif /* INCLUDED_OCTOCLOCK_UART_HPP */ -- cgit v1.2.3