#[repr(transparent)]pub struct Flags(pub u32);Expand description
Flags Register
Tuple Fields§
§0: u32Implementations§
Source§impl Flags
impl Flags
Sourcepub const fn set_to_flag(&mut self, val: bool)
pub const fn set_to_flag(&mut self, val: bool)
TIMEOUT fault flag
Sourcepub const fn miscom_flag(&self) -> bool
pub const fn miscom_flag(&self) -> bool
MISCOMPARE fault flag
Sourcepub const fn set_miscom_flag(&mut self, val: bool)
pub const fn set_miscom_flag(&mut self, val: bool)
MISCOMPARE fault flag
Sourcepub const fn set_seq_flag(&mut self, val: bool)
pub const fn set_seq_flag(&mut self, val: bool)
SEQUENCE fault flag
Sourcepub const fn set_cnt_flag(&mut self, val: bool)
pub const fn set_cnt_flag(&mut self, val: bool)
CONTROL fault flag
Sourcepub const fn state_flag(&self) -> bool
pub const fn state_flag(&self) -> bool
STATE fault flag
Sourcepub const fn set_state_flag(&mut self, val: bool)
pub const fn set_state_flag(&mut self, val: bool)
STATE fault flag
Sourcepub const fn set_addr_flag(&mut self, val: bool)
pub const fn set_addr_flag(&mut self, val: bool)
ADDRESS fault flag
Sourcepub const fn set_por_flag(&mut self, val: bool)
pub const fn set_por_flag(&mut self, val: bool)
Power-on reset flag
Trait Implementations§
impl Copy for Flags
impl Eq for Flags
impl StructuralPartialEq for Flags
Auto Trait Implementations§
impl Freeze for Flags
impl RefUnwindSafe for Flags
impl Send for Flags
impl Sync for Flags
impl Unpin for Flags
impl UnwindSafe for Flags
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