Changed access modified indentation

This commit is contained in:
Avamander
2021-04-24 12:00:45 +03:00
parent 40d45d923b
commit 6989854519
84 changed files with 175 additions and 175 deletions

View File

@@ -5,7 +5,7 @@ namespace Pinetime {
namespace Drivers {
class TwiMaster;
class Bma421 {
public:
public:
struct Values {
uint32_t steps;
int16_t x;
@@ -30,7 +30,7 @@ namespace Pinetime {
bool IsOk() const;
private:
private:
void Reset();
TwiMaster& twiMaster;

View File

@@ -5,7 +5,7 @@
namespace Pinetime {
namespace Drivers {
class BufferProvider {
public:
public:
virtual bool GetNextBuffer(uint8_t** buffer, size_t& size) = 0;
};
}

View File

@@ -5,7 +5,7 @@
namespace Pinetime {
namespace Drivers {
class Cst816S {
public:
public:
enum class Gestures : uint8_t {
None = 0x00,
SlideDown = 0x01,
@@ -38,7 +38,7 @@ namespace Pinetime {
void Sleep();
void Wakeup();
private:
private:
static constexpr uint8_t pinIrq = 28;
static constexpr uint8_t pinReset = 10;
static constexpr uint8_t lastTouchId = 0x0f;

View File

@@ -5,7 +5,7 @@
namespace Pinetime {
namespace Drivers {
class Hrs3300 {
public:
public:
enum class Registers : uint8_t {
Id = 0x00,
Enable = 0x01,
@@ -35,7 +35,7 @@ namespace Pinetime {
void SetGain(uint8_t gain);
void SetDrive(uint8_t drive);
private:
private:
TwiMaster& twiMaster;
uint8_t twiAddress;

View File

@@ -5,11 +5,11 @@
namespace Pinetime {
namespace Drivers {
class InternalFlash {
public:
public:
static void ErasePage(uint32_t address);
static void WriteWord(uint32_t address, uint32_t value);
private:
private:
static inline void Wait();
};
}

View File

@@ -6,7 +6,7 @@
namespace Pinetime {
namespace Drivers {
class Spi {
public:
public:
Spi(SpiMaster& spiMaster, uint8_t pinCsn);
Spi(const Spi&) = delete;
Spi& operator=(const Spi&) = delete;
@@ -20,7 +20,7 @@ namespace Pinetime {
void Sleep();
void Wakeup();
private:
private:
SpiMaster& spiMaster;
uint8_t pinCsn;
};

View File

@@ -9,7 +9,7 @@
namespace Pinetime {
namespace Drivers {
class SpiMaster {
public:
public:
;
enum class SpiModule : uint8_t { SPI0, SPI1 };
enum class BitOrder : uint8_t { Msb_Lsb, Lsb_Msb };
@@ -42,7 +42,7 @@ namespace Pinetime {
void Sleep();
void Wakeup();
private:
private:
void SetupWorkaroundForFtpan58(NRF_SPIM_Type* spim, uint32_t ppi_channel, uint32_t gpiote_channel);
void DisableWorkaroundForFtpan58(NRF_SPIM_Type* spim, uint32_t ppi_channel, uint32_t gpiote_channel);
void PrepareTx(const volatile uint32_t bufferAddress, const volatile size_t size);

View File

@@ -6,7 +6,7 @@ namespace Pinetime {
namespace Drivers {
class Spi;
class SpiNorFlash {
public:
public:
explicit SpiNorFlash(Spi& spi);
SpiNorFlash(const SpiNorFlash&) = delete;
SpiNorFlash& operator=(const SpiNorFlash&) = delete;
@@ -38,7 +38,7 @@ namespace Pinetime {
void Sleep();
void Wakeup();
private:
private:
enum class Commands : uint8_t {
PageProgram = 0x02,
Read = 0x03,

View File

@@ -6,7 +6,7 @@ namespace Pinetime {
namespace Drivers {
class Spi;
class St7789 {
public:
public:
explicit St7789(Spi& spi, uint8_t pinDataCommand);
St7789(const St7789&) = delete;
St7789& operator=(const St7789&) = delete;
@@ -28,7 +28,7 @@ namespace Pinetime {
void Sleep();
void Wakeup();
private:
private:
Spi& spi;
uint8_t pinDataCommand;
uint8_t verticalScrollingStartAddress = 0;

View File

@@ -7,7 +7,7 @@
namespace Pinetime {
namespace Drivers {
class TwiMaster {
public:
public:
enum class Modules { TWIM1 };
enum class Frequencies { Khz100, Khz250, Khz400 };
enum class ErrorCodes { NoError, TransactionFailed };
@@ -26,7 +26,7 @@ namespace Pinetime {
void Sleep();
void Wakeup();
private:
private:
ErrorCodes Read(uint8_t deviceAddress, uint8_t* buffer, size_t size, bool stop);
ErrorCodes Write(uint8_t deviceAddress, const uint8_t* data, size_t size, bool stop);
void FixHwFreezed();

View File

@@ -4,7 +4,7 @@
namespace Pinetime {
namespace Drivers {
class Watchdog {
public:
public:
enum class ResetReasons { ResetPin, Watchdog, SoftReset, CpuLockup, SystemOff, LpComp, DebugInterface, NFC, HardReset };
void Setup(uint8_t timeoutSeconds);
void Start();
@@ -14,20 +14,20 @@ namespace Pinetime {
}
static const char* ResetReasonToString(ResetReasons reason);
private:
private:
ResetReasons resetReason;
ResetReasons ActualResetReason() const;
};
class WatchdogView {
public:
public:
WatchdogView(const Watchdog& watchdog) : watchdog {watchdog} {
}
Watchdog::ResetReasons ResetReason() const {
return watchdog.ResetReason();
}
private:
private:
const Watchdog& watchdog;
};
}