pub struct Endpoint { /* private fields */ }Implementations§
Source§impl Endpoint
impl Endpoint
pub fn device_type(&self) -> DeviceType
pub fn bar(&self, slot: u8) -> Option<Bar>
pub fn bar_mmio(&self, slot: u8) -> Option<Range<usize>>
pub fn set_bar(&mut self, slot: u8, value: usize) -> Result<(), BarWriteError>
pub fn bars(&self) -> [Option<Bar>; 6]
pub fn capabilities_pointer(&self) -> u16
pub fn capabilities(&self) -> Vec<PciCapability>
pub fn interrupt_pin(&self) -> u8
pub fn interrupt_line(&self) -> u8
pub fn subsystem_id(&self) -> u16
pub fn subsystem_vendor_id(&self) -> u16
pub fn set_interrupt_pin(&mut self, pin: u8)
pub fn set_interrupt_line(&mut self, line: u8)
Methods from Deref<Target = PciHeaderBase>§
pub fn header(&self) -> PciHeader
pub fn address(&self) -> PciAddress
pub fn header_type(&self) -> HeaderType
pub fn has_multiple_functions(&self) -> bool
pub fn update_command<F>(&mut self, f: F)
pub fn status(&self) -> StatusRegister
pub fn command(&self) -> CommandRegister
pub fn revision_and_class(&self) -> RevisionAndClass
pub fn vendor_id(&self) -> u16
pub fn device_id(&self) -> u16
pub fn read(&self, offset: u16) -> u32
pub fn write(&self, offset: u16, value: u32)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Endpoint
impl !RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl !UnwindSafe for Endpoint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more