Struct esp32::emac_mac::RegisterBlock
source · #[repr(C)]pub struct RegisterBlock { /* private fields */ }Expand description
Register block
Implementations§
source§impl RegisterBlock
impl RegisterBlock
sourcepub const fn emacconfig(&self) -> &EMACCONFIG
pub const fn emacconfig(&self) -> &EMACCONFIG
0x00 - MAC configuration
sourcepub const fn emacgmiiaddr(&self) -> &EMACGMIIADDR
pub const fn emacgmiiaddr(&self) -> &EMACGMIIADDR
0x10 - PHY configuration access
sourcepub const fn emacmiidata(&self) -> &EMACMIIDATA
pub const fn emacmiidata(&self) -> &EMACMIIDATA
0x14 - PHY data read write
sourcepub const fn pmt_rwuffr(&self) -> &PMT_RWUFFR
pub const fn pmt_rwuffr(&self) -> &PMT_RWUFFR
0x28 - The MSB (31st bit) must be zero.Bit j[30:0] is the byte mask. If Bit 1/2/3/4 (byte number) of the byte mask is set the CRC block processes the Filter 1/2/3/4 Offset + j of the incoming packet(PWKPTR is 0/1/2/3).RWKPTR is 0:Filter 0 Byte Mask .RWKPTR is 1:Filter 1 Byte Mask RWKPTR is 2:Filter 2 Byte Mask RWKPTR is 3:Filter 3 Byte Mask RWKPTR is 4:Bit 3/11/19/27 specifies the address type defining the destination address type of the pattern.When the bit is set the pattern applies to only multicast packets
sourcepub const fn emaclpi_crs(&self) -> &EMACLPI_CRS
pub const fn emaclpi_crs(&self) -> &EMACLPI_CRS
0x30 - LPI Control and Status
sourcepub const fn emaclpitimerscontrol(&self) -> &EMACLPITIMERSCONTROL
pub const fn emaclpitimerscontrol(&self) -> &EMACLPITIMERSCONTROL
0x34 - LPI Timers Control
sourcepub const fn emacintmask(&self) -> &EMACINTMASK
pub const fn emacintmask(&self) -> &EMACINTMASK
0x3c - Interrupt mask
sourcepub const fn emacaddr0high(&self) -> &EMACADDR0HIGH
pub const fn emacaddr0high(&self) -> &EMACADDR0HIGH
0x40 - Upper 16 bits of the first 6-byte MAC address
sourcepub const fn emacaddr0low(&self) -> &EMACADDR0LOW
pub const fn emacaddr0low(&self) -> &EMACADDR0LOW
0x44 - This field contains the lower 32 bits of the first 6-byte MAC address. This is used by the MAC for filtering the received frames and inserting the MAC address in the Transmit Flow Control (Pause) Frames.
sourcepub const fn emacaddr1high(&self) -> &EMACADDR1HIGH
pub const fn emacaddr1high(&self) -> &EMACADDR1HIGH
0x48 - Upper 16 bits of the second 6-byte MAC address
sourcepub const fn emacaddr1low(&self) -> &EMACADDR1LOW
pub const fn emacaddr1low(&self) -> &EMACADDR1LOW
0x4c - This field contains the lower 32 bits of the second 6-byte MAC address.The content of this field is undefined so the register needs to be configured after the initialization Process.
sourcepub const fn emacaddr2high(&self) -> &EMACADDR2HIGH
pub const fn emacaddr2high(&self) -> &EMACADDR2HIGH
0x50 - Upper 16 bits of the third 6-byte MAC address
sourcepub const fn emacaddr2low(&self) -> &EMACADDR2LOW
pub const fn emacaddr2low(&self) -> &EMACADDR2LOW
0x54 - This field contains the lower 32 bits of the third 6-byte MAC address. The content of this field is undefined so the register needs to be configured after the initialization process.
sourcepub const fn emacaddr3high(&self) -> &EMACADDR3HIGH
pub const fn emacaddr3high(&self) -> &EMACADDR3HIGH
0x58 - Upper 16 bits of the fourth 6-byte MAC address
sourcepub const fn emacaddr3low(&self) -> &EMACADDR3LOW
pub const fn emacaddr3low(&self) -> &EMACADDR3LOW
0x5c - This field contains the lower 32 bits of the fourth 6-byte MAC address.The content of this field is undefined so the register needs to be configured after the initialization Process.
sourcepub const fn emacaddr4high(&self) -> &EMACADDR4HIGH
pub const fn emacaddr4high(&self) -> &EMACADDR4HIGH
0x60 - Upper 16 bits of the fifth 6-byte MAC address
sourcepub const fn emacaddr4low(&self) -> &EMACADDR4LOW
pub const fn emacaddr4low(&self) -> &EMACADDR4LOW
0x64 - This field contains the lower 32 bits of the fifth 6-byte MAC address. The content of this field is undefined so the register needs to be configured after the initialization process.
sourcepub const fn emacaddr5high(&self) -> &EMACADDR5HIGH
pub const fn emacaddr5high(&self) -> &EMACADDR5HIGH
0x68 - Upper 16 bits of the sixth 6-byte MAC address
sourcepub const fn emacaddr5low(&self) -> &EMACADDR5LOW
pub const fn emacaddr5low(&self) -> &EMACADDR5LOW
0x6c - This field contains the lower 32 bits of the sixth 6-byte MAC address. The content of this field is undefined so the register needs to be configured after the initialization process.
sourcepub const fn emacaddr6high(&self) -> &EMACADDR6HIGH
pub const fn emacaddr6high(&self) -> &EMACADDR6HIGH
0x70 - Upper 16 bits of the seventh 6-byte MAC address
sourcepub const fn emacaddr6low(&self) -> &EMACADDR6LOW
pub const fn emacaddr6low(&self) -> &EMACADDR6LOW
0x74 - This field contains the lower 32 bits of the seventh 6-byte MAC address.The content of this field is undefined so the register needs to be configured after the initialization Process.
sourcepub const fn emacaddr7high(&self) -> &EMACADDR7HIGH
pub const fn emacaddr7high(&self) -> &EMACADDR7HIGH
0x78 - Upper 16 bits of the eighth 6-byte MAC address
sourcepub const fn emacaddr7low(&self) -> &EMACADDR7LOW
pub const fn emacaddr7low(&self) -> &EMACADDR7LOW
0x7c - This field contains the lower 32 bits of the eighth 6-byte MAC address.The content of this field is undefined so the register needs to be configured after the initialization Process.
sourcepub const fn emaccstatus(&self) -> &EMACCSTATUS
pub const fn emaccstatus(&self) -> &EMACCSTATUS
0xd8 - Link communication status
sourcepub const fn emacwdogto(&self) -> &EMACWDOGTO
pub const fn emacwdogto(&self) -> &EMACWDOGTO
0xdc - Watchdog timeout control