#[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 with_parallel23(self, value: bool) -> Self
pub const fn with_parallel23(self, value: bool) -> Self
Bits: 5..6
sourcepub const fn parallel23(&self) -> bool
pub const fn parallel23(&self) -> bool
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 with_co_processor(self, value: bool) -> Self
pub const fn with_co_processor(self, value: bool) -> Self
Bits: 13..14
sourcepub const fn co_processor(&self) -> bool
pub const fn co_processor(&self) -> bool
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 with_primart_ata(self, value: bool) -> Self
pub const fn with_primart_ata(self, value: bool) -> Self
Bits: 14..15
sourcepub const fn primart_ata(&self) -> bool
pub const fn primart_ata(&self) -> bool
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 with_secondary_ata(self, value: bool) -> Self
pub const fn with_secondary_ata(self, value: bool) -> Self
Bits: 15..16
sourcepub const fn secondary_ata(&self) -> bool
pub const fn secondary_ata(&self) -> bool
Bits: 15..16
sourcepub fn set_secondary_ata(&mut self, value: bool)
pub fn set_secondary_ata(&mut self, value: bool)
Bits: 15..16