summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-20 19:21:50 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-20 19:21:50 +0100
commitfd6fe2ceada168e33a01cbdf9503f180cb30c58b (patch)
tree4be283bc16aa0a4abe126ea14fdcadde7683a1c1 /src/lib.rs
parent2a2f25b35c8411a5932e576b5d0969d3928c7209 (diff)
downloadads1x1x-async-fd6fe2ceada168e33a01cbdf9503f180cb30c58b.tar.gz
ads1x1x-async-fd6fe2ceada168e33a01cbdf9503f180cb30c58b.tar.xz
ads1x1x-async-fd6fe2ceada168e33a01cbdf9503f180cb30c58b.zip
Add function to read last measurement in continuous mode
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 4382e61..b825546 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -203,7 +203,9 @@ pub enum Error<E> {
/// I²C/SPI bus error
Comm(E),
/// Invalid input data provided
- InvalidInputData
+ InvalidInputData,
+ /// Continuous measurement was not started
+ NotStarted,
}
const DEVICE_BASE_ADDRESS : u8 = 0b100_1000;