pub struct Config {
pub standby: Standby,
pub filter: u8,
pub spi_3wire: bool,
}Expand description
The configuration register (0xF5, config).
The data sheet lists the IIR filter coefficients (off, 2, 4, 8, 16) and places the field in bits 4:2, but does not publish which three-bit code selects which coefficient, so the field is carried here as its raw code. Writes to this register may be ignored in normal mode; write it in sleep mode.
The default is the register’s reset state, 0x00.
Fields§
§standby: StandbyNormal-mode standby period, t_sb[2:0] in bits 7:5.
filter: u8IIR filter setting, the raw filter[2:0] code in bits 4:2.
spi_3wire: boolEnables the 3-wire SPI interface, spi3w_en in bit 0.
Implementations§
Trait Implementations§
impl Copy for Config
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more