pub struct Gstat(/* private fields */);Expand description
Global status register.
Contains status flags that indicate reset, driver errors, and undervoltage.
Flags can be cleared by writing 1 to the corresponding bit.
Implementations§
Source§impl Gstat
impl Gstat
Sourcepub fn reset(&self) -> bool
pub fn reset(&self) -> bool
Reset flag.
Indicates that the IC has been reset since the last read. All registers have been cleared to reset values.
Sourcepub fn clear_reset(&mut self) -> &mut Self
pub fn clear_reset(&mut self) -> &mut Self
Clear the reset flag by setting it to 1.
Sourcepub fn drv_err(&self) -> bool
pub fn drv_err(&self) -> bool
Driver error flag.
Indicates the driver has been shut down due to overtemperature or short circuit detection. Read DRV_STATUS for details.
Sourcepub fn clear_drv_err(&mut self) -> &mut Self
pub fn clear_drv_err(&mut self) -> &mut Self
Clear the driver error flag by setting it to 1.
Sourcepub fn uv_cp(&self) -> bool
pub fn uv_cp(&self) -> bool
Undervoltage on charge pump.
Indicates an undervoltage condition. The driver is disabled. This flag is not latched and clears automatically.
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Check if any error flags are set.
Trait Implementations§
impl Copy for Gstat
impl Eq for Gstat
impl ReadableRegister for Gstat
impl StructuralPartialEq for Gstat
impl WritableRegister for Gstat
Auto Trait Implementations§
impl Freeze for Gstat
impl RefUnwindSafe for Gstat
impl Send for Gstat
impl Sync for Gstat
impl Unpin for Gstat
impl UnwindSafe for Gstat
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