summaryrefslogtreecommitdiffstats
path: root/tests/common/mod.rs
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-17 07:51:12 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-17 07:51:12 +0100
commit9d005392012213dc12527b913a9ea4f72b97368c (patch)
treea7636f5dacb56190aaa15f06d2524ed8d6b9c753 /tests/common/mod.rs
parent5f58ec2dbf656e9c29e14c28103a87c125797d52 (diff)
downloadads1x1x-async-9d005392012213dc12527b913a9ea4f72b97368c.tar.gz
ads1x1x-async-9d005392012213dc12527b913a9ea4f72b97368c.tar.xz
ads1x1x-async-9d005392012213dc12527b913a9ea4f72b97368c.zip
Add support for setting the full-scale range (PGA)
Diffstat (limited to 'tests/common/mod.rs')
-rw-r--r--tests/common/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/common/mod.rs b/tests/common/mod.rs
index ee78ffe..8714a36 100644
--- a/tests/common/mod.rs
+++ b/tests/common/mod.rs
@@ -20,6 +20,9 @@ impl BitFlags {
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;