From eb90226e4a18776e58b8c825a301607d8e7c1871 Mon Sep 17 00:00:00 2001 From: Mourad Latoundji Date: Thu, 18 Aug 2022 17:11:32 +0200 Subject: [PATCH] :art: (drivers): reformat header MCP4728 --- drivers/CoreQDAC/include/external/MCP4728.h | 48 ++++++++++----------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/drivers/CoreQDAC/include/external/MCP4728.h b/drivers/CoreQDAC/include/external/MCP4728.h index 3f75b9d9d4..a6ce453b71 100644 --- a/drivers/CoreQDAC/include/external/MCP4728.h +++ b/drivers/CoreQDAC/include/external/MCP4728.h @@ -24,9 +24,9 @@ namespace command { inline constexpr auto set_gain = uint8_t {0xC0}; namespace read { - + inline constexpr auto buffer_size = std::size_t {24}; - + } // namespace read } // namespace command @@ -45,20 +45,20 @@ namespace data { namespace voltage_reference { inline constexpr auto Vdd = uint8_t {0x00}; - + namespace internal { - + namespace channel { - + inline constexpr auto A = uint8_t {0x08}; inline constexpr auto B = uint8_t {0x04}; inline constexpr auto C = uint8_t {0x02}; inline constexpr auto D = uint8_t {0x01}; - + } // namespace channel - + inline constexpr auto all = uint8_t {0x0f}; - + } // namespace internal } // namespace voltage_reference @@ -68,41 +68,41 @@ namespace data { inline constexpr auto normal = uint8_t {0x00}; namespace channel { - + namespace A { - + inline constexpr auto normal = uint8_t {0x00}; inline constexpr auto powerDown1K = uint8_t {0x40}; inline constexpr auto powerDown100K = uint8_t {0x80}; inline constexpr auto powerDown500K = uint8_t {0xC0}; - + } // namespace A namespace B { - + inline constexpr auto normal = uint8_t {0x00}; inline constexpr auto powerDown1K = uint8_t {0x10}; inline constexpr auto powerDown100K = uint8_t {0x20}; inline constexpr auto powerDown500K = uint8_t {0x30}; - + } // namespace B namespace C { - + inline constexpr auto normal = uint8_t {0x00}; inline constexpr auto powerDown1K = uint8_t {0x04}; inline constexpr auto powerDown100K = uint8_t {0x08}; inline constexpr auto powerDown500K = uint8_t {0x0C}; - + } // namespace C namespace D { - + inline constexpr auto normal = uint8_t {0x00}; inline constexpr auto powerDown1K = uint8_t {0x01}; inline constexpr auto powerDown100K = uint8_t {0x02}; inline constexpr auto powerDown500K = uint8_t {0x03}; - + } // namespace D } // namespace channel @@ -111,24 +111,24 @@ namespace data { namespace gain { namespace x1 { - + inline constexpr auto all = uint8_t {0x00}; - + } namespace x2 { - + namespace channel { - + inline constexpr auto A = uint8_t {0x08}; inline constexpr auto B = uint8_t {0x04}; inline constexpr auto C = uint8_t {0x02}; inline constexpr auto D = uint8_t {0x01}; - + } // namespace channel - + inline constexpr auto all = uint8_t {0x0f}; - + } // namespace x2 } // namespace gain