Struct rstubs::arch::int::ioapic::SlotL

source ·
#[repr(transparent)]
struct SlotL(u32);
Expand description

Entry in the redirection table. Lower Half.

Tuple Fields§

§0: u32

Implementations§

source§

impl SlotL

source

const fn new() -> Self

Creates a new default initialized bitfield.

source

const fn from_bits(bits: u32) -> Self

Convert from bits.

source

const fn into_bits(self) -> u32

Convert into bits.

source

const VECTOR_BITS: usize = 8usize

source

const VECTOR_OFFSET: usize = 0usize

source

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

source

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

source

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

source

const DELIVERY_MODE_BITS: usize = 3usize

source

const DELIVERY_MODE_OFFSET: usize = 8usize

source

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

source

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

source

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

source

const DESTINATION_MODE_BITS: usize = 1usize

source

const DESTINATION_MODE_OFFSET: usize = 11usize

source

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

source

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

source

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

source

const DELIVERY_PENDING_BITS: usize = 1usize

source

const DELIVERY_PENDING_OFFSET: usize = 12usize

source

const fn delivery_pending(&self) -> bool

Delivery status holds whether the interrupt delivery is pending (true) or idle.

Bits: 12..13

source

const fn with_delivery_pending(self, value: bool) -> Self

Delivery status holds whether the interrupt delivery is pending (true) or idle.

Bits: 12..13

source

fn set_delivery_pending(&mut self, value: bool)

Delivery status holds whether the interrupt delivery is pending (true) or idle.

Bits: 12..13

source

const POLARITY_BITS: usize = 1usize

source

const POLARITY_OFFSET: usize = 13usize

source

const fn polarity(&self) -> bool

The polarity denotes when an interrupt should be issued. This can be low (true) or high.

Bits: 13..14

source

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

source

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

source

const REMOTE_IRR_BITS: usize = 1usize

source

const REMOTE_IRR_OFFSET: usize = 14usize

source

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

source

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

source

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

source

const TRIGGER_MODE_BITS: usize = 1usize

source

const TRIGGER_MODE_OFFSET: usize = 15usize

source

const fn trigger_mode(&self) -> bool

The trigger mode states whether the interrupt signaling is level (true) or edge triggered.

Bits: 15..16

source

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

source

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

source

const MASK_BITS: usize = 1usize

source

const MASK_OFFSET: usize = 16usize

source

const fn mask(&self) -> bool

Mask (disables) or unmask interrupts for a particular, external source.

Bits: 16..17

source

const fn with_mask(self, value: bool) -> Self

Mask (disables) or unmask interrupts for a particular, external source.

Bits: 16..17

source

fn set_mask(&mut self, value: bool)

Mask (disables) or unmask interrupts for a particular, external source.

Bits: 16..17

Trait Implementations§

source§

impl Clone for SlotL

source§

fn clone(&self) -> SlotL

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SlotL

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for SlotL

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<SlotL> for u32

source§

fn from(v: SlotL) -> u32

Converts to this type from the input type.
source§

impl From<u32> for SlotL

source§

fn from(v: u32) -> Self

Converts to this type from the input type.
source§

impl Copy for SlotL

source§

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 T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Az for T

source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

source§

fn cast_from(src: Src) -> Dst

Casts the value.
source§

impl<T> CheckedAs for T

source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

source§

impl<T> OverflowingAs for T

source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
source§

impl<T> SaturatingAs for T

source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> UnwrappedAs for T

source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
source§

impl<T> WrappingAs for T

source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.