pub struct GenericPhy { /* private fields */ }Expand description
Generic PHY driver.
Can be constructed with a fixed address (GenericPhy::new) or with
automatic address discovery (GenericPhy::new_auto). When using
new_auto, the MDIO bus is scanned during Phy::init and the first
responding PHY address is adopted.
Implementations§
Source§impl GenericPhy
impl GenericPhy
Sourcepub const fn new_auto() -> Self
pub const fn new_auto() -> Self
Creates a driver instance that discovers the PHY address automatically
by scanning the MDIO bus during Phy::init.
Returns PhyError::NotFound from init if no PHY responds.
Trait Implementations§
Source§impl Clone for GenericPhy
Available on crate feature unstable only.
impl Clone for GenericPhy
Available on crate feature
unstable only.Source§fn clone(&self) -> GenericPhy
fn clone(&self) -> GenericPhy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GenericPhy
Available on crate feature unstable only.
impl Debug for GenericPhy
Available on crate feature
unstable only.Source§impl Phy for GenericPhy
Available on crate feature unstable only.
impl Phy for GenericPhy
Available on crate feature
unstable only.impl Copy for GenericPhy
Available on crate feature
unstable only.Auto Trait Implementations§
impl Freeze for GenericPhy
impl RefUnwindSafe for GenericPhy
impl Send for GenericPhy
impl Sync for GenericPhy
impl Unpin for GenericPhy
impl UnsafeUnpin for GenericPhy
impl UnwindSafe for GenericPhy
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
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)