summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-11 17:54:44 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-11 17:54:44 +0100
commitbc0515cd9960d51fbcf367557b3c102196eb210c (patch)
tree0505ab34ec19b9b88ba05f44d36246c3a122eaad /src/lib.rs
parent3779cf1770e1be03d60623d965f5e56897fbfa43 (diff)
downloadads1x1x-async-bc0515cd9960d51fbcf367557b3c102196eb210c.tar.gz
ads1x1x-async-bc0515cd9960d51fbcf367557b3c102196eb210c.tar.xz
ads1x1x-async-bc0515cd9960d51fbcf367557b3c102196eb210c.zip
Rename data rate to be specific to the resolution
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 4b9cbeb..d4b10e7 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -131,9 +131,9 @@ pub mod mode {
pub struct Continuous(());
}
-/// Data rate
+/// Data rate for ADS1013, ADS1014, ADS1015, ADS1018
#[derive(Debug, Clone, PartialEq)]
-pub enum DataRate {
+pub enum DataRate12Bit {
/// 128 SPS
Sps128,
/// 250 SPS