diff options
| author | Kieran Cawthray <kieranc@gmail.com> | 2021-10-18 23:14:39 +0200 |
|---|---|---|
| committer | Kieran Cawthray <kieranc@gmail.com> | 2021-10-18 23:14:39 +0200 |
| commit | ff1fce18d6188d8b23374613f07e281173f228e7 (patch) | |
| tree | 7d8bcf5448f86f31f092f4f554a8af167c225d7d /src/drivers/Cst816s.h | |
| parent | c4ab17f58707771256c6fffd8db63d32e2831610 (diff) | |
| parent | ab7c6e162f82674d176466d361b1f87a0d55cf4a (diff) | |
Merge remote-tracking branch 'upstream/develop' into pts-settings
Diffstat (limited to 'src/drivers/Cst816s.h')
| -rw-r--r-- | src/drivers/Cst816s.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/drivers/Cst816s.h b/src/drivers/Cst816s.h index 7b46c5d5..0fec8419 100644 --- a/src/drivers/Cst816s.h +++ b/src/drivers/Cst816s.h @@ -30,11 +30,20 @@ namespace Pinetime { Cst816S(Cst816S&&) = delete; Cst816S& operator=(Cst816S&&) = delete; - void Init(); + bool Init(); TouchInfos GetTouchInfo(); void Sleep(); void Wakeup(); + uint8_t GetChipId() const { + return chipId; + } + uint8_t GetVendorId() const { + return vendorId; + } + uint8_t GetFwVersion() const { + return fwVersion; + } private: // Unused/Unavailable commented out static constexpr uint8_t gestureIndex = 1; @@ -49,9 +58,12 @@ namespace Pinetime { //static constexpr uint8_t touchXYIndex = 7; //static constexpr uint8_t touchMiscIndex = 8; - uint8_t touchData[7]; TwiMaster& twiMaster; uint8_t twiAddress; + + uint8_t chipId; + uint8_t vendorId; + uint8_t fwVersion; }; } |
