pub struct DeviceState {
pub chip_id: u8,
pub status: StatusWord,
pub error: ErrorWord,
}Expand description
Result returned by Bmi323::init and
Bmi323Async::init.
Fields§
§chip_id: u8Value read from the CHIP_ID register.
status: StatusWordSnapshot of the STATUS register taken during init.
error: ErrorWordSnapshot of the ERR_REG register taken during init.
Trait Implementations§
Source§impl Clone for DeviceState
impl Clone for DeviceState
Source§fn clone(&self) -> DeviceState
fn clone(&self) -> DeviceState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceState
impl Debug for DeviceState
Source§impl Format for DeviceState
impl Format for DeviceState
Source§impl PartialEq for DeviceState
impl PartialEq for DeviceState
impl Copy for DeviceState
impl StructuralPartialEq for DeviceState
Auto Trait Implementations§
impl Freeze for DeviceState
impl RefUnwindSafe for DeviceState
impl Send for DeviceState
impl Sync for DeviceState
impl Unpin for DeviceState
impl UnsafeUnpin for DeviceState
impl UnwindSafe for DeviceState
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