pub struct ETH { /* private fields */ }Expand description
Ethernet media access control
Implementations§
Source§impl ETH
impl ETH
Sourcepub const PTR: *const RegisterBlock = {0x40028000 as *const stm32h573::eth::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40028000 as *const stm32h573::eth::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 maccsrswcr(&self) -> &MACCSRSWCR
pub fn maccsrswcr(&self) -> &MACCSRSWCR
0x230 - CSR software control register
Sourcepub fn mmc_control(&self) -> &MMC_CONTROL
pub fn mmc_control(&self) -> &MMC_CONTROL
0x700 - MMC control register
Sourcepub fn mmc_rx_interrupt(&self) -> &MMC_RX_INTERRUPT
pub fn mmc_rx_interrupt(&self) -> &MMC_RX_INTERRUPT
0x704 - MMC Rx interrupt register
Sourcepub fn mmc_tx_interrupt(&self) -> &MMC_TX_INTERRUPT
pub fn mmc_tx_interrupt(&self) -> &MMC_TX_INTERRUPT
0x708 - MMC Tx interrupt register
Sourcepub fn mmc_rx_interrupt_mask(&self) -> &MMC_RX_INTERRUPT_MASK
pub fn mmc_rx_interrupt_mask(&self) -> &MMC_RX_INTERRUPT_MASK
0x70c - MMC Rx interrupt mask register
Sourcepub fn mmc_tx_interrupt_mask(&self) -> &MMC_TX_INTERRUPT_MASK
pub fn mmc_tx_interrupt_mask(&self) -> &MMC_TX_INTERRUPT_MASK
0x710 - MMC Tx interrupt mask register
Sourcepub fn tx_single_collision_good_packets(
&self,
) -> &TX_SINGLE_COLLISION_GOOD_PACKETS
pub fn tx_single_collision_good_packets( &self, ) -> &TX_SINGLE_COLLISION_GOOD_PACKETS
0x74c - Tx single collision good packets register
Sourcepub fn tx_multiple_collision_good_packets(
&self,
) -> &TX_MULTIPLE_COLLISION_GOOD_PACKETS
pub fn tx_multiple_collision_good_packets( &self, ) -> &TX_MULTIPLE_COLLISION_GOOD_PACKETS
0x750 - Tx multiple collision good packets register
Sourcepub fn tx_packet_count_good(&self) -> &TX_PACKET_COUNT_GOOD
pub fn tx_packet_count_good(&self) -> &TX_PACKET_COUNT_GOOD
0x768 - Tx packet count good register
Sourcepub fn rx_crc_error_packets(&self) -> &RX_CRC_ERROR_PACKETS
pub fn rx_crc_error_packets(&self) -> &RX_CRC_ERROR_PACKETS
0x794 - Rx CRC error packets register
Sourcepub fn rx_alignment_error_packets(&self) -> &RX_ALIGNMENT_ERROR_PACKETS
pub fn rx_alignment_error_packets(&self) -> &RX_ALIGNMENT_ERROR_PACKETS
0x798 - Rx alignment error packets register
Sourcepub fn rx_unicast_packets_good(&self) -> &RX_UNICAST_PACKETS_GOOD
pub fn rx_unicast_packets_good(&self) -> &RX_UNICAST_PACKETS_GOOD
0x7c4 - Rx unicast packets good register
Sourcepub fn tx_lpi_usec_cntr(&self) -> &TX_LPI_USEC_CNTR
pub fn tx_lpi_usec_cntr(&self) -> &TX_LPI_USEC_CNTR
0x7ec - Tx LPI microsecond timer register
Sourcepub fn tx_lpi_tran_cntr(&self) -> &TX_LPI_TRAN_CNTR
pub fn tx_lpi_tran_cntr(&self) -> &TX_LPI_TRAN_CNTR
0x7f0 - Tx LPI transition counter register
Sourcepub fn rx_lpi_usec_cntr(&self) -> &RX_LPI_USEC_CNTR
pub fn rx_lpi_usec_cntr(&self) -> &RX_LPI_USEC_CNTR
0x7f4 - Rx LPI microsecond counter register
Sourcepub fn rx_lpi_tran_cntr(&self) -> &RX_LPI_TRAN_CNTR
pub fn rx_lpi_tran_cntr(&self) -> &RX_LPI_TRAN_CNTR
0x7f8 - Rx LPI transition counter register
Sourcepub fn macl3l4c0r(&self) -> &MACL3L4C0R
pub fn macl3l4c0r(&self) -> &MACL3L4C0R
0x900 - L3 and L4 control 0 register
Sourcepub fn macl3l4c1r(&self) -> &MACL3L4C1R
pub fn macl3l4c1r(&self) -> &MACL3L4C1R
0x930 - L3 and L4 control 1 register
Sourcepub fn mactxtssnr(&self) -> &MACTXTSSNR
pub fn mactxtssnr(&self) -> &MACTXTSSNR
0xb30 - Tx timestamp status nanoseconds register
Sourcepub fn mactxtsssr(&self) -> &MACTXTSSSR
pub fn mactxtsssr(&self) -> &MACTXTSSSR
0xb34 - Tx timestamp status seconds register
Sourcepub fn macppscr_alternate(&self) -> &MACPPSCR_ALTERNATE
pub fn macppscr_alternate(&self) -> &MACPPSCR_ALTERNATE
0xb70 - PPS control register
Sourcepub fn macppsttsr(&self) -> &MACPPSTTSR
pub fn macppsttsr(&self) -> &MACPPSTTSR
0xb80 - PPS target time seconds register
Sourcepub fn macppsttnr(&self) -> &MACPPSTTNR
pub fn macppsttnr(&self) -> &MACPPSTTNR
0xb84 - PPS target time nanoseconds register
Sourcepub fn mtlrxqmpocr(&self) -> &MTLRXQMPOCR
pub fn mtlrxqmpocr(&self) -> &MTLRXQMPOCR
0xd34 - Rx queue missed packet and overflow counter register
Sourcepub fn dmactxdlar(&self) -> &DMACTXDLAR
pub fn dmactxdlar(&self) -> &DMACTXDLAR
0x1114 - Channel Tx descriptor list address register
Sourcepub fn dmacrxdlar(&self) -> &DMACRXDLAR
pub fn dmacrxdlar(&self) -> &DMACRXDLAR
0x111c - Channel Rx descriptor list address register
Sourcepub fn dmactxdtpr(&self) -> &DMACTXDTPR
pub fn dmactxdtpr(&self) -> &DMACTXDTPR
0x1120 - Channel Tx descriptor tail pointer register
Sourcepub fn dmacrxdtpr(&self) -> &DMACRXDTPR
pub fn dmacrxdtpr(&self) -> &DMACRXDTPR
0x1128 - Channel Rx descriptor tail pointer register
Sourcepub fn dmacrxiwtr(&self) -> &DMACRXIWTR
pub fn dmacrxiwtr(&self) -> &DMACRXIWTR
0x1138 - Channel Rx interrupt watchdog timer register
Sourcepub fn dmaccatxdr(&self) -> &DMACCATXDR
pub fn dmaccatxdr(&self) -> &DMACCATXDR
0x1144 - Channel current application transmit descriptor register
Sourcepub fn dmaccarxdr(&self) -> &DMACCARXDR
pub fn dmaccarxdr(&self) -> &DMACCARXDR
0x114c - Channel current application receive descriptor register
Sourcepub fn dmaccatxbr(&self) -> &DMACCATXBR
pub fn dmaccatxbr(&self) -> &DMACCATXBR
0x1154 - Channel current application transmit buffer register
Sourcepub fn dmaccarxbr(&self) -> &DMACCARXBR
pub fn dmaccarxbr(&self) -> &DMACCARXBR
0x115c - Channel current application receive buffer register