diff options
author | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-07 20:22:59 +0100 |
---|---|---|
committer | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-07 20:22:59 +0100 |
commit | 483221e740ffaebe406ee428beb59fa136d70c7f (patch) | |
tree | f7fee2bbc46b97f1508d4b8bc2fec258695e4239 /src/lib.rs | |
parent | ec0ffcaa6d49ae7c6e3256f9742e996d7b0752c4 (diff) | |
download | ads1x1x-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.rs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; } |