diff options
author | Jean-François Milants <jf@codingfield.com> | 2021-10-10 16:49:10 +0200 |
---|---|---|
committer | Jean-François Milants <jf@codingfield.com> | 2021-10-10 16:49:10 +0200 |
commit | 91b2e50252f488b490ce6659293d633b029c34c7 (patch) | |
tree | ef9f0325f56fb22f7ce4a79321b61ad5da415a46 /src/drivers/Cst816s.h | |
parent | 92aeae73dee5bb16f669806621a9b735f2b0ce07 (diff) | |
parent | 6d0e68d6260044dcce09ebf879a48e314987f808 (diff) |
Merge branch 'Riksu9000-update_touch_driver' into develop
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; }; } |