From 48b2619a1374fe723401bb92c2abbd9856400c85 Mon Sep 17 00:00:00 2001 From: Niklas Kapelle Date: Tue, 10 Feb 2026 12:05:08 +0100 Subject: [PATCH] enabled set_bandwidth --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 2814637..75e5dd6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -179,7 +179,7 @@ pub enum DataRate { /// Note: X/Y/Z channel measurements are taken sequentially. Delay Time among those /// measurements is 1/3 of the Measurement Time defined as the bandwidth. #[derive(Debug, Clone, Copy)] -enum Bandwidth { +pub enum Bandwidth { /// 6.6ms Bw6_6ms, @@ -340,9 +340,9 @@ where } /// Set the bandwidth selection bits to adjust the length of the decimation filter. They control the duration - /// of each measurement. + /// of each measurement. They also impacts the maximum data rate. #[inline] - async fn set_bandwidth(&mut self, bandwidth: Bandwidth) -> Result<(), Error> { + pub async fn set_bandwidth(&mut self, bandwidth: Bandwidth) -> Result<(), Error> { self.write_reg_controll_1(bandwidth.to_flags()).await }