nxp-pac

Crates

git

Versions

mimxrt1062

Flavors

Enet

Struct Enet 

Source
pub struct Enet { /* private fields */ }
Expand description

ENET

Implementations§

Source§

impl Enet

Source

pub const unsafe fn from_ptr(ptr: *mut ()) -> Self

Source

pub const fn as_ptr(&self) -> *mut ()

Source

pub const fn eir(self) -> Reg<Eir, RW>

Interrupt Event Register

Source

pub const fn eimr(self) -> Reg<Eimr, RW>

Interrupt Mask Register

Source

pub const fn rdar(self) -> Reg<Rdar, RW>

Receive Descriptor Active Register - Ring 0

Source

pub const fn tdar(self) -> Reg<Tdar, RW>

Transmit Descriptor Active Register - Ring 0

Source

pub const fn ecr(self) -> Reg<Ecr, RW>

Ethernet Control Register

Source

pub const fn mmfr(self) -> Reg<Mmfr, RW>

MII Management Frame Register

Source

pub const fn mscr(self) -> Reg<Mscr, RW>

MII Speed Control Register

Source

pub const fn mibc(self) -> Reg<Mibc, RW>

MIB Control Register

Source

pub const fn rcr(self) -> Reg<Rcr, RW>

Receive Control Register

Source

pub const fn tcr(self) -> Reg<Tcr, RW>

Transmit Control Register

Source

pub const fn palr(self) -> Reg<Palr, RW>

Physical Address Lower Register

Source

pub const fn paur(self) -> Reg<Paur, RW>

Physical Address Upper Register

Source

pub const fn opd(self) -> Reg<Opd, RW>

Opcode/Pause Duration Register

Source

pub const fn txic0(self) -> Reg<Txic0, RW>

Transmit Interrupt Coalescing Register

Source

pub const fn rxic0(self) -> Reg<Rxic0, RW>

Receive Interrupt Coalescing Register

Source

pub const fn iaur(self) -> Reg<Iaur, RW>

Descriptor Individual Upper Address Register

Source

pub const fn ialr(self) -> Reg<Ialr, RW>

Descriptor Individual Lower Address Register

Source

pub const fn gaur(self) -> Reg<Gaur, RW>

Descriptor Group Upper Address Register

Source

pub const fn galr(self) -> Reg<Galr, RW>

Descriptor Group Lower Address Register

Source

pub const fn tfwr(self) -> Reg<Tfwr, RW>

Transmit FIFO Watermark Register

Source

pub const fn rdsr(self) -> Reg<Rdsr, RW>

Receive Descriptor Ring 0 Start Register

Source

pub const fn tdsr(self) -> Reg<Tdsr, RW>

Transmit Buffer Descriptor Ring 0 Start Register

Source

pub const fn mrbr(self) -> Reg<Mrbr, RW>

Maximum Receive Buffer Size Register - Ring 0

Source

pub const fn rsfl(self) -> Reg<Rsfl, RW>

Receive FIFO Section Full Threshold

Source

pub const fn rsem(self) -> Reg<Rsem, RW>

Receive FIFO Section Empty Threshold

Source

pub const fn raem(self) -> Reg<Raem, RW>

Receive FIFO Almost Empty Threshold

Source

pub const fn rafl(self) -> Reg<Rafl, RW>

Receive FIFO Almost Full Threshold

Source

pub const fn tsem(self) -> Reg<Tsem, RW>

Transmit FIFO Section Empty Threshold

Source

pub const fn taem(self) -> Reg<Taem, RW>

Transmit FIFO Almost Empty Threshold

Source

pub const fn tafl(self) -> Reg<Tafl, RW>

Transmit FIFO Almost Full Threshold

Source

pub const fn tipg(self) -> Reg<Tipg, RW>

Transmit Inter-Packet Gap

Source

pub const fn ftrl(self) -> Reg<Ftrl, RW>

Frame Truncation Length

Source

pub const fn tacc(self) -> Reg<Tacc, RW>

Transmit Accelerator Function Configuration

Source

pub const fn racc(self) -> Reg<Racc, RW>

Receive Accelerator Function Configuration

Source

pub const fn rmon_t_packets(self) -> Reg<RmonTPackets, R>

Tx Packet Count Statistic Register

Source

pub const fn rmon_t_bc_pkt(self) -> Reg<RmonTBcPkt, R>

Tx Broadcast Packets Statistic Register

Source

pub const fn rmon_t_mc_pkt(self) -> Reg<RmonTMcPkt, R>

Tx Multicast Packets Statistic Register

Source

pub const fn rmon_t_crc_align(self) -> Reg<RmonTCrcAlign, R>

Tx Packets with CRC/Align Error Statistic Register

Source

pub const fn rmon_t_undersize(self) -> Reg<RmonTUndersize, R>

Tx Packets Less Than Bytes and Good CRC Statistic Register

Source

pub const fn rmon_t_oversize(self) -> Reg<RmonTOversize, R>

Tx Packets GT MAX_FL bytes and Good CRC Statistic Register

Source

pub const fn rmon_t_frag(self) -> Reg<RmonTFrag, R>

Tx Packets Less Than 64 Bytes and Bad CRC Statistic Register

Source

pub const fn rmon_t_jab(self) -> Reg<RmonTJab, R>

Tx Packets Greater Than MAX_FL bytes and Bad CRC Statistic Register

Source

pub const fn rmon_t_col(self) -> Reg<RmonTCol, R>

Tx Collision Count Statistic Register

Source

pub const fn rmon_t_p64(self) -> Reg<RmonTP64, R>

Tx 64-Byte Packets Statistic Register

Source

pub const fn rmon_t_p65to127(self) -> Reg<RmonTP65to127, R>

Tx 65- to 127-byte Packets Statistic Register

Source

pub const fn rmon_t_p128to255(self) -> Reg<RmonTP128to255, R>

Tx 128- to 255-byte Packets Statistic Register

Source

pub const fn rmon_t_p256to511(self) -> Reg<RmonTP256to511, R>

Tx 256- to 511-byte Packets Statistic Register

Source

pub const fn rmon_t_p512to1023(self) -> Reg<RmonTP512to1023, R>

Tx 512- to 1023-byte Packets Statistic Register

Source

pub const fn rmon_t_p1024to2047(self) -> Reg<RmonTP1024to2047, R>

Tx 1024- to 2047-byte Packets Statistic Register

Source

pub const fn rmon_t_p_gte2048(self) -> Reg<RmonTPGte2048, R>

Tx Packets Greater Than 2048 Bytes Statistic Register

Source

pub const fn rmon_t_octets(self) -> Reg<RmonTOctets, R>

Tx Octets Statistic Register

Source

pub const fn ieee_t_frame_ok(self) -> Reg<IeeeTFrameOk, R>

Frames Transmitted OK Statistic Register

Source

pub const fn ieee_t_1col(self) -> Reg<IeeeT1col, R>

Frames Transmitted with Single Collision Statistic Register

Source

pub const fn ieee_t_mcol(self) -> Reg<IeeeTMcol, R>

Frames Transmitted with Multiple Collisions Statistic Register

Source

pub const fn ieee_t_def(self) -> Reg<IeeeTDef, R>

Frames Transmitted after Deferral Delay Statistic Register

Source

pub const fn ieee_t_lcol(self) -> Reg<IeeeTLcol, R>

Frames Transmitted with Late Collision Statistic Register

Source

pub const fn ieee_t_excol(self) -> Reg<IeeeTExcol, R>

Frames Transmitted with Excessive Collisions Statistic Register

Source

pub const fn ieee_t_macerr(self) -> Reg<IeeeTMacerr, R>

Frames Transmitted with Tx FIFO Underrun Statistic Register

Source

pub const fn ieee_t_cserr(self) -> Reg<IeeeTCserr, R>

Frames Transmitted with Carrier Sense Error Statistic Register

Source

pub const fn ieee_t_sqe(self) -> Reg<IeeeTSqe, R>

Reserved Statistic Register

Source

pub const fn ieee_t_fdxfc(self) -> Reg<IeeeTFdxfc, R>

Flow Control Pause Frames Transmitted Statistic Register

Source

pub const fn ieee_t_octets_ok(self) -> Reg<IeeeTOctetsOk, R>

Octet Count for Frames Transmitted w/o Error Statistic Register

Source

pub const fn rmon_r_packets(self) -> Reg<RmonRPackets, R>

Rx Packet Count Statistic Register

Source

pub const fn rmon_r_bc_pkt(self) -> Reg<RmonRBcPkt, R>

Rx Broadcast Packets Statistic Register

Source

pub const fn rmon_r_mc_pkt(self) -> Reg<RmonRMcPkt, R>

Rx Multicast Packets Statistic Register

Source

pub const fn rmon_r_crc_align(self) -> Reg<RmonRCrcAlign, R>

Rx Packets with CRC/Align Error Statistic Register

Source

pub const fn rmon_r_undersize(self) -> Reg<RmonRUndersize, R>

Rx Packets with Less Than 64 Bytes and Good CRC Statistic Register

Source

pub const fn rmon_r_oversize(self) -> Reg<RmonROversize, R>

Rx Packets Greater Than MAX_FL and Good CRC Statistic Register

Source

pub const fn rmon_r_frag(self) -> Reg<RmonRFrag, R>

Rx Packets Less Than 64 Bytes and Bad CRC Statistic Register

Source

pub const fn rmon_r_jab(self) -> Reg<RmonRJab, R>

Rx Packets Greater Than MAX_FL Bytes and Bad CRC Statistic Register

Source

pub const fn rmon_r_p64(self) -> Reg<RmonRP64, R>

Rx 64-Byte Packets Statistic Register

Source

pub const fn rmon_r_p65to127(self) -> Reg<RmonRP65to127, R>

Rx 65- to 127-Byte Packets Statistic Register

Source

pub const fn rmon_r_p128to255(self) -> Reg<RmonRP128to255, R>

Rx 128- to 255-Byte Packets Statistic Register

Source

pub const fn rmon_r_p256to511(self) -> Reg<RmonRP256to511, R>

Rx 256- to 511-Byte Packets Statistic Register

Source

pub const fn rmon_r_p512to1023(self) -> Reg<RmonRP512to1023, R>

Rx 512- to 1023-Byte Packets Statistic Register

Source

pub const fn rmon_r_p1024to2047(self) -> Reg<RmonRP1024to2047, R>

Rx 1024- to 2047-Byte Packets Statistic Register

Source

pub const fn rmon_r_p_gte2048(self) -> Reg<RmonRPGte2048, R>

Rx Packets Greater than 2048 Bytes Statistic Register

Source

pub const fn rmon_r_octets(self) -> Reg<RmonROctets, R>

Rx Octets Statistic Register

Source

pub const fn ieee_r_drop(self) -> Reg<IeeeRDrop, R>

Frames not Counted Correctly Statistic Register

Source

pub const fn ieee_r_frame_ok(self) -> Reg<IeeeRFrameOk, R>

Frames Received OK Statistic Register

Source

pub const fn ieee_r_crc(self) -> Reg<IeeeRCrc, R>

Frames Received with CRC Error Statistic Register

Source

pub const fn ieee_r_align(self) -> Reg<IeeeRAlign, R>

Frames Received with Alignment Error Statistic Register

Source

pub const fn ieee_r_macerr(self) -> Reg<IeeeRMacerr, R>

Receive FIFO Overflow Count Statistic Register

Source

pub const fn ieee_r_fdxfc(self) -> Reg<IeeeRFdxfc, R>

Flow Control Pause Frames Received Statistic Register

Source

pub const fn ieee_r_octets_ok(self) -> Reg<IeeeROctetsOk, R>

Octet Count for Frames Received without Error Statistic Register

Source

pub const fn atcr(self) -> Reg<Atcr, RW>

Adjustable Timer Control Register

Source

pub const fn atvr(self) -> Reg<Atvr, RW>

Timer Value Register

Source

pub const fn atoff(self) -> Reg<Atoff, RW>

Timer Offset Register

Source

pub const fn atper(self) -> Reg<Atper, RW>

Timer Period Register

Source

pub const fn atcor(self) -> Reg<Atcor, RW>

Timer Correction Register

Source

pub const fn atinc(self) -> Reg<Atinc, RW>

Time-Stamping Clock Period Register

Source

pub const fn atstmp(self) -> Reg<Atstmp, R>

Timestamp of Last Transmitted Frame

Source

pub const fn tgsr(self) -> Reg<Tgsr, RW>

Timer Global Status Register

Source

pub const fn tcsr0(self) -> Reg<Tcsr0, RW>

Timer Control Status Register

Source

pub const fn tccr0(self) -> Reg<Tccr0, RW>

Timer Compare Capture Register

Source

pub const fn tcsr1(self) -> Reg<Tcsr1, RW>

Timer Control Status Register

Source

pub const fn tccr1(self) -> Reg<Tccr1, RW>

Timer Compare Capture Register

Source

pub const fn tcsr2(self) -> Reg<Tcsr2, RW>

Timer Control Status Register

Source

pub const fn tccr2(self) -> Reg<Tccr2, RW>

Timer Compare Capture Register

Source

pub const fn tcsr3(self) -> Reg<Tcsr3, RW>

Timer Control Status Register

Source

pub const fn tccr3(self) -> Reg<Tccr3, RW>

Timer Compare Capture Register

Trait Implementations§

Source§

impl Clone for Enet

Source§

fn clone(&self) -> Enet

Returns a duplicate 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 PartialEq for Enet

Source§

fn eq(&self, other: &Enet) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Enet

Source§

impl Eq for Enet

Source§

impl Send for Enet

Source§

impl StructuralPartialEq for Enet

Source§

impl Sync for Enet

Auto Trait Implementations§

§

impl Freeze for Enet

§

impl RefUnwindSafe for Enet

§

impl Unpin for Enet

§

impl UnwindSafe for Enet

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.