summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2023-01-01 19:55:26 +0100
committerDaniel Friesel <derf@finalrewind.org>2023-01-01 19:55:26 +0100
commit3828a9b13774c0efaa90e61fd129bbf80bd12a5c (patch)
tree438cdcd8c39382a470c2c869f8f31415fbc25425 /include
parent7f0db02066a7554b959fa264fcc200b2a2e4c929 (diff)
ads111x: add readRaw function
Diffstat (limited to 'include')
-rw-r--r--include/driver/ads111x.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/driver/ads111x.h b/include/driver/ads111x.h
index f25dcde..54cd876 100644
--- a/include/driver/ads111x.h
+++ b/include/driver/ads111x.h
@@ -8,6 +8,8 @@
#ifndef ADS111x_H
#define ADS111x_H
+#include <stdint.h>
+
class ADS111x {
private:
ADS111x(const ADS111x &copy);
@@ -80,6 +82,7 @@ class ADS111x {
};
void configure(unsigned short config);
+ int16_t readRaw();
float readVoltage();
};