#[repr(transparent)]struct InterruptCmdH(u32);
Expand description
Interrupt Command Register 2, R/W
Tuple Fields§
§0: u32
Implementations§
source§impl InterruptCmdH
impl InterruptCmdH
const DESTINATION_BITS: usize = 8usize
const DESTINATION_OFFSET: usize = 24usize
sourceconst fn destination(&self) -> u8
const fn destination(&self) -> u8
The meaning of destination depends on the destination mode:
For the logical destination mode, destination holds a bit mask made up
of the cores that are candidates for receiving the interrupt.
In the single-core case, this value is 1
, in the multi-core case,
the n
low-order bits needs to be set (with n
being the number of CPU cores).
Setting the n
low-order bits marks all available cores as candidates for receiving
interrupts and thereby balancing the number of interrupts between the cores.
Bits: 24..32
sourceconst fn with_destination_checked(self, value: u8) -> Result<Self, ()>
const fn with_destination_checked(self, value: u8) -> Result<Self, ()>
The meaning of destination depends on the destination mode:
For the logical destination mode, destination holds a bit mask made up
of the cores that are candidates for receiving the interrupt.
In the single-core case, this value is 1
, in the multi-core case,
the n
low-order bits needs to be set (with n
being the number of CPU cores).
Setting the n
low-order bits marks all available cores as candidates for receiving
interrupts and thereby balancing the number of interrupts between the cores.
Bits: 24..32
sourceconst fn with_destination(self, value: u8) -> Self
const fn with_destination(self, value: u8) -> Self
The meaning of destination depends on the destination mode:
For the logical destination mode, destination holds a bit mask made up
of the cores that are candidates for receiving the interrupt.
In the single-core case, this value is 1
, in the multi-core case,
the n
low-order bits needs to be set (with n
being the number of CPU cores).
Setting the n
low-order bits marks all available cores as candidates for receiving
interrupts and thereby balancing the number of interrupts between the cores.
Bits: 24..32
sourcefn set_destination(&mut self, value: u8)
fn set_destination(&mut self, value: u8)
The meaning of destination depends on the destination mode:
For the logical destination mode, destination holds a bit mask made up
of the cores that are candidates for receiving the interrupt.
In the single-core case, this value is 1
, in the multi-core case,
the n
low-order bits needs to be set (with n
being the number of CPU cores).
Setting the n
low-order bits marks all available cores as candidates for receiving
interrupts and thereby balancing the number of interrupts between the cores.
Bits: 24..32
sourcefn set_destination_checked(&mut self, value: u8) -> Result<(), ()>
fn set_destination_checked(&mut self, value: u8) -> Result<(), ()>
The meaning of destination depends on the destination mode:
For the logical destination mode, destination holds a bit mask made up
of the cores that are candidates for receiving the interrupt.
In the single-core case, this value is 1
, in the multi-core case,
the n
low-order bits needs to be set (with n
being the number of CPU cores).
Setting the n
low-order bits marks all available cores as candidates for receiving
interrupts and thereby balancing the number of interrupts between the cores.
Bits: 24..32
Trait Implementations§
source§impl Clone for InterruptCmdH
impl Clone for InterruptCmdH
source§fn clone(&self) -> InterruptCmdH
fn clone(&self) -> InterruptCmdH
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InterruptCmdH
impl Debug for InterruptCmdH
source§impl Default for InterruptCmdH
impl Default for InterruptCmdH
source§impl From<InterruptCmdH> for u32
impl From<InterruptCmdH> for u32
source§fn from(v: InterruptCmdH) -> u32
fn from(v: InterruptCmdH) -> u32
source§impl From<u32> for InterruptCmdH
impl From<u32> for InterruptCmdH
impl Copy for InterruptCmdH
Auto Trait Implementations§
impl Freeze for InterruptCmdH
impl RefUnwindSafe for InterruptCmdH
impl Send for InterruptCmdH
impl Sync for InterruptCmdH
impl Unpin for InterruptCmdH
impl UnwindSafe for InterruptCmdH
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)