#[repr(transparent)]pub struct PicPort(u16);
Expand description
Interrupt ports of the PIC
Tuple Fields§
§0: u16
Implementations§
source§impl PicPort
impl PicPort
const TIMER_BITS: usize = 1usize
const TIMER_OFFSET: usize = 0usize
sourcepub const fn with_timer(self, value: bool) -> Self
pub const fn with_timer(self, value: bool) -> Self
Bits: 0..1
const KEYBOARD_BITS: usize = 1usize
const KEYBOARD_OFFSET: usize = 1usize
sourcepub const fn with_keyboard(self, value: bool) -> Self
pub const fn with_keyboard(self, value: bool) -> Self
Bits: 1..2
sourcepub fn set_keyboard(&mut self, value: bool)
pub fn set_keyboard(&mut self, value: bool)
Bits: 1..2
const CHAIN_BITS: usize = 1usize
const CHAIN_OFFSET: usize = 2usize
sourceconst fn with_chain(self, value: bool) -> Self
const fn with_chain(self, value: bool) -> Self
Bits: 2..3
const SERIAL1_BITS: usize = 1usize
const SERIAL1_OFFSET: usize = 3usize
sourcepub const fn with_serial1(self, value: bool) -> Self
pub const fn with_serial1(self, value: bool) -> Self
Bits: 3..4
sourcepub fn set_serial1(&mut self, value: bool)
pub fn set_serial1(&mut self, value: bool)
Bits: 3..4
const SERIAL2_BITS: usize = 1usize
const SERIAL2_OFFSET: usize = 4usize
sourcepub const fn with_serial2(self, value: bool) -> Self
pub const fn with_serial2(self, value: bool) -> Self
Bits: 4..5
sourcepub fn set_serial2(&mut self, value: bool)
pub fn set_serial2(&mut self, value: bool)
Bits: 4..5
const PARALLEL23_BITS: usize = 1usize
const PARALLEL23_OFFSET: usize = 5usize
sourcepub const fn parallel23(&self) -> bool
pub const fn parallel23(&self) -> bool
Bits: 5..6
sourcepub const fn with_parallel23(self, value: bool) -> Self
pub const fn with_parallel23(self, value: bool) -> Self
Bits: 5..6
sourcepub fn set_parallel23(&mut self, value: bool)
pub fn set_parallel23(&mut self, value: bool)
Bits: 5..6
const FLOPPY_BITS: usize = 1usize
const FLOPPY_OFFSET: usize = 6usize
sourcepub const fn with_floppy(self, value: bool) -> Self
pub const fn with_floppy(self, value: bool) -> Self
Bits: 6..7
sourcepub fn set_floppy(&mut self, value: bool)
pub fn set_floppy(&mut self, value: bool)
Bits: 6..7
const PARALLEL1_BITS: usize = 1usize
const PARALLEL1_OFFSET: usize = 7usize
sourcepub const fn with_parallel1(self, value: bool) -> Self
pub const fn with_parallel1(self, value: bool) -> Self
Bits: 7..8
sourcepub fn set_parallel1(&mut self, value: bool)
pub fn set_parallel1(&mut self, value: bool)
Bits: 7..8
const RTC_BITS: usize = 1usize
const RTC_OFFSET: usize = 8usize
const ACPI_BITS: usize = 1usize
const ACPI_OFFSET: usize = 9usize
const P10_BITS: usize = 1usize
const P10_OFFSET: usize = 10usize
const P11_BITS: usize = 1usize
const P11_OFFSET: usize = 11usize
const MOUSE_BITS: usize = 1usize
const MOUSE_OFFSET: usize = 12usize
sourcepub const fn with_mouse(self, value: bool) -> Self
pub const fn with_mouse(self, value: bool) -> Self
Bits: 12..13
const CO_PROCESSOR_BITS: usize = 1usize
const CO_PROCESSOR_OFFSET: usize = 13usize
sourcepub const fn co_processor(&self) -> bool
pub const fn co_processor(&self) -> bool
Bits: 13..14
sourcepub const fn with_co_processor(self, value: bool) -> Self
pub const fn with_co_processor(self, value: bool) -> Self
Bits: 13..14
sourcepub fn set_co_processor(&mut self, value: bool)
pub fn set_co_processor(&mut self, value: bool)
Bits: 13..14
const PRIMART_ATA_BITS: usize = 1usize
const PRIMART_ATA_OFFSET: usize = 14usize
sourcepub const fn primart_ata(&self) -> bool
pub const fn primart_ata(&self) -> bool
Bits: 14..15
sourcepub const fn with_primart_ata(self, value: bool) -> Self
pub const fn with_primart_ata(self, value: bool) -> Self
Bits: 14..15
sourcepub fn set_primart_ata(&mut self, value: bool)
pub fn set_primart_ata(&mut self, value: bool)
Bits: 14..15
const SECONDARY_ATA_BITS: usize = 1usize
const SECONDARY_ATA_OFFSET: usize = 15usize
sourcepub const fn secondary_ata(&self) -> bool
pub const fn secondary_ata(&self) -> bool
Bits: 15..16
sourcepub const fn with_secondary_ata(self, value: bool) -> Self
pub const fn with_secondary_ata(self, value: bool) -> Self
Bits: 15..16
sourcepub fn set_secondary_ata(&mut self, value: bool)
pub fn set_secondary_ata(&mut self, value: bool)
Bits: 15..16
Trait Implementations§
impl Copy for PicPort
Auto Trait Implementations§
impl Freeze for PicPort
impl RefUnwindSafe for PicPort
impl Send for PicPort
impl Sync for PicPort
impl Unpin for PicPort
impl UnwindSafe for PicPort
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
Mutably borrows from an owned value. Read more
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>,
Casts the value.
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>
Casts the value.
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
§impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
impl<T, U> TryInto<U> for Twhere
U: TryFrom<T>,
source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.