summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-11 07:51:02 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-11 07:51:02 +0100
commit8b9e9ecdb85a30ac1c57fe6b96498cae6ad9f7cc (patch)
tree1c1464f861566df450b607f5f8024e41caea26c0 /src/lib.rs
parentf28b8e1379f5a2c2f0283a280c58fef61629f1f6 (diff)
downloadads1x1x-async-8b9e9ecdb85a30ac1c57fe6b96498cae6ad9f7cc.tar.gz
ads1x1x-async-8b9e9ecdb85a30ac1c57fe6b96498cae6ad9f7cc.tar.xz
ads1x1x-async-8b9e9ecdb85a30ac1c57fe6b96498cae6ad9f7cc.zip
Add support for channel selection
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 3170f20..ef016fb 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -237,6 +237,9 @@ struct BitFlags;
impl BitFlags {
const OP_MODE : u16 = 0b0000_0001_0000_0000;
const OS : u16 = 0b1000_0000_0000_0000;
+ const MUX2 : u16 = 0b0100_0000_0000_0000;
+ const MUX1 : u16 = 0b0010_0000_0000_0000;
+ const MUX0 : u16 = 0b0001_0000_0000_0000;
const DR2 : u16 = 0b0000_0000_1000_0000;
const DR1 : u16 = 0b0000_0000_0100_0000;
const DR0 : u16 = 0b0000_0000_0010_0000;