summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-17 08:05:50 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-17 08:05:50 +0100
commit91a8b5c46c12fc38427b55cbc83790b5a4af7892 (patch)
tree46cc50bed92a92b682a40e772625385570d5f3e1 /src
parent0ed9482e5935300fe22f462c9fb7c417418a7181 (diff)
downloadads1x1x-async-91a8b5c46c12fc38427b55cbc83790b5a4af7892.tar.gz
ads1x1x-async-91a8b5c46c12fc38427b55cbc83790b5a4af7892.tar.xz
ads1x1x-async-91a8b5c46c12fc38427b55cbc83790b5a4af7892.zip
Add default implementation for FSR
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 00c7a79..bb7112b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -394,6 +394,12 @@ impl Default for Config {
}
}
+impl Default for FullScaleRange {
+ fn default() -> Self {
+ FullScaleRange::Within2_048V
+ }
+}
+
/// ADS1x1x ADC driver
#[derive(Debug, Default)]
pub struct Ads1x1x<DI, IC, CONV, MODE> {