summaryrefslogtreecommitdiffstats
path: root/tests/common/mod.rs
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2019-03-30 13:36:06 +0200
committerDiego Barrios Romero <eldruin@gmail.com>2019-03-31 13:41:26 +0200
commit50223ad02e2f487540107e320c8bef40a9849582 (patch)
tree58b4e44e2261940d07aba96b8d8e83457e641f53 /tests/common/mod.rs
parentab1221e175f2da577c7a3fb510b5ae5cf41b0697 (diff)
downloadads1x1x-async-50223ad02e2f487540107e320c8bef40a9849582.tar.gz
ads1x1x-async-50223ad02e2f487540107e320c8bef40a9849582.tar.xz
ads1x1x-async-50223ad02e2f487540107e320c8bef40a9849582.zip
Format code
Diffstat (limited to 'tests/common/mod.rs')
-rw-r--r--tests/common/mod.rs40
1 files changed, 20 insertions, 20 deletions
diff --git a/tests/common/mod.rs b/tests/common/mod.rs
index ae3236c..223f97a 100644
--- a/tests/common/mod.rs
+++ b/tests/common/mod.rs
@@ -9,31 +9,31 @@ pub const DEVICE_ADDRESS: u8 = 0b100_1000;
pub struct Register;
#[allow(unused)]
impl Register {
- pub const CONVERSION : u8 = 0x00;
- pub const CONFIG : u8 = 0x01;
- pub const LOW_TH : u8 = 0x02;
- pub const HIGH_TH : u8 = 0x03;
+ pub const CONVERSION: u8 = 0x00;
+ pub const CONFIG: u8 = 0x01;
+ pub const LOW_TH: u8 = 0x02;
+ pub const HIGH_TH: u8 = 0x03;
}
pub struct BitFlags;
#[allow(unused)]
impl BitFlags {
- 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 PGA2 : u16 = 0b0000_1000_0000_0000;
- pub const PGA1 : u16 = 0b0000_0100_0000_0000;
- pub const PGA0 : u16 = 0b0000_0010_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;
- pub const COMP_MODE : u16 = 0b0000_0000_0001_0000;
- pub const COMP_POL : u16 = 0b0000_0000_0000_1000;
- pub const COMP_LAT : u16 = 0b0000_0000_0000_0100;
- pub const COMP_QUE1 : u16 = 0b0000_0000_0000_0010;
- pub const COMP_QUE0 : u16 = 0b0000_0000_0000_0001;
+ 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 PGA2: u16 = 0b0000_1000_0000_0000;
+ pub const PGA1: u16 = 0b0000_0100_0000_0000;
+ pub const PGA0: u16 = 0b0000_0010_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;
+ pub const COMP_MODE: u16 = 0b0000_0000_0001_0000;
+ pub const COMP_POL: u16 = 0b0000_0000_0000_1000;
+ pub const COMP_LAT: u16 = 0b0000_0000_0000_0100;
+ pub const COMP_QUE1: u16 = 0b0000_0000_0000_0010;
+ pub const COMP_QUE0: u16 = 0b0000_0000_0000_0001;
}
pub struct Config {