summaryrefslogtreecommitdiffstats
path: root/src/devices/ic.rs
blob: 9795de6faca07564ac0286594f562eb2e0bd3abe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/// ICs
#[derive(PartialEq)]
pub enum ResolutionBits {
        _12,
        _16
}

pub trait Resolution : super::private::Sealed {
    const BITS : ResolutionBits;
}

/// ADS1013 IC marker
pub struct Ads1013(());
impl Resolution for Ads1013 {
    const BITS: ResolutionBits = ResolutionBits::_12;
}

/// ADS1113 IC marker
pub struct Ads1113(());
impl Resolution for Ads1113 {
    const BITS: ResolutionBits = ResolutionBits::_16;
}