Struct bme280_multibus::Status
source · [−]pub struct Status(_);Expand description
Status register
Implementations
sourceimpl Status
impl Status
sourcepub const fn reset() -> Status
pub const fn reset() -> Status
Get the reset value of the ctrl_meas register.
Example
use bme280_multibus::Status;
assert_eq!(Status::reset(), Status::default());sourcepub const fn measuring(&self) -> bool
pub const fn measuring(&self) -> bool
Measuring field.
Automatically set to true whenever a conversion is running and back to
false when the results have been transferred to the data registers.
Example
assert!(!bme280_multibus::Status::reset().measuring());sourcepub const fn im_update(&self) -> bool
pub const fn im_update(&self) -> bool
im_update field.
Automatically set to true when the NVM data are being copied to image
registers and back to false when the copying is done.
The data is copied at power-on-reset and before every conversion.
Example
assert!(!bme280_multibus::Status::reset().im_update());Trait Implementations
impl Copy for Status
impl Eq for Status
impl StructuralEq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more