diff options
author | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-17 07:47:40 +0100 |
---|---|---|
committer | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-17 07:47:40 +0100 |
commit | 5f58ec2dbf656e9c29e14c28103a87c125797d52 (patch) | |
tree | 40f6903ef8eaa2ae10b0d05b6bd6479ada2332a9 /tests/common/mod.rs | |
parent | 3301638b091780c73fdbfba05be051507cd5b382 (diff) | |
download | ads1x1x-async-5f58ec2dbf656e9c29e14c28103a87c125797d52.tar.gz ads1x1x-async-5f58ec2dbf656e9c29e14c28103a87c125797d52.tar.xz ads1x1x-async-5f58ec2dbf656e9c29e14c28103a87c125797d52.zip |
Add mode conversion tests
Diffstat (limited to 'tests/common/mod.rs')
-rw-r--r-- | tests/common/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/common/mod.rs b/tests/common/mod.rs index dc66431..ee78ffe 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -16,11 +16,11 @@ 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 MUX2 : u16 = 0b0100_0000_0000_0000; pub const MUX1 : u16 = 0b0010_0000_0000_0000; pub const MUX0 : u16 = 0b0001_0000_0000_0000; + pub const OP_MODE : u16 = 0b0000_0001_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; |