pub struct Status(/* private fields */);Expand description
Status register
Implementations§
Source§impl Status
impl Status
Sourcepub const RESET: Self
pub const RESET: Self
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 StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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