pub struct EMAC_MAC { /* private fields */ }
Expand description
Ethernet MAC configuration and control registers
Implementations§
Source§impl EMAC_MAC
impl EMAC_MAC
Sourcepub const PTR: *const RegisterBlock = {0x3ff6a000 as *const emac_mac::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x3ff6a000 as *const emac_mac::RegisterBlock}
Pointer to the register block
Sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
Sourcepub fn emacconfig(&self) -> &EMACCONFIG
pub fn emacconfig(&self) -> &EMACCONFIG
0x00 - MAC configuration
Sourcepub fn emacgmiiaddr(&self) -> &EMACGMIIADDR
pub fn emacgmiiaddr(&self) -> &EMACGMIIADDR
0x10 - PHY configuration access
Sourcepub fn emacmiidata(&self) -> &EMACMIIDATA
pub fn emacmiidata(&self) -> &EMACMIIDATA
0x14 - PHY data read write
Sourcepub fn pmt_rwuffr(&self) -> &PMT_RWUFFR
pub 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 fn emaclpi_crs(&self) -> &EMACLPI_CRS
pub fn emaclpi_crs(&self) -> &EMACLPI_CRS
0x30 - LPI Control and Status
Sourcepub fn emaclpitimerscontrol(&self) -> &EMACLPITIMERSCONTROL
pub fn emaclpitimerscontrol(&self) -> &EMACLPITIMERSCONTROL
0x34 - LPI Timers Control
Sourcepub fn emacintmask(&self) -> &EMACINTMASK
pub fn emacintmask(&self) -> &EMACINTMASK
0x3c - Interrupt mask
Sourcepub fn emacaddr0high(&self) -> &EMACADDR0HIGH
pub fn emacaddr0high(&self) -> &EMACADDR0HIGH
0x40 - Upper 16 bits of the first 6-byte MAC address
Sourcepub fn emacaddr0low(&self) -> &EMACADDR0LOW
pub 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 fn emacaddr1high(&self) -> &EMACADDR1HIGH
pub fn emacaddr1high(&self) -> &EMACADDR1HIGH
0x48 - Upper 16 bits of the second 6-byte MAC address
Sourcepub fn emacaddr1low(&self) -> &EMACADDR1LOW
pub 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 fn emacaddr2high(&self) -> &EMACADDR2HIGH
pub fn emacaddr2high(&self) -> &EMACADDR2HIGH
0x50 - Upper 16 bits of the third 6-byte MAC address
Sourcepub fn emacaddr2low(&self) -> &EMACADDR2LOW
pub 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 fn emacaddr3high(&self) -> &EMACADDR3HIGH
pub fn emacaddr3high(&self) -> &EMACADDR3HIGH
0x58 - Upper 16 bits of the fourth 6-byte MAC address
Sourcepub fn emacaddr3low(&self) -> &EMACADDR3LOW
pub 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 fn emacaddr4high(&self) -> &EMACADDR4HIGH
pub fn emacaddr4high(&self) -> &EMACADDR4HIGH
0x60 - Upper 16 bits of the fifth 6-byte MAC address
Sourcepub fn emacaddr4low(&self) -> &EMACADDR4LOW
pub 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 fn emacaddr5high(&self) -> &EMACADDR5HIGH
pub fn emacaddr5high(&self) -> &EMACADDR5HIGH
0x68 - Upper 16 bits of the sixth 6-byte MAC address
Sourcepub fn emacaddr5low(&self) -> &EMACADDR5LOW
pub 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 fn emacaddr6high(&self) -> &EMACADDR6HIGH
pub fn emacaddr6high(&self) -> &EMACADDR6HIGH
0x70 - Upper 16 bits of the seventh 6-byte MAC address
Sourcepub fn emacaddr6low(&self) -> &EMACADDR6LOW
pub 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 fn emacaddr7high(&self) -> &EMACADDR7HIGH
pub fn emacaddr7high(&self) -> &EMACADDR7HIGH
0x78 - Upper 16 bits of the eighth 6-byte MAC address
Sourcepub fn emacaddr7low(&self) -> &EMACADDR7LOW
pub 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 fn emaccstatus(&self) -> &EMACCSTATUS
pub fn emaccstatus(&self) -> &EMACCSTATUS
0xd8 - Link communication status
Sourcepub fn emacwdogto(&self) -> &EMACWDOGTO
pub fn emacwdogto(&self) -> &EMACWDOGTO
0xdc - Watchdog timeout control