#[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
const KEYBOARD_BITS: usize = 1usize
const KEYBOARD_OFFSET: usize = 1usize
const CHAIN_BITS: usize = 1usize
const CHAIN_OFFSET: usize = 2usize
const SERIAL1_BITS: usize = 1usize
const SERIAL1_OFFSET: usize = 3usize
const SERIAL2_BITS: usize = 1usize
const SERIAL2_OFFSET: usize = 4usize
const PARALLEL23_BITS: usize = 1usize
const PARALLEL23_OFFSET: usize = 5usize
const FLOPPY_BITS: usize = 1usize
const FLOPPY_OFFSET: usize = 6usize
const PARALLEL1_BITS: usize = 1usize
const PARALLEL1_OFFSET: usize = 7usize
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
const CO_PROCESSOR_BITS: usize = 1usize
const CO_PROCESSOR_OFFSET: usize = 13usize
const PRIMART_ATA_BITS: usize = 1usize
const PRIMART_ATA_OFFSET: usize = 14usize
const SECONDARY_ATA_BITS: usize = 1usize
const SECONDARY_ATA_OFFSET: usize = 15usize
sourcepub const fn with_timer_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_timer_checked(self, value: bool) -> Result<Self, ()>
Bits: 0..1
sourcepub const fn with_timer(self, value: bool) -> Self
pub const fn with_timer(self, value: bool) -> Self
Bits: 0..1
sourcepub fn set_timer_checked(&mut self, value: bool) -> Result<(), ()>
pub fn set_timer_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 0..1
sourcepub const fn with_keyboard_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_keyboard_checked(self, value: bool) -> Result<Self, ()>
Bits: 1..2
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
sourcepub fn set_keyboard_checked(&mut self, value: bool) -> Result<(), ()>
pub fn set_keyboard_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 1..2
sourceconst fn with_chain_checked(self, value: bool) -> Result<Self, ()>
const fn with_chain_checked(self, value: bool) -> Result<Self, ()>
Bits: 2..3
sourceconst fn with_chain(self, value: bool) -> Self
const fn with_chain(self, value: bool) -> Self
Bits: 2..3
sourcefn set_chain_checked(&mut self, value: bool) -> Result<(), ()>
fn set_chain_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 2..3
sourcepub const fn with_serial1_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_serial1_checked(self, value: bool) -> Result<Self, ()>
Bits: 3..4
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
sourcepub fn set_serial1_checked(&mut self, value: bool) -> Result<(), ()>
pub fn set_serial1_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 3..4
sourcepub const fn with_serial2_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_serial2_checked(self, value: bool) -> Result<Self, ()>
Bits: 4..5
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
sourcepub fn set_serial2_checked(&mut self, value: bool) -> Result<(), ()>
pub fn set_serial2_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 4..5
sourcepub const fn parallel23(&self) -> bool
pub const fn parallel23(&self) -> bool
Bits: 5..6
sourcepub const fn with_parallel23_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_parallel23_checked(self, value: bool) -> Result<Self, ()>
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
sourcepub fn set_parallel23_checked(&mut self, value: bool) -> Result<(), ()>
pub fn set_parallel23_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 5..6
sourcepub const fn with_floppy_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_floppy_checked(self, value: bool) -> Result<Self, ()>
Bits: 6..7
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
sourcepub fn set_floppy_checked(&mut self, value: bool) -> Result<(), ()>
pub fn set_floppy_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 6..7
sourcepub const fn with_parallel1_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_parallel1_checked(self, value: bool) -> Result<Self, ()>
Bits: 7..8
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
sourcepub fn set_parallel1_checked(&mut self, value: bool) -> Result<(), ()>
pub fn set_parallel1_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 7..8
sourcepub const fn with_rtc_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_rtc_checked(self, value: bool) -> Result<Self, ()>
Bits: 8..9
sourcepub fn set_rtc_checked(&mut self, value: bool) -> Result<(), ()>
pub fn set_rtc_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 8..9
sourcepub const fn with_acpi_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_acpi_checked(self, value: bool) -> Result<Self, ()>
Bits: 9..10
sourcepub fn set_acpi_checked(&mut self, value: bool) -> Result<(), ()>
pub fn set_acpi_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 9..10
sourcepub const fn with_p10_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_p10_checked(self, value: bool) -> Result<Self, ()>
Bits: 10..11
sourcepub fn set_p10_checked(&mut self, value: bool) -> Result<(), ()>
pub fn set_p10_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 10..11
sourcepub const fn with_p11_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_p11_checked(self, value: bool) -> Result<Self, ()>
Bits: 11..12
sourcepub fn set_p11_checked(&mut self, value: bool) -> Result<(), ()>
pub fn set_p11_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 11..12
sourcepub const fn with_mouse_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_mouse_checked(self, value: bool) -> Result<Self, ()>
Bits: 12..13
sourcepub const fn with_mouse(self, value: bool) -> Self
pub const fn with_mouse(self, value: bool) -> Self
Bits: 12..13
sourcepub fn set_mouse_checked(&mut self, value: bool) -> Result<(), ()>
pub fn set_mouse_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 12..13
sourcepub const fn co_processor(&self) -> bool
pub const fn co_processor(&self) -> bool
Bits: 13..14
sourcepub const fn with_co_processor_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_co_processor_checked(self, value: bool) -> Result<Self, ()>
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
sourcepub fn set_co_processor_checked(&mut self, value: bool) -> Result<(), ()>
pub fn set_co_processor_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 13..14
sourcepub const fn primart_ata(&self) -> bool
pub const fn primart_ata(&self) -> bool
Bits: 14..15
sourcepub const fn with_primart_ata_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_primart_ata_checked(self, value: bool) -> Result<Self, ()>
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
sourcepub fn set_primart_ata_checked(&mut self, value: bool) -> Result<(), ()>
pub fn set_primart_ata_checked(&mut self, value: bool) -> Result<(), ()>
Bits: 14..15
sourcepub const fn secondary_ata(&self) -> bool
pub const fn secondary_ata(&self) -> bool
Bits: 15..16
sourcepub const fn with_secondary_ata_checked(self, value: bool) -> Result<Self, ()>
pub const fn with_secondary_ata_checked(self, value: bool) -> Result<Self, ()>
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
sourcepub fn set_secondary_ata_checked(&mut self, value: bool) -> Result<(), ()>
pub fn set_secondary_ata_checked(&mut self, value: bool) -> Result<(), ()>
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> 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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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.