pub struct InterruptControlValue { /* private fields */ }Expand description
A bitfield for controlling interrupts on the device.
Implementations§
Source§impl InterruptControlValue
impl InterruptControlValue
Sourcepub fn mode(&self) -> InterruptControlMode
pub fn mode(&self) -> InterruptControlMode
Get the current interrupt mode.
Sourcepub fn set_mode(&mut self, mode: InterruptControlMode)
pub fn set_mode(&mut self, mode: InterruptControlMode)
Set the interrupt mode.
Trait Implementations§
Source§impl Clone for InterruptControlValue
impl Clone for InterruptControlValue
Source§fn clone(&self) -> InterruptControlValue
fn clone(&self) -> InterruptControlValue
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 InterruptControlValue
impl Debug for InterruptControlValue
Source§impl Default for InterruptControlValue
impl Default for InterruptControlValue
Source§fn default() -> InterruptControlValue
fn default() -> InterruptControlValue
Returns the “default value” for a type. Read more
Source§impl From<InterruptControlValue> for bool
impl From<InterruptControlValue> for bool
Source§fn from(value: InterruptControlValue) -> Self
fn from(value: InterruptControlValue) -> Self
Converts to this type from the input type.
Source§impl From<InterruptControlValue> for u8
impl From<InterruptControlValue> for u8
Source§fn from(value: InterruptControlValue) -> Self
fn from(value: InterruptControlValue) -> Self
Converts to this type from the input type.
Source§impl From<u8> for InterruptControlValue
impl From<u8> for InterruptControlValue
Source§impl PartialEq for InterruptControlValue
impl PartialEq for InterruptControlValue
impl Copy for InterruptControlValue
impl StructuralPartialEq for InterruptControlValue
Auto Trait Implementations§
impl Freeze for InterruptControlValue
impl RefUnwindSafe for InterruptControlValue
impl Send for InterruptControlValue
impl Sync for InterruptControlValue
impl Unpin for InterruptControlValue
impl UnwindSafe for InterruptControlValue
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