#[repr(transparent)]pub struct Feature(pub u32);
Expand description
Feature enable register.
Tuple Fields§
§0: u32
Implementations§
Source§impl Feature
impl Feature
Sourcepub const fn preempt(&self) -> bool
pub const fn preempt(&self) -> bool
Preemptive priority interrupt enable 0: Disabled 1: Enabled.
Sourcepub fn set_preempt(&mut self, val: bool)
pub fn set_preempt(&mut self, val: bool)
Preemptive priority interrupt enable 0: Disabled 1: Enabled.
Sourcepub fn set_vectored(&mut self, val: bool)
pub fn set_vectored(&mut self, val: bool)
Vector mode enable 0: Disabled 1: Enabled.
Trait Implementations§
impl Copy for Feature
impl Eq for Feature
impl StructuralPartialEq for Feature
Auto Trait Implementations§
impl Freeze for Feature
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnwindSafe for Feature
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