From 0edd5527161809dfbc0c76e39c462e3a4f00beb7 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 23 Nov 2024 22:49:30 +0100 Subject: Improve documentation. (#32) * Use `non_exhaustive`. * Improve docs. --- src/devices/features/tier1.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/devices/features/tier1.rs') diff --git a/src/devices/features/tier1.rs b/src/devices/features/tier1.rs index c6aa8cd..3a8beb9 100644 --- a/src/devices/features/tier1.rs +++ b/src/devices/features/tier1.rs @@ -1,4 +1,4 @@ -//! Common functions +//! Features supported on all ADS1x1x devices. use crate::{ic, Ads1x1x, BitFlags as BF, DataRate12Bit, DataRate16Bit, Error, Register}; @@ -6,7 +6,7 @@ impl Ads1x1x where I2C: embedded_hal::i2c::I2c, { - /// Set data rate + /// Sets the data rate. pub fn set_data_rate(&mut self, rate: DataRate12Bit) -> Result<(), Error> { use crate::DataRate12Bit as DR; let cfg = self.config.clone(); @@ -29,7 +29,7 @@ impl Ads1x1x where I2C: embedded_hal::i2c::I2c, { - /// Set data rate + /// Sets the data rate. pub fn set_data_rate(&mut self, rate: DataRate16Bit) -> Result<(), Error> { use crate::DataRate16Bit as DR; let cfg = self.config.clone(); -- cgit v1.2.3-54-g00ecf