summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-07 20:22:59 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-07 20:22:59 +0100
commit483221e740ffaebe406ee428beb59fa136d70c7f (patch)
treef7fee2bbc46b97f1508d4b8bc2fec258695e4239 /src/lib.rs
parentec0ffcaa6d49ae7c6e3256f9742e996d7b0752c4 (diff)
downloadads1x1x-async-483221e740ffaebe406ee428beb59fa136d70c7f.tar.gz
ads1x1x-async-483221e740ffaebe406ee428beb59fa136d70c7f.tar.xz
ads1x1x-async-483221e740ffaebe406ee428beb59fa136d70c7f.zip
Add support for one-shot measurements
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 00ffd72..f49fd98 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -53,6 +53,7 @@
//TODO #![deny(warnings)]
#![no_std]
+extern crate nb;
extern crate embedded_hal as hal;
use core::marker::PhantomData;
@@ -133,6 +134,9 @@ struct BitFlags;
impl BitFlags {
const OP_MODE : u16 = 0b0000_0001_0000_0000;
const OS : u16 = 0b1000_0000_0000_0000;
+ const DR2 : u16 = 0b0000_0000_1000_0000;
+ const DR1 : u16 = 0b0000_0000_0100_0000;
+ const DR0 : u16 = 0b0000_0000_0010_0000;
}