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 }