From 28126fee8ce253e67ab737927ff0d89ebc24e419 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Thu, 29 Jul 2021 23:14:25 +0200 Subject: Add value-based one-shot trait to ease driver usage in functions --- src/lib.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 418fc46..90a0f62 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -237,7 +237,7 @@ impl BitFlags { } mod channels; -pub use crate::channels::channel; +pub use crate::channels::{channel, ChannelSelection}; mod construction; mod conversion; pub use crate::conversion::{ConvertMeasurement, ConvertThreshold}; @@ -250,14 +250,16 @@ mod types; use crate::types::Config; pub use crate::types::{ mode, Ads1x1x, ComparatorLatching, ComparatorMode, ComparatorPolarity, ComparatorQueue, - DataRate12Bit, DataRate16Bit, Error, FullScaleRange, ModeChangeError, SlaveAddr, + DataRate12Bit, DataRate16Bit, DynamicOneShot, Error, FullScaleRange, ModeChangeError, + SlaveAddr, }; mod private { - use super::{ic, interface}; + use super::{ic, interface, Ads1x1x}; pub trait Sealed {} impl Sealed for interface::I2cInterface {} + impl Sealed for Ads1x1x {} impl Sealed for ic::Resolution12Bit {} impl Sealed for ic::Resolution16Bit {} -- cgit v1.2.3-54-g00ecf