#[repr(C)]pub struct PamojaSht3xStatus {
pub bits: u16,
pub alert_pending: u8,
pub heater_on: u8,
pub humidity_tracking_alert: u8,
pub temperature_tracking_alert: u8,
pub reset_detected: u8,
pub command_failed: u8,
pub write_checksum_failed: u8,
}Expand description
A decoded SHT3x status register.
Fields§
§bits: u16The 16-bit status word the flags were read from.
alert_pending: u81 when at least one alert condition is pending.
heater_on: u81 while the on-die heater is running.
humidity_tracking_alert: u81 when a humidity tracking alert is set.
temperature_tracking_alert: u81 when a temperature tracking alert is set.
reset_detected: u81 when the part has reset since the flag was last cleared.
command_failed: u81 when the last command could not be processed.
write_checksum_failed: u81 when the last write failed its checksum.
Trait Implementations§
Source§impl Clone for PamojaSht3xStatus
impl Clone for PamojaSht3xStatus
Source§fn clone(&self) -> PamojaSht3xStatus
fn clone(&self) -> PamojaSht3xStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PamojaSht3xStatus
Source§impl Debug for PamojaSht3xStatus
impl Debug for PamojaSht3xStatus
impl Eq for PamojaSht3xStatus
Source§impl From<Status> for PamojaSht3xStatus
impl From<Status> for PamojaSht3xStatus
Source§impl PartialEq for PamojaSht3xStatus
impl PartialEq for PamojaSht3xStatus
Source§fn eq(&self, other: &PamojaSht3xStatus) -> bool
fn eq(&self, other: &PamojaSht3xStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaSht3xStatus
Auto Trait Implementations§
impl Freeze for PamojaSht3xStatus
impl RefUnwindSafe for PamojaSht3xStatus
impl Send for PamojaSht3xStatus
impl Sync for PamojaSht3xStatus
impl Unpin for PamojaSht3xStatus
impl UnsafeUnpin for PamojaSht3xStatus
impl UnwindSafe for PamojaSht3xStatus
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