enabled set_bandwidth
This commit is contained in:
@@ -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<I::Error>> {
|
||||
pub async fn set_bandwidth(&mut self, bandwidth: Bandwidth) -> Result<(), Error<I::Error>> {
|
||||
self.write_reg_controll_1(bandwidth.to_flags()).await
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user