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 /tests/common | |
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 'tests/common')
-rw-r--r-- | tests/common/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/common/mod.rs b/tests/common/mod.rs index ec63ec0..886967c 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -18,6 +18,9 @@ pub struct BitFlags; 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 DR2 : u16 = 0b0000_0000_1000_0000; pub const DR1 : u16 = 0b0000_0000_0100_0000; pub const DR0 : u16 = 0b0000_0000_0010_0000; @@ -71,6 +74,7 @@ macro_rules! impl_new_destroy { impl_new_destroy!(Ads1013, new_ads1013, destroy_ads1013, I2cTrans, interface::I2cInterface<I2cMock>); impl_new_destroy!(Ads1113, new_ads1113, destroy_ads1113, I2cTrans, interface::I2cInterface<I2cMock>); impl_new_destroy!(Ads1014, new_ads1014, destroy_ads1014, I2cTrans, interface::I2cInterface<I2cMock>); +impl_new_destroy!(Ads1015, new_ads1015, destroy_ads1015, I2cTrans, interface::I2cInterface<I2cMock>); #[macro_export] macro_rules! assert_would_block { |