aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/b200/b200_cores.hpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2020-03-02 15:25:13 -0800
committeratrnati <54334261+atrnati@users.noreply.github.com>2020-03-03 08:51:32 -0600
commit876d4150aa3da531ddd687b48afada6e43f79146 (patch)
treefd72a71419f4cd800d4e500cfcaded4dfc8dc367 /host/lib/usrp/b200/b200_cores.hpp
parent1393553d623bdf4ba40d5435c9719b6ce990d9ac (diff)
downloaduhd-876d4150aa3da531ddd687b48afada6e43f79146.tar.gz
uhd-876d4150aa3da531ddd687b48afada6e43f79146.tar.bz2
uhd-876d4150aa3da531ddd687b48afada6e43f79146.zip
uhd: Apply clang-format against all .cpp and .hpp files in host/
Note: template_lvbitx.{cpp,hpp} need to be excluded from the list of files that clang-format gets applied against.
Diffstat (limited to 'host/lib/usrp/b200/b200_cores.hpp')
-rw-r--r--host/lib/usrp/b200/b200_cores.hpp26
1 files changed, 12 insertions, 14 deletions
diff --git a/host/lib/usrp/b200/b200_cores.hpp b/host/lib/usrp/b200/b200_cores.hpp
index 324938a73..7054fd068 100644
--- a/host/lib/usrp/b200/b200_cores.hpp
+++ b/host/lib/usrp/b200/b200_cores.hpp
@@ -10,25 +10,22 @@
#define INCLUDED_B200_CORES_HPP
#include <uhd/utils/noncopyable.hpp>
-#include <uhdlib/usrp/cores/spi_core_3000.hpp>
#include <uhdlib/usrp/common/adf4001_ctrl.hpp>
+#include <uhdlib/usrp/cores/spi_core_3000.hpp>
#include <memory>
#include <mutex>
-class b200_local_spi_core : uhd::noncopyable, public uhd::spi_iface {
-
+class b200_local_spi_core : uhd::noncopyable, public uhd::spi_iface
+{
public:
typedef std::shared_ptr<b200_local_spi_core> sptr;
- enum perif_t {
- CODEC, PLL
- };
+ enum perif_t { CODEC, PLL };
b200_local_spi_core(uhd::wb_iface::sptr iface, perif_t default_perif);
- virtual uint32_t transact_spi(
- int which_slave,
- const uhd::spi_config_t &config,
+ virtual uint32_t transact_spi(int which_slave,
+ const uhd::spi_config_t& config,
uint32_t data,
size_t num_bits,
bool readback);
@@ -39,13 +36,14 @@ public:
static sptr make(uhd::wb_iface::sptr iface, perif_t default_perif = CODEC);
private:
- spi_core_3000::sptr _spi_core;
- perif_t _current_perif;
- perif_t _last_perif;
- std::mutex _mutex;
+ spi_core_3000::sptr _spi_core;
+ perif_t _current_perif;
+ perif_t _last_perif;
+ std::mutex _mutex;
};
-class b200_ref_pll_ctrl : public uhd::usrp::adf4001_ctrl {
+class b200_ref_pll_ctrl : public uhd::usrp::adf4001_ctrl
+{
public:
typedef std::shared_ptr<b200_ref_pll_ctrl> sptr;