diff options
| author | Avamander <avamander@gmail.com> | 2020-10-02 18:44:27 (GMT) |
|---|---|---|
| committer | Avamander <avamander@gmail.com> | 2020-10-02 18:44:27 (GMT) |
| commit | 40a643d203d2d21834dd2b35d83419a56a3939b6 (patch) | |
| tree | 522947ffe2e7c10f6e8c45a6e7d1e58d3521829b /src/components/FirmwareValidator/FirmwareValidator.h | |
| parent | 455d8319e4af521de4e24cfa423a4c06c4378a8d (diff) | |
Renamed Components/ to components/
Diffstat (limited to 'src/components/FirmwareValidator/FirmwareValidator.h')
| -rw-r--r-- | src/components/FirmwareValidator/FirmwareValidator.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/components/FirmwareValidator/FirmwareValidator.h b/src/components/FirmwareValidator/FirmwareValidator.h new file mode 100644 index 0000000..aa576d8 --- /dev/null +++ b/src/components/FirmwareValidator/FirmwareValidator.h @@ -0,0 +1,18 @@ +#pragma once + +#include <cstdint> + +namespace Pinetime { + namespace Controllers { + class FirmwareValidator { + public: + void Validate(); + bool IsValidated() const; + + void Reset(); + private: + static constexpr uint32_t validBitAdress {0x7BFE8}; + static constexpr uint32_t validBitValue {1}; + }; + } +} |
