summaryrefslogtreecommitdiffstats
path: root/src/ic.rs
blob: 4ed42d9e0a5243338a3c57f980da63a0a6923100 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/// ICs
use private;

pub struct Resolution12Bit(pub(crate) ());
pub struct Resolution16Bit(pub(crate) ());

macro_rules! ic_marker {
    ($name:ident) => {
        /// IC marker
        pub struct $name(());
    };
}

ic_marker!(Ads1013);
ic_marker!(Ads1113);
ic_marker!(Ads1014);
ic_marker!(Ads1114);
ic_marker!(Ads1015);
ic_marker!(Ads1115);

pub trait Tier2Features: private::Sealed {}

macro_rules! tier2_features {
    ($name:ident) => {
        impl Tier2Features for $name {}
    };
}

tier2_features!(Ads1014);
tier2_features!(Ads1114);
tier2_features!(Ads1015);
tier2_features!(Ads1115);