aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/Hrs3300.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/Hrs3300.h')
-rw-r--r--src/drivers/Hrs3300.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/drivers/Hrs3300.h b/src/drivers/Hrs3300.h
index 8bbdc69a..6f721448 100644
--- a/src/drivers/Hrs3300.h
+++ b/src/drivers/Hrs3300.h
@@ -21,6 +21,11 @@ namespace Pinetime {
Hgain = 0x17
};
+ struct PackedHrsAls {
+ uint16_t hrs;
+ uint16_t als;
+ };
+
Hrs3300(TwiMaster& twiMaster, uint8_t twiAddress);
Hrs3300(const Hrs3300&) = delete;
Hrs3300& operator=(const Hrs3300&) = delete;
@@ -30,10 +35,7 @@ namespace Pinetime {
void Init();
void Enable();
void Disable();
- uint32_t ReadHrs();
- uint32_t ReadAls();
- void SetGain(uint8_t gain);
- void SetDrive(uint8_t drive);
+ PackedHrsAls ReadHrsAls();
private:
TwiMaster& twiMaster;