diff options
author | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-08 19:03:13 +0100 |
---|---|---|
committer | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-08 19:03:13 +0100 |
commit | e31c1d944a814999bd80f86d6fd3fc7f604fc54b (patch) | |
tree | bc599a10045831f344de85fa37c6af6ce3f57336 /tests/common/mod.rs | |
parent | dbecb1c3af672b06e7443134e1efc7f5050e99ff (diff) | |
download | ads1x1x-async-e31c1d944a814999bd80f86d6fd3fc7f604fc54b.tar.gz ads1x1x-async-e31c1d944a814999bd80f86d6fd3fc7f604fc54b.tar.xz ads1x1x-async-e31c1d944a814999bd80f86d6fd3fc7f604fc54b.zip |
Add tests for setting the data rate
Diffstat (limited to 'tests/common/mod.rs')
-rw-r--r-- | tests/common/mod.rs | 7 |
1 files changed, 4 insertions, 3 deletions
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 { |