diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -124,6 +124,15 @@ pub enum ComparatorMode { Window } +/// Comparator polarity (only for ADS1x14, ADS1x15) +#[derive(Debug, Clone)] +pub enum ComparatorPolarity { + /// Active low (default) + ActiveLow, + /// Active high + ActiveHigh +} + /// Possible slave addresses #[derive(Debug, Clone)] pub enum SlaveAddr { @@ -168,6 +177,7 @@ impl BitFlags { const DR1 : u16 = 0b0000_0000_0100_0000; const DR0 : u16 = 0b0000_0000_0010_0000; const COMP_MODE : u16 = 0b0000_0000_0001_0000; + const COMP_POL : u16 = 0b0000_0000_0000_1000; } |