summaryrefslogtreecommitdiffstats
path: root/tests/common
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-17 07:47:40 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-17 07:47:40 +0100
commit5f58ec2dbf656e9c29e14c28103a87c125797d52 (patch)
tree40f6903ef8eaa2ae10b0d05b6bd6479ada2332a9 /tests/common
parent3301638b091780c73fdbfba05be051507cd5b382 (diff)
downloadads1x1x-async-5f58ec2dbf656e9c29e14c28103a87c125797d52.tar.gz
ads1x1x-async-5f58ec2dbf656e9c29e14c28103a87c125797d52.tar.xz
ads1x1x-async-5f58ec2dbf656e9c29e14c28103a87c125797d52.zip
Add mode conversion tests
Diffstat (limited to 'tests/common')
-rw-r--r--tests/common/mod.rs2
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;