From 62a9825c41fd0b859eeb2aa3a25b8f2a2eba58b5 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Sun, 11 Nov 2018 18:04:37 +0100 Subject: Add support for setting the data rate in 16bit devices --- src/lib.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index d4b10e7..4abe8f8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -150,6 +150,27 @@ pub enum DataRate12Bit { Sps3300 } + +/// Data rate for ADS1113, ADS1114, ADS1115, ADS1118 +#[derive(Debug, Clone, PartialEq)] +pub enum DataRate16Bit { + /// 8 SPS + Sps8, + /// 16 SPS + Sps16, + /// 32 SPS + Sps32, + /// 64 SPS + Sps64, + /// 128 SPS (default) + Sps128, + /// 250 SPS + Sps250, + /// 475 SPS + Sps475, + /// 860 SPS + Sps860 +} /// Comparator mode (only for ADS1x14, ADS1x15) #[derive(Debug, Clone, PartialEq)] pub enum ComparatorMode { -- cgit v1.2.3-54-g00ecf