From e31c1d944a814999bd80f86d6fd3fc7f604fc54b Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Thu, 8 Nov 2018 19:03:13 +0100 Subject: Add tests for setting the data rate --- tests/common/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/common/mod.rs') diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 0efbb8a..0a97690 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -14,12 +14,13 @@ impl Register { } pub struct BitFlags; +#[allow(unused)] impl BitFlags { //pub const OP_MODE : u16 = 0b0000_0001_0000_0000; pub const OS : u16 = 0b1000_0000_0000_0000; - //pub const DR2 : u16 = 0b0000_0000_1000_0000; - //pub const DR1 : u16 = 0b0000_0000_0100_0000; - //pub const DR0 : u16 = 0b0000_0000_0010_0000; + pub const DR2 : u16 = 0b0000_0000_1000_0000; + pub const DR1 : u16 = 0b0000_0000_0100_0000; + pub const DR0 : u16 = 0b0000_0000_0010_0000; } pub struct Config { -- cgit v1.2.3-54-g00ecf