summaryrefslogtreecommitdiffstats
path: root/src/devices
diff options
context:
space:
mode:
authorDiego Barrios Romero <eldruin@gmail.com>2018-11-08 19:06:51 +0100
committerDiego Barrios Romero <eldruin@gmail.com>2018-11-08 19:06:51 +0100
commite316baaf8ca226caa2447041e1d895fb72ed4f19 (patch)
treec57ad86bcc725fe767c1b8e90fcffb1aa990404a /src/devices
parent3b8dcf32a8ed30f9e2cd305d2fd8b1e53e0150a4 (diff)
downloadads1x1x-async-e316baaf8ca226caa2447041e1d895fb72ed4f19.tar.gz
ads1x1x-async-e316baaf8ca226caa2447041e1d895fb72ed4f19.tar.xz
ads1x1x-async-e316baaf8ca226caa2447041e1d895fb72ed4f19.zip
Add marker trait for tier 2 features
Diffstat (limited to 'src/devices')
-rw-r--r--src/devices/ic.rs10
1 files changed, 10 insertions, 0 deletions
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);