From 5cd361340635aafe8806c82805622bc6afc4c4d7 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 19 Jan 2024 15:09:19 +0100 Subject: Remove `I2cInterface`. (#20) * Merge `ReadData` and `WriteData` traits. * Remove `I2cInterface`. * Update changelog. * Fix links. --- src/lib.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index a9046ed..c020afc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -22,9 +22,9 @@ //! - Disable the comparator. See: [`disable_comparator()`]. //! //! [`into_continuous()`]: struct.Ads1x1x.html#method.into_continuous -//! [read_os]: struct.Ads1x1x.html#method.read +//! [read_os]: struct.Ads1x1x.html#method.read-1 //! [`start()`]: struct.Ads1x1x.html#method.start -//! [read_cont]: struct.Ads1x1x.html#impl-OneShot%3CAds1x1x%3CDI%2C%20IC%2C%20CONV%2C%20OneShot%3E%2C%20i16%2C%20CH%3E +//! [read_cont]: struct.Ads1x1x.html#method.read //! [`set_data_rate()`]: struct.Ads1x1x.html#method.set_data_rate //! [`set_full_scale_range()`]: struct.Ads1x1x.html#method.set_full_scale_range //! [`is_measurement_in_progress()`]: struct.Ads1x1x.html#method.is_measurement_in_progress @@ -242,8 +242,6 @@ pub use crate::conversion::{ConvertMeasurement, ConvertThreshold}; mod devices; #[doc(hidden)] pub mod ic; -#[doc(hidden)] -pub mod interface; mod types; use crate::types::Config; pub use crate::types::{ @@ -253,11 +251,10 @@ pub use crate::types::{ }; mod private { - use super::{ic, interface, Ads1x1x}; + use super::{ic, Ads1x1x}; pub trait Sealed {} - impl Sealed for interface::I2cInterface {} - impl Sealed for Ads1x1x {} + impl Sealed for Ads1x1x {} impl Sealed for ic::Resolution12Bit {} impl Sealed for ic::Resolution16Bit {} -- cgit v1.2.3-54-g00ecf