mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-24 07:21:18 -04:00
Formatted code (#1007)
* Updated style * Updated files * fixed new line * Updated spacing * File fix WIP * Updated to clang 13 * updated comment style * Removed old comment code
This commit is contained in:
parent
7aca7ce74d
commit
033c4e9a5b
599 changed files with 70746 additions and 66896 deletions
|
@ -27,33 +27,32 @@
|
|||
namespace max5864 {
|
||||
|
||||
enum class Mode : uint8_t {
|
||||
Shutdown = 0x00,
|
||||
Idle = 0x01,
|
||||
Receive = 0x02,
|
||||
Transmit = 0x03,
|
||||
Transceiver = 0x04,
|
||||
Standby = 0x05,
|
||||
Shutdown = 0x00,
|
||||
Idle = 0x01,
|
||||
Receive = 0x02,
|
||||
Transmit = 0x03,
|
||||
Transceiver = 0x04,
|
||||
Standby = 0x05,
|
||||
};
|
||||
|
||||
class MAX5864 {
|
||||
public:
|
||||
constexpr MAX5864(
|
||||
spi::arbiter::Target& target
|
||||
) : _target(target)
|
||||
{
|
||||
}
|
||||
public:
|
||||
constexpr MAX5864(
|
||||
spi::arbiter::Target& target)
|
||||
: _target(target) {
|
||||
}
|
||||
|
||||
void init() {
|
||||
/* Shut down explicitly, as there is no other reset mechanism. */
|
||||
set_mode(Mode::Shutdown);
|
||||
}
|
||||
void init() {
|
||||
/* Shut down explicitly, as there is no other reset mechanism. */
|
||||
set_mode(Mode::Shutdown);
|
||||
}
|
||||
|
||||
void set_mode(const Mode mode);
|
||||
void set_mode(const Mode mode);
|
||||
|
||||
private:
|
||||
spi::arbiter::Target& _target;
|
||||
private:
|
||||
spi::arbiter::Target& _target;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace max5864
|
||||
|
||||
#endif/*__MAX5864_H__*/
|
||||
#endif /*__MAX5864_H__*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue