[−][src]Struct wishbone_bridge::PCIeBridge
Describes a connection to a target via PCI Express.
Implementations
impl PCIeBridge
[src]
A builder to create a connection to a target via PCIe. Specify a PCIe resource file as part of the path.
Note: PCIe bridges to not expose the entire Wishbine bus. You
will probably need to translate your addresses to take this into
account. For example, address 0x0000_1000
on your Wishbone bus
may actually correspond to address 0xe000_1000
on your target device.
use wishbone_bridge::PCIeBridge; let bridge = PCIeBridge::new("/sys/devices/pci0001:00/0001:00:07.0/resource0").unwrap().create().unwrap();
pub fn new<P: AsRef<Path>>(path: P) -> Result<PCIeBridge, BridgeError>
[src]
Create a new PCIeBridge
struct. The file must exist. This does
not check to ensure you have access permissions.
pub fn create(&self) -> Result<Bridge, BridgeError>
[src]
Create a new Bridge
with the given file. This will produce
an error if the PCIe device could not be opened.
Trait Implementations
impl Clone for PCIeBridge
[src]
fn clone(&self) -> PCIeBridge
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'_> From<&'_ str> for PCIeBridge
[src]
Auto Trait Implementations
impl RefUnwindSafe for PCIeBridge
impl Send for PCIeBridge
impl Sync for PCIeBridge
impl Unpin for PCIeBridge
impl UnwindSafe for PCIeBridge
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,