pub struct Config {
pub standby: Standby,
pub filter: Filter,
pub spi_3wire: bool,
}Expand description
The configuration register (0xF5, config).
Writes may be ignored in normal mode; write it in sleep mode. The default is the
reset state, 0x00.
Fields§
§standby: StandbyNormal-mode standby period, t_sb[2:0] in bits 7:5.
filter: FilterIIR filter coefficient, filter[2:0] 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