Struct kernel::net::phy::reg::C22

source ·
pub struct C22(/* private fields */);
Expand description

A single MDIO clause 22 register address (5 bits).

Implementations§

source§

impl C22

source

pub const BMCR: Self = _

Basic mode control.

source

pub const BMSR: Self = _

Basic mode status.

source

pub const PHYSID1: Self = _

PHY identifier 1.

source

pub const PHYSID2: Self = _

PHY identifier 2.

source

pub const ADVERTISE: Self = _

Auto-negotiation advertisement.

source

pub const LPA: Self = _

Auto-negotiation link partner base page ability.

source

pub const EXPANSION: Self = _

Auto-negotiation expansion.

source

pub const NEXT_PAGE_TRANSMIT: Self = _

Auto-negotiation next page transmit.

source

pub const LP_RECEIVED_NEXT_PAGE: Self = _

Auto-negotiation link partner received next page.

source

pub const MASTER_SLAVE_CONTROL: Self = _

Master-slave control.

source

pub const MASTER_SLAVE_STATUS: Self = _

Master-slave status.

source

pub const PSE_CONTROL: Self = _

PSE Control.

source

pub const PSE_STATUS: Self = _

PSE Status.

source

pub const MMD_CONTROL: Self = _

MMD Register control.

source

pub const MMD_DATA: Self = _

MMD Register address data.

source

pub const EXTENDED_STATUS: Self = _

Extended status.

source

pub const fn vendor_specific<const N: u8>() -> Self

Creates a new instance of C22 with a vendor specific register.

Trait Implementations§

source§

impl Clone for C22

source§

fn clone(&self) -> C22

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for C22

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Register for C22

source§

fn read(&self, dev: &mut Device) -> Result<u16>

Reads a PHY register.
source§

fn write(&self, dev: &mut Device, val: u16) -> Result

Writes a PHY register.
source§

fn read_status(dev: &mut Device) -> Result<u16>

Checks the link status and updates current link state.
source§

impl Copy for C22

Auto Trait Implementations§

§

impl Freeze for C22

§

impl RefUnwindSafe for C22

§

impl Send for C22

§

impl Sync for C22

§

impl Unpin for C22

§

impl UnwindSafe for C22

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, E> Init<T, E> for T

source§

unsafe fn __init(self, slot: *mut T) -> Result<(), E>

Initializes slot. Read more
source§

fn chain<F>(self, f: F) -> ChainInit<Self, F, T, E>
where F: FnOnce(&mut T) -> Result<(), E>,

First initializes the value using self then calls the function f with the initialized value. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, E> PinInit<T, E> for T

source§

unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E>

Initializes slot. Read more
source§

fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E>
where F: FnOnce(Pin<&mut T>) -> Result<(), E>,

First initializes the value using self then calls the function f with the initialized value. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.