From 483221e740ffaebe406ee428beb59fa136d70c7f Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Wed, 7 Nov 2018 20:22:59 +0100 Subject: Add support for one-shot measurements --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib.rs') 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; } -- cgit v1.2.3-54-g00ecf