Skip to main content

SystemStatus

Struct SystemStatus 

Source
pub struct SystemStatus { /* private fields */ }

Implementations§

Source§

impl SystemStatus

Source

pub fn seq_status(&self) -> bool

bit 6 - Read the seq_status field.

Channel sequencer running (true = sequence in progress).

Source

pub fn i_2_c_speed(&self) -> bool

bit 5 - Read the i_2_c_speed field.

I2C high-speed mode active.

Source

pub fn osr_done(&self) -> bool

bit 3 - Read the osr_done field.

Oversampling complete. Write 1 to clear.

Source

pub fn crc_err_fuse(&self) -> bool

bit 2 - Read the crc_err_fuse field.

Power-up CRC error; device configuration not loaded correctly.

Source

pub fn crc_err_in(&self) -> bool

bit 1 - Read the crc_err_in field.

CRC error on incoming data. Write 1 to clear. Blocks register writes until cleared.

Source

pub fn bor(&self) -> bool

bit 0 - Read the bor field.

Brown-out reset indicator. Write 1 to clear. Set on every power-up.

Source

pub fn set_osr_done(&mut self, value: bool)

bit 3 - Set the osr_done field.

Oversampling complete. Write 1 to clear.

Source

pub fn set_crc_err_in(&mut self, value: bool)

bit 1 - Set the crc_err_in field.

CRC error on incoming data. Write 1 to clear. Blocks register writes until cleared.

Source

pub fn set_bor(&mut self, value: bool)

bit 0 - Set the bor field.

Brown-out reset indicator. Write 1 to clear. Set on every power-up.

Trait Implementations§

Source§

impl BitAnd for SystemStatus

Source§

type Output = SystemStatus

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl BitAndAssign for SystemStatus

Source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Source§

impl BitOr for SystemStatus

Source§

type Output = SystemStatus

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOrAssign for SystemStatus

Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl BitXor for SystemStatus

Source§

type Output = SystemStatus

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl BitXorAssign for SystemStatus

Source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Source§

impl Clone for SystemStatus

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for SystemStatus

Source§

impl Debug for SystemStatus

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for SystemStatus

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for SystemStatus

Source§

impl Fieldset for SystemStatus

Source§

const METADATA: FieldsetMetadata

Metadata describing some properties of the fieldset
Source§

const ZERO: Self

Get a zero-initialized instance of the fieldset
Source§

fn as_slice_mut(&mut self) -> &mut [u8] ⓘ

Get the fieldset as a mutable slice
Source§

impl Format for SystemStatus

Available on crate feature defmt only.
Source§

fn format(&self, f: Formatter<'_>)

Writes the defmt representation of self to fmt.
Source§

impl From<SystemStatus> for [u8; 1]

Source§

fn from(val: SystemStatus) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 1]> for SystemStatus

Source§

fn from(bits: [u8; 1]) -> Self

Converts to this type from the input type.
Source§

impl Not for SystemStatus

Source§

type Output = SystemStatus

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation using logical or bitwise negation. Read more
Source§

impl PartialEq for SystemStatus

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for SystemStatus

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.