pub struct MsiData(/* private fields */);
Expand description
The layout of the MSI data element.
Note that the significant bits correspond to low bits of
Icr
.
Implementations§
source§impl MsiData
impl MsiData
sourcepub const fn with_vector(self, value: u8) -> Self
pub const fn with_vector(self, value: u8) -> Self
Bits: 0..8
sourcepub fn set_vector(&mut self, value: u8)
pub fn set_vector(&mut self, value: u8)
Bits: 0..8
sourcepub const fn delivery_mode(&self) -> u8
pub const fn delivery_mode(&self) -> u8
Bits: 8..11
sourcepub const fn with_delivery_mode(self, value: u8) -> Self
pub const fn with_delivery_mode(self, value: u8) -> Self
Bits: 8..11
sourcepub fn set_delivery_mode(&mut self, value: u8)
pub fn set_delivery_mode(&mut self, value: u8)
Bits: 8..11
sourcepub const fn destination_mode_logical(&self) -> bool
pub const fn destination_mode_logical(&self) -> bool
Bits: 11..12
sourcepub const fn with_destination_mode_logical(self, value: bool) -> Self
pub const fn with_destination_mode_logical(self, value: bool) -> Self
Bits: 11..12
sourcepub fn set_destination_mode_logical(&mut self, value: bool)
pub fn set_destination_mode_logical(&mut self, value: bool)
Bits: 11..12
sourcepub const fn with_assert(self, value: bool) -> Self
pub const fn with_assert(self, value: bool) -> Self
Bits: 14..15
sourcepub fn set_assert(&mut self, value: bool)
pub fn set_assert(&mut self, value: bool)
Bits: 14..15
sourcepub const fn trigger_mode_level(&self) -> bool
pub const fn trigger_mode_level(&self) -> bool
Bits: 15..16
sourcepub const fn with_trigger_mode_level(self, value: bool) -> Self
pub const fn with_trigger_mode_level(self, value: bool) -> Self
Bits: 15..16
sourcepub fn set_trigger_mode_level(&mut self, value: bool)
pub fn set_trigger_mode_level(&mut self, value: bool)
Bits: 15..16
Trait Implementations§
impl Copy for MsiData
Auto Trait Implementations§
impl Freeze for MsiData
impl RefUnwindSafe for MsiData
impl Send for MsiData
impl Sync for MsiData
impl Unpin for MsiData
impl UnwindSafe for MsiData
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)