aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include/uhdlib
diff options
context:
space:
mode:
authorBrent Stapleton <brent.stapleton@ettus.com>2019-08-15 14:08:19 -0700
committerMartin Braun <martin.braun@ettus.com>2019-11-26 11:49:25 -0800
commitbb7ed79f012faa4c59e4c312dddc46822968e6c4 (patch)
tree8c73ad80dbdb6f3c1c58596e7fd0555d81caa344 /host/lib/include/uhdlib
parent0f59f6a8e5bde2b11bc3136ff68048dfb325252f (diff)
downloaduhd-bb7ed79f012faa4c59e4c312dddc46822968e6c4.tar.gz
uhd-bb7ed79f012faa4c59e4c312dddc46822968e6c4.tar.bz2
uhd-bb7ed79f012faa4c59e4c312dddc46822968e6c4.zip
gpio_atr_3000: Formatting changes
Applying clang format for upcoming changes. clang-format -i --style=file host/lib/usrp/cores/gpio_atr_3000.cpp clang-format -i --style=file \ host/lib/include/uhdlib/usrp/cores/gpio_atr_3000.hpp
Diffstat (limited to 'host/lib/include/uhdlib')
-rw-r--r--host/lib/include/uhdlib/usrp/cores/gpio_atr_3000.hpp39
1 files changed, 25 insertions, 14 deletions
diff --git a/host/lib/include/uhdlib/usrp/cores/gpio_atr_3000.hpp b/host/lib/include/uhdlib/usrp/cores/gpio_atr_3000.hpp
index d03a395f8..c9585449f 100644
--- a/host/lib/include/uhdlib/usrp/cores/gpio_atr_3000.hpp
+++ b/host/lib/include/uhdlib/usrp/cores/gpio_atr_3000.hpp
@@ -9,16 +9,17 @@
#define INCLUDED_LIBUHD_USRP_GPIO_CORE_3000_HPP
#include <uhd/config.hpp>
+#include <uhd/types/wb_iface.hpp>
#include <uhd/usrp/dboard_iface.hpp>
#include <uhd/usrp/gpio_defs.hpp>
#include <uhd/utils/noncopyable.hpp>
#include <uhdlib/usrp/gpio_defs.hpp>
-#include <uhd/types/wb_iface.hpp>
#include <boost/shared_ptr.hpp>
namespace uhd { namespace usrp { namespace gpio_atr {
-class gpio_atr_3000 : uhd::noncopyable {
+class gpio_atr_3000 : uhd::noncopyable
+{
public:
typedef boost::shared_ptr<gpio_atr_3000> sptr;
@@ -53,8 +54,8 @@ public:
/*!
* Select the ATR mode for all bits in the mask
*
- * \param mode the mode to apply {ATR = outputs driven by ATR state machine, GPIO = outputs static}
- * \param mask apply the mode to all non-zero bits in the mask
+ * \param mode the mode to apply {ATR = outputs driven by ATR state machine, GPIO =
+ * outputs static} \param mask apply the mode to all non-zero bits in the mask
*/
virtual void set_atr_mode(const gpio_atr_mode_t mode, const uint32_t mask) = 0;
@@ -73,7 +74,9 @@ public:
* \param value the value to write
* \param mask only writes to the bits where mask is non-zero
*/
- virtual void set_atr_reg(const gpio_atr_reg_t atr, const uint32_t value, const uint32_t mask = MASK_SET_ALL) = 0;
+ virtual void set_atr_reg(const gpio_atr_reg_t atr,
+ const uint32_t value,
+ const uint32_t mask = MASK_SET_ALL) = 0;
/*!
* Write to a static GPIO output
@@ -81,7 +84,8 @@ public:
* \param value the value to write
* \param mask only writes to the bits where mask is non-zero
*/
- virtual void set_gpio_out(const uint32_t value, const uint32_t mask = MASK_SET_ALL) = 0;
+ virtual void set_gpio_out(
+ const uint32_t value, const uint32_t mask = MASK_SET_ALL) = 0;
/*!
* Read the state of the GPIO pins
@@ -101,7 +105,8 @@ public:
virtual void set_gpio_attr(const gpio_attr_t attr, const uint32_t value) = 0;
};
-class db_gpio_atr_3000 {
+class db_gpio_atr_3000
+{
public:
typedef boost::shared_ptr<db_gpio_atr_3000> sptr;
@@ -126,10 +131,11 @@ public:
* Configure the GPIO mode for all pins in the daughterboard connector
*
* \param unit the side of the daughterboard interface to configure (TX or RX)
- * \param value if value[i] is 1, the i'th bit is in ATR mode otherwise it is in GPIO mode
- * \param mask mask
+ * \param value if value[i] is 1, the i'th bit is in ATR mode otherwise it is in GPIO
+ * mode \param mask mask
*/
- virtual void set_pin_ctrl(const db_unit_t unit, const uint32_t value, const uint32_t mask) = 0;
+ virtual void set_pin_ctrl(
+ const db_unit_t unit, const uint32_t value, const uint32_t mask) = 0;
virtual uint32_t get_pin_ctrl(const db_unit_t unit) = 0;
@@ -140,7 +146,8 @@ public:
* \param value if value[i] is 1, the i'th bit is an output otherwise it is an input
* \param mask mask
*/
- virtual void set_gpio_ddr(const db_unit_t unit, const uint32_t value, const uint32_t mask) = 0;
+ virtual void set_gpio_ddr(
+ const db_unit_t unit, const uint32_t value, const uint32_t mask) = 0;
virtual uint32_t get_gpio_ddr(const db_unit_t unit) = 0;
@@ -152,7 +159,10 @@ public:
* \param value the value to write
* \param mask mask
*/
- virtual void set_atr_reg(const db_unit_t unit, const gpio_atr_reg_t atr, const uint32_t value, const uint32_t mask) = 0;
+ virtual void set_atr_reg(const db_unit_t unit,
+ const gpio_atr_reg_t atr,
+ const uint32_t value,
+ const uint32_t mask) = 0;
virtual uint32_t get_atr_reg(const db_unit_t unit, const gpio_atr_reg_t atr) = 0;
@@ -163,7 +173,8 @@ public:
* \param value the value to write
* \param mask mask
*/
- virtual void set_gpio_out(const db_unit_t unit, const uint32_t value, const uint32_t mask) = 0;
+ virtual void set_gpio_out(
+ const db_unit_t unit, const uint32_t value, const uint32_t mask) = 0;
virtual uint32_t get_gpio_out(const db_unit_t unit) = 0;
@@ -178,6 +189,6 @@ public:
virtual uint32_t read_gpio(const db_unit_t unit) = 0;
};
-}}} //namespaces
+}}} // namespace uhd::usrp::gpio_atr
#endif /* INCLUDED_LIBUHD_USRP_GPIO_CORE_3000_HPP */