summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-08 19:04:33 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-08 19:04:33 +0100
commit4f0445cb5de68a82d26ff981a0f3d0b72b0cd418 (patch)
tree988c3e5965e8ad940a1cc95f04dd52a92811e9d6 /src/lib.rs
parent2c80bf6e016a678728d2255292db708db01172f2 (diff)
downloadads1x1x-async-4f0445cb5de68a82d26ff981a0f3d0b72b0cd418.tar.gz
ads1x1x-async-4f0445cb5de68a82d26ff981a0f3d0b72b0cd418.tar.xz
ads1x1x-async-4f0445cb5de68a82d26ff981a0f3d0b72b0cd418.zip
Add invalid input data threshold
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 5050ece..adbd128 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -63,7 +63,9 @@ use core::marker::PhantomData;
#[derive(Debug)]
pub enum Error<E> {
/// I²C/SPI bus error
- Comm(E)
+ Comm(E),
+ /// Invalid input data provided
+ InvalidInputData
}
const DEVICE_BASE_ADDRESS : u8 = 0b100_1000;