#[repr(transparent)]struct SlotL(u32);
Expand description
Entry in the redirection table. Lower Half.
Tuple Fields§
§0: u32
Implementations§
source§impl SlotL
impl SlotL
const VECTOR_BITS: usize = 8usize
const VECTOR_OFFSET: usize = 0usize
const DELIVERY_MODE_BITS: usize = 3usize
const DELIVERY_MODE_OFFSET: usize = 8usize
const DESTINATION_MODE_BITS: usize = 1usize
const DESTINATION_MODE_OFFSET: usize = 11usize
const DELIVERY_PENDING_BITS: usize = 1usize
const DELIVERY_PENDING_OFFSET: usize = 12usize
const POLARITY_BITS: usize = 1usize
const POLARITY_OFFSET: usize = 13usize
const REMOTE_IRR_BITS: usize = 1usize
const REMOTE_IRR_OFFSET: usize = 14usize
const TRIGGER_MODE_BITS: usize = 1usize
const TRIGGER_MODE_OFFSET: usize = 15usize
const MASK_BITS: usize = 1usize
const MASK_OFFSET: usize = 16usize
sourceconst fn vector(&self) -> u8
const fn vector(&self) -> u8
Interrupt vector in the “Interrupt Descriptor Table (IDT)” will be activated when the corresponding external interrupt triggers.
Bits: 0..8
sourceconst fn with_vector_checked(self, value: u8) -> Result<Self, ()>
const fn with_vector_checked(self, value: u8) -> Result<Self, ()>
Interrupt vector in the “Interrupt Descriptor Table (IDT)” will be activated when the corresponding external interrupt triggers.
Bits: 0..8
sourceconst fn with_vector(self, value: u8) -> Self
const fn with_vector(self, value: u8) -> Self
Interrupt vector in the “Interrupt Descriptor Table (IDT)” will be activated when the corresponding external interrupt triggers.
Bits: 0..8
sourcefn set_vector(&mut self, value: u8)
fn set_vector(&mut self, value: u8)
Interrupt vector in the “Interrupt Descriptor Table (IDT)” will be activated when the corresponding external interrupt triggers.
Bits: 0..8
sourcefn set_vector_checked(&mut self, value: u8) -> Result<(), ()>
fn set_vector_checked(&mut self, value: u8) -> Result<(), ()>
Interrupt vector in the “Interrupt Descriptor Table (IDT)” will be activated when the corresponding external interrupt triggers.
Bits: 0..8
sourceconst fn delivery_mode(&self) -> u8
const fn delivery_mode(&self) -> u8
The delivery mode denotes the way the interrupts will be delivered to the local CPU cores, respectively to their local APICs.
- 0: Fixed (send to all cores from the destination mask)
- 1: Lowest priority (send to the lowest priority core from destination mask)
- 2-7: System management / initialization / external interrupts…
Bits: 8..11
sourceconst fn with_delivery_mode_checked(self, value: u8) -> Result<Self, ()>
const fn with_delivery_mode_checked(self, value: u8) -> Result<Self, ()>
The delivery mode denotes the way the interrupts will be delivered to the local CPU cores, respectively to their local APICs.
- 0: Fixed (send to all cores from the destination mask)
- 1: Lowest priority (send to the lowest priority core from destination mask)
- 2-7: System management / initialization / external interrupts…
Bits: 8..11
sourceconst fn with_delivery_mode(self, value: u8) -> Self
const fn with_delivery_mode(self, value: u8) -> Self
The delivery mode denotes the way the interrupts will be delivered to the local CPU cores, respectively to their local APICs.
- 0: Fixed (send to all cores from the destination mask)
- 1: Lowest priority (send to the lowest priority core from destination mask)
- 2-7: System management / initialization / external interrupts…
Bits: 8..11
sourcefn set_delivery_mode(&mut self, value: u8)
fn set_delivery_mode(&mut self, value: u8)
The delivery mode denotes the way the interrupts will be delivered to the local CPU cores, respectively to their local APICs.
- 0: Fixed (send to all cores from the destination mask)
- 1: Lowest priority (send to the lowest priority core from destination mask)
- 2-7: System management / initialization / external interrupts…
Bits: 8..11
sourcefn set_delivery_mode_checked(&mut self, value: u8) -> Result<(), ()>
fn set_delivery_mode_checked(&mut self, value: u8) -> Result<(), ()>
The delivery mode denotes the way the interrupts will be delivered to the local CPU cores, respectively to their local APICs.
- 0: Fixed (send to all cores from the destination mask)
- 1: Lowest priority (send to the lowest priority core from destination mask)
- 2-7: System management / initialization / external interrupts…
Bits: 8..11
sourceconst fn destination_mode(&self) -> bool
const fn destination_mode(&self) -> bool
The destination mode defines how the value stored in destination will be interpreted. Local (true) or physical destination.
Bits: 11..12
sourceconst fn with_destination_mode_checked(self, value: bool) -> Result<Self, ()>
const fn with_destination_mode_checked(self, value: bool) -> Result<Self, ()>
The destination mode defines how the value stored in destination will be interpreted. Local (true) or physical destination.
Bits: 11..12
sourceconst fn with_destination_mode(self, value: bool) -> Self
const fn with_destination_mode(self, value: bool) -> Self
The destination mode defines how the value stored in destination will be interpreted. Local (true) or physical destination.
Bits: 11..12
sourcefn set_destination_mode(&mut self, value: bool)
fn set_destination_mode(&mut self, value: bool)
The destination mode defines how the value stored in destination will be interpreted. Local (true) or physical destination.
Bits: 11..12
sourcefn set_destination_mode_checked(&mut self, value: bool) -> Result<(), ()>
fn set_destination_mode_checked(&mut self, value: bool) -> Result<(), ()>
The destination mode defines how the value stored in destination will be interpreted. Local (true) or physical destination.
Bits: 11..12
sourceconst fn delivery_pending(&self) -> bool
const fn delivery_pending(&self) -> bool
Delivery status holds whether the interrupt delivery is pending (true) or idle.
Bits: 12..13
sourceconst fn with_delivery_pending_checked(self, value: bool) -> Result<Self, ()>
const fn with_delivery_pending_checked(self, value: bool) -> Result<Self, ()>
Delivery status holds whether the interrupt delivery is pending (true) or idle.
Bits: 12..13
sourceconst fn with_delivery_pending(self, value: bool) -> Self
const fn with_delivery_pending(self, value: bool) -> Self
Delivery status holds whether the interrupt delivery is pending (true) or idle.
Bits: 12..13
sourcefn set_delivery_pending(&mut self, value: bool)
fn set_delivery_pending(&mut self, value: bool)
Delivery status holds whether the interrupt delivery is pending (true) or idle.
Bits: 12..13
sourcefn set_delivery_pending_checked(&mut self, value: bool) -> Result<(), ()>
fn set_delivery_pending_checked(&mut self, value: bool) -> Result<(), ()>
Delivery status holds whether the interrupt delivery is pending (true) or idle.
Bits: 12..13
sourceconst fn polarity(&self) -> bool
const fn polarity(&self) -> bool
The polarity denotes when an interrupt should be issued. This can be low (true) or high.
Bits: 13..14
sourceconst fn with_polarity_checked(self, value: bool) -> Result<Self, ()>
const fn with_polarity_checked(self, value: bool) -> Result<Self, ()>
The polarity denotes when an interrupt should be issued. This can be low (true) or high.
Bits: 13..14
sourceconst fn with_polarity(self, value: bool) -> Self
const fn with_polarity(self, value: bool) -> Self
The polarity denotes when an interrupt should be issued. This can be low (true) or high.
Bits: 13..14
sourcefn set_polarity(&mut self, value: bool)
fn set_polarity(&mut self, value: bool)
The polarity denotes when an interrupt should be issued. This can be low (true) or high.
Bits: 13..14
sourcefn set_polarity_checked(&mut self, value: bool) -> Result<(), ()>
fn set_polarity_checked(&mut self, value: bool) -> Result<(), ()>
The polarity denotes when an interrupt should be issued. This can be low (true) or high.
Bits: 13..14
sourceconst fn remote_irr(&self) -> bool
const fn remote_irr(&self) -> bool
The remote IRR bit indicates whether the local APIC(s) accept the level interrupt. The LAPIC EOI sets this read-only flag to zero.
Bits: 14..15
sourceconst fn with_remote_irr_checked(self, value: bool) -> Result<Self, ()>
const fn with_remote_irr_checked(self, value: bool) -> Result<Self, ()>
The remote IRR bit indicates whether the local APIC(s) accept the level interrupt. The LAPIC EOI sets this read-only flag to zero.
Bits: 14..15
sourceconst fn with_remote_irr(self, value: bool) -> Self
const fn with_remote_irr(self, value: bool) -> Self
The remote IRR bit indicates whether the local APIC(s) accept the level interrupt. The LAPIC EOI sets this read-only flag to zero.
Bits: 14..15
sourcefn set_remote_irr(&mut self, value: bool)
fn set_remote_irr(&mut self, value: bool)
The remote IRR bit indicates whether the local APIC(s) accept the level interrupt. The LAPIC EOI sets this read-only flag to zero.
Bits: 14..15
sourcefn set_remote_irr_checked(&mut self, value: bool) -> Result<(), ()>
fn set_remote_irr_checked(&mut self, value: bool) -> Result<(), ()>
The remote IRR bit indicates whether the local APIC(s) accept the level interrupt. The LAPIC EOI sets this read-only flag to zero.
Bits: 14..15
sourceconst fn trigger_mode(&self) -> bool
const fn trigger_mode(&self) -> bool
The trigger mode states whether the interrupt signaling is level (true) or edge triggered.
Bits: 15..16
sourceconst fn with_trigger_mode_checked(self, value: bool) -> Result<Self, ()>
const fn with_trigger_mode_checked(self, value: bool) -> Result<Self, ()>
The trigger mode states whether the interrupt signaling is level (true) or edge triggered.
Bits: 15..16
sourceconst fn with_trigger_mode(self, value: bool) -> Self
const fn with_trigger_mode(self, value: bool) -> Self
The trigger mode states whether the interrupt signaling is level (true) or edge triggered.
Bits: 15..16
sourcefn set_trigger_mode(&mut self, value: bool)
fn set_trigger_mode(&mut self, value: bool)
The trigger mode states whether the interrupt signaling is level (true) or edge triggered.
Bits: 15..16
sourcefn set_trigger_mode_checked(&mut self, value: bool) -> Result<(), ()>
fn set_trigger_mode_checked(&mut self, value: bool) -> Result<(), ()>
The trigger mode states whether the interrupt signaling is level (true) or edge triggered.
Bits: 15..16
sourceconst fn mask(&self) -> bool
const fn mask(&self) -> bool
Mask (disables) or unmask interrupts for a particular, external source.
Bits: 16..17
sourceconst fn with_mask_checked(self, value: bool) -> Result<Self, ()>
const fn with_mask_checked(self, value: bool) -> Result<Self, ()>
Mask (disables) or unmask interrupts for a particular, external source.
Bits: 16..17
sourceconst fn with_mask(self, value: bool) -> Self
const fn with_mask(self, value: bool) -> Self
Mask (disables) or unmask interrupts for a particular, external source.
Bits: 16..17
sourcefn set_mask(&mut self, value: bool)
fn set_mask(&mut self, value: bool)
Mask (disables) or unmask interrupts for a particular, external source.
Bits: 16..17
sourcefn set_mask_checked(&mut self, value: bool) -> Result<(), ()>
fn set_mask_checked(&mut self, value: bool) -> Result<(), ()>
Mask (disables) or unmask interrupts for a particular, external source.
Bits: 16..17
Trait Implementations§
impl Copy for SlotL
impl Register for SlotL
Auto Trait Implementations§
impl Freeze for SlotL
impl RefUnwindSafe for SlotL
impl Send for SlotL
impl Sync for SlotL
impl Unpin for SlotL
impl UnwindSafe for SlotL
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
)