diff options
author | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-11 07:51:02 +0100 |
---|---|---|
committer | Diego Barrios Romero <eldruin@gmail.com> | 2018-11-11 07:51:02 +0100 |
commit | 8b9e9ecdb85a30ac1c57fe6b96498cae6ad9f7cc (patch) | |
tree | 1c1464f861566df450b607f5f8024e41caea26c0 /src/lib.rs | |
parent | f28b8e1379f5a2c2f0283a280c58fef61629f1f6 (diff) | |
download | ads1x1x-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.rs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |