pub struct Config { /* private fields */ }
Expand description
Configuration struct
Implementations§
source§impl Config
impl Config
pub fn pres_rate(&mut self, rate: PressureRate) -> &mut Self
pub fn pres_res(&mut self, res: PressureResolution) -> &mut Self
pub fn temp_rate(&mut self, rate: TemperatureRate) -> &mut Self
pub fn temp_res(&mut self, res: TemperatureResolution) -> &mut Self
sourcepub fn int_hl(&mut self, int_on_sdo_pin: bool) -> &mut Self
pub fn int_hl(&mut self, int_on_sdo_pin: bool) -> &mut Self
Interrupt (on SDO pin) active level
pub fn int_fifo(&mut self, int_on_fifo: bool) -> &mut Self
pub fn int_temp(&mut self, int_on_temp: bool) -> &mut Self
pub fn int_pres(&mut self, int_on_pres: bool) -> &mut Self
sourcepub fn temp_shift(&mut self, temp_shift_enable: bool) -> &mut Self
pub fn temp_shift(&mut self, temp_shift_enable: bool) -> &mut Self
Set temperature result bit-shift, Must be set to true when oversampling rate > 8 times
sourcepub fn pres_shift(&mut self, pres_shift_enable: bool) -> &mut Self
pub fn pres_shift(&mut self, pres_shift_enable: bool) -> &mut Self
Set pressure result bit-shift, Must be set to true when oversampling rate > 8 times
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin 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