summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-21 08:03:09 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-21 08:03:09 +0100
commit629c777edf94ddaec78837e614829f8dd346cccd (patch)
tree575b305935b4fcfbef18239211b47e03cbf4b9a8
parent9d5637b6d6d1e019e736ffbc6b983a4735aa50e1 (diff)
downloadads1x1x-async-629c777edf94ddaec78837e614829f8dd346cccd.tar.gz
ads1x1x-async-629c777edf94ddaec78837e614829f8dd346cccd.tar.xz
ads1x1x-async-629c777edf94ddaec78837e614829f8dd346cccd.zip
Remove references to SPI
-rw-r--r--README.md18
-rw-r--r--src/lib.rs20
2 files changed, 19 insertions, 19 deletions
diff --git a/README.md b/README.md
index f471bb5..ea4699f 100644
--- a/README.md
+++ b/README.md
@@ -46,18 +46,18 @@ thermocouples.
The devices operate either in continuous-conversion mode, or in a
single-shot mode that automatically powers down after a conversion.
Single-shot mode significantly reduces current consumption during idle
-periods. Data are transferred through a I2C or SPI.
+periods. Data is transferred through I2C.
Here is a comparison of the caracteristics of the devices:
-| Device | Resolution | Sample Rate | Channels | Interface | Multi-channel | Features |
-|---------|------------|--------------|----------|-----------|---------------|------------------------------|
-| ADS1013 | 12-bit | Max 3300 SPS | 1 | I2C | N/A | |
-| ADS1014 | 12-bit | Max 3300 SPS | 1 | I2C | N/A | Comparator, PGA |
-| ADS1015 | 12-bit | Max 3300 SPS | 4 | I2C | Multiplexed | Comparator, PGA |
-| ADS1113 | 16-bit | Max 860 SPS | 1 | I2C | N/A | |
-| ADS1114 | 16-bit | Max 860 SPS | 1 | I2C | N/A | Comparator, PGA |
-| ADS1115 | 16-bit | Max 860 SPS | 4 | I2C | Multiplexed | Comparator, PGA |
+| Device | Resolution | Sample Rate | Channels | Multi-channel | Features |
+|---------|------------|--------------|----------|---------------|------------------------------|
+| ADS1013 | 12-bit | Max 3300 SPS | 1 | N/A | |
+| ADS1014 | 12-bit | Max 3300 SPS | 1 | N/A | Comparator, PGA |
+| ADS1015 | 12-bit | Max 3300 SPS | 4 | Multiplexed | Comparator, PGA |
+| ADS1113 | 16-bit | Max 860 SPS | 1 | N/A | |
+| ADS1114 | 16-bit | Max 860 SPS | 1 | N/A | Comparator, PGA |
+| ADS1115 | 16-bit | Max 860 SPS | 4 | Multiplexed | Comparator, PGA |
Datasheets:
- [ADS101x](http://www.ti.com/lit/ds/symlink/ads1015.pdf)
diff --git a/src/lib.rs b/src/lib.rs
index d92f8bb..976fd23 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -52,18 +52,18 @@
//! The devices operate either in continuous-conversion mode, or in a
//! single-shot mode that automatically powers down after a conversion.
//! Single-shot mode significantly reduces current consumption during idle
-//! periods. Data are transferred through a I2C or SPI.
+//! periods. Data is transferred through I2C.
//!
//! Here is a comparison of the caracteristics of the devices:
//!
-//! | Device | Resolution | Sample Rate | Channels | Interface | Multi-channel | Features |
-//! |---------|------------|--------------|----------|-----------|---------------|------------------------------|
-//! | ADS1013 | 12-bit | Max 3300 SPS | 1 | I2C | N/A | |
-//! | ADS1014 | 12-bit | Max 3300 SPS | 1 | I2C | N/A | Comparator, PGA |
-//! | ADS1015 | 12-bit | Max 3300 SPS | 4 | I2C | Multiplexed | Comparator, PGA |
-//! | ADS1113 | 16-bit | Max 860 SPS | 1 | I2C | N/A | |
-//! | ADS1114 | 16-bit | Max 860 SPS | 1 | I2C | N/A | Comparator, PGA |
-//! | ADS1115 | 16-bit | Max 860 SPS | 4 | I2C | Multiplexed | Comparator, PGA |
+//! | Device | Resolution | Sample Rate | Channels | Multi-channel | Features |
+//! |---------|------------|--------------|----------|---------------|------------------------------|
+//! | ADS1013 | 12-bit | Max 3300 SPS | 1 | N/A | |
+//! | ADS1014 | 12-bit | Max 3300 SPS | 1 | N/A | Comparator, PGA |
+//! | ADS1015 | 12-bit | Max 3300 SPS | 4 | Multiplexed | Comparator, PGA |
+//! | ADS1113 | 16-bit | Max 860 SPS | 1 | N/A | |
+//! | ADS1114 | 16-bit | Max 860 SPS | 1 | N/A | Comparator, PGA |
+//! | ADS1115 | 16-bit | Max 860 SPS | 4 | Multiplexed | Comparator, PGA |
//!
//! Datasheets:
//! - [ADS101x](http://www.ti.com/lit/ds/symlink/ads1015.pdf)
@@ -202,7 +202,7 @@ use core::marker::PhantomData;
/// All possible errors in this crate
#[derive(Debug)]
pub enum Error<E> {
- /// I²C/SPI bus error
+ /// I²C bus error
Comm(E),
/// Invalid input data provided
InvalidInputData,