Format header files
In my PR updating clang-format, I forgot to also format the headers.
This commit is contained in:
parent
09db67e003
commit
96165a8541
55 changed files with 144 additions and 0 deletions
|
|
@ -4,15 +4,18 @@
|
|||
namespace Pinetime {
|
||||
namespace Drivers {
|
||||
class TwiMaster;
|
||||
|
||||
class Bma421 {
|
||||
public:
|
||||
enum class DeviceTypes : uint8_t { Unknown, BMA421, BMA425 };
|
||||
|
||||
struct Values {
|
||||
uint32_t steps;
|
||||
int16_t x;
|
||||
int16_t y;
|
||||
int16_t z;
|
||||
};
|
||||
|
||||
Bma421(TwiMaster& twiMaster, uint8_t twiAddress);
|
||||
Bma421(const Bma421&) = delete;
|
||||
Bma421& operator=(const Bma421&) = delete;
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ namespace Pinetime {
|
|||
DoubleTap = 0x0B,
|
||||
LongPress = 0x0C
|
||||
};
|
||||
|
||||
struct TouchInfos {
|
||||
uint16_t x = 0;
|
||||
uint16_t y = 0;
|
||||
|
|
@ -38,9 +39,11 @@ namespace Pinetime {
|
|||
uint8_t GetChipId() const {
|
||||
return chipId;
|
||||
}
|
||||
|
||||
uint8_t GetVendorId() const {
|
||||
return vendorId;
|
||||
}
|
||||
|
||||
uint8_t GetFwVersion() const {
|
||||
return fwVersion;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ namespace Pinetime {
|
|||
enum class BitOrder : uint8_t { Msb_Lsb, Lsb_Msb };
|
||||
enum class Modes : uint8_t { Mode0, Mode1, Mode2, Mode3 };
|
||||
enum class Frequencies : uint8_t { Freq8Mhz };
|
||||
|
||||
struct Parameters {
|
||||
BitOrder bitOrder;
|
||||
Modes mode;
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
namespace Pinetime {
|
||||
namespace Drivers {
|
||||
class Spi;
|
||||
|
||||
class SpiNorFlash {
|
||||
public:
|
||||
explicit SpiNorFlash(Spi& spi);
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
namespace Pinetime {
|
||||
namespace Drivers {
|
||||
class Spi;
|
||||
|
||||
class St7789 {
|
||||
public:
|
||||
explicit St7789(Spi& spi, uint8_t pinDataCommand);
|
||||
|
|
|
|||
|
|
@ -9,9 +9,11 @@ namespace Pinetime {
|
|||
void Setup(uint8_t timeoutSeconds);
|
||||
void Start();
|
||||
void Kick();
|
||||
|
||||
ResetReasons ResetReason() const {
|
||||
return resetReason;
|
||||
}
|
||||
|
||||
static const char* ResetReasonToString(ResetReasons reason);
|
||||
|
||||
private:
|
||||
|
|
@ -23,6 +25,7 @@ namespace Pinetime {
|
|||
public:
|
||||
WatchdogView(const Watchdog& watchdog) : watchdog {watchdog} {
|
||||
}
|
||||
|
||||
Watchdog::ResetReasons ResetReason() const {
|
||||
return watchdog.ResetReason();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue