From e316baaf8ca226caa2447041e1d895fb72ed4f19 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Thu, 8 Nov 2018 19:06:51 +0100 Subject: Add marker trait for tier 2 features --- src/devices/ic.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/devices/ic.rs b/src/devices/ic.rs index 95eb8bd..e6e9d16 100644 --- a/src/devices/ic.rs +++ b/src/devices/ic.rs @@ -22,3 +22,13 @@ macro_rules! ic_marker { ic_marker!(Ads1013, _12); ic_marker!(Ads1113, _16); ic_marker!(Ads1014, _12); + +pub trait Tier2Features : super::private::Sealed { } + +macro_rules! tier2_features { + ($name:ident) => { + impl Tier2Features for $name {} + } +} + +tier2_features!(Ads1014); -- cgit v1.2.3-54-g00ecf