Skip to content

Commit

Permalink
🎨 (drivers): reformat header MCP4728
Browse files Browse the repository at this point in the history
  • Loading branch information
MMyster committed Aug 18, 2022
1 parent dcf4122 commit eb90226
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions drivers/CoreQDAC/include/external/MCP4728.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit eb90226

Please sign in to comment.