#[repr(transparent)]pub struct EnetCtrl(pub u32);Expand description
Ethernet Control.
Tuple Fields§
§0: u32Implementations§
Source§impl EnetCtrl
impl EnetCtrl
Sourcepub const fn phy_intf(&self) -> bool
pub const fn phy_intf(&self) -> bool
Selects external PHY interface. Raw bit values: false (0) = Mii: Selects MII PHY Interface.; true (1) = Rmii: Selects RMII PHY Interface.
Sourcepub const fn set_phy_intf(&mut self, val: bool)
pub const fn set_phy_intf(&mut self, val: bool)
Selects external PHY interface. Raw bit values: false (0) = Mii: Selects MII PHY Interface.; true (1) = Rmii: Selects RMII PHY Interface.
Sourcepub const fn phy_sel(&self) -> bool
pub const fn phy_sel(&self) -> bool
Selects external PHY or on-chip 10BASE-T1S. Raw bit values: false (0) = Phy: Selects external PHY.; true (1) = T1s: Selects on-chip 10BASE-T1S.
Sourcepub const fn set_phy_sel(&mut self, val: bool)
pub const fn set_phy_sel(&mut self, val: bool)
Selects external PHY or on-chip 10BASE-T1S. Raw bit values: false (0) = Phy: Selects external PHY.; true (1) = T1s: Selects on-chip 10BASE-T1S.
Trait Implementations§
impl Copy for EnetCtrl
impl Eq for EnetCtrl
impl StructuralPartialEq for EnetCtrl
Auto Trait Implementations§
impl Freeze for EnetCtrl
impl RefUnwindSafe for EnetCtrl
impl Send for EnetCtrl
impl Sync for EnetCtrl
impl Unpin for EnetCtrl
impl UnwindSafe for EnetCtrl
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