Struct rk3399_pac::Gmac
source · pub struct Gmac { /* private fields */ }
Expand description
Gigabit Media Access Controller (GMAC) Registers
Implementations§
source§impl Gmac
impl Gmac
sourcepub const PTR: *const RegisterBlock = {0xfe300000 as *const gmac::RegisterBlock}
pub const PTR: *const RegisterBlock = {0xfe300000 as *const gmac::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 mac_frm_filt(&self) -> &MacFrmFilt
pub fn mac_frm_filt(&self) -> &MacFrmFilt
0x04 - MAC Frame Filter
sourcepub fn hash_tab_hi(&self) -> &HashTabHi
pub fn hash_tab_hi(&self) -> &HashTabHi
0x08 - Hash Table High Register
sourcepub fn hash_tab_lo(&self) -> &HashTabLo
pub fn hash_tab_lo(&self) -> &HashTabLo
0x0c - Hash Table Low Register
sourcepub fn pmt_ctrl_sta(&self) -> &PmtCtrlSta
pub fn pmt_ctrl_sta(&self) -> &PmtCtrlSta
0x2c - PMT Control and Status Register
sourcepub fn int_status(&self) -> &IntStatus
pub fn int_status(&self) -> &IntStatus
0x38 - Interrupt Status Register
sourcepub fn mac_addr0_hi(&self) -> &MacAddr0Hi
pub fn mac_addr0_hi(&self) -> &MacAddr0Hi
0x40 - MAC Address0 High Register
sourcepub fn mac_addr0_lo(&self) -> &MacAddr0Lo
pub fn mac_addr0_lo(&self) -> &MacAddr0Lo
0x44 - MAC Address0 Low Register
sourcepub fn an_link_part_ab(&self) -> &AnLinkPartAb
pub fn an_link_part_ab(&self) -> &AnLinkPartAb
0xcc - Auto Negotiation Link Partner Ability Register
sourcepub fn intf_mode_sta(&self) -> &IntfModeSta
pub fn intf_mode_sta(&self) -> &IntfModeSta
0xd8 - RGMII Status Register
sourcepub fn mmc_rx_intr(&self) -> &MmcRxIntr
pub fn mmc_rx_intr(&self) -> &MmcRxIntr
0x104 - MMC Receive Interrupt Register
sourcepub fn mmc_tx_intr(&self) -> &MmcTxIntr
pub fn mmc_tx_intr(&self) -> &MmcTxIntr
0x108 - MMC Transmit Interrupt Register
sourcepub fn mmc_rx_int_msk(&self) -> &MmcRxIntMsk
pub fn mmc_rx_int_msk(&self) -> &MmcRxIntMsk
0x10c - MMC Receive Interrupt Mask Register
sourcepub fn mmc_tx_int_msk(&self) -> &MmcTxIntMsk
pub fn mmc_tx_int_msk(&self) -> &MmcTxIntMsk
0x110 - MMC Transmit Interrupt Mask Register
sourcepub fn mmc_txoctetcnt_gb(&self) -> &MmcTxoctetcntGb
pub fn mmc_txoctetcnt_gb(&self) -> &MmcTxoctetcntGb
0x114 - MMC TX OCTET Good and Bad Counter
sourcepub fn mmc_txfrmcnt_gb(&self) -> &MmcTxfrmcntGb
pub fn mmc_txfrmcnt_gb(&self) -> &MmcTxfrmcntGb
0x118 - MMC TX Frame Good and Bad Counter
sourcepub fn mmc_txundflwerr(&self) -> &MmcTxundflwerr
pub fn mmc_txundflwerr(&self) -> &MmcTxundflwerr
0x148 - MMC TX Underflow Error
sourcepub fn mmc_txcarerr(&self) -> &MmcTxcarerr
pub fn mmc_txcarerr(&self) -> &MmcTxcarerr
0x160 - MMC TX Carrier Error
sourcepub fn mmc_txoctetcnt_g(&self) -> &MmcTxoctetcntG
pub fn mmc_txoctetcnt_g(&self) -> &MmcTxoctetcntG
0x164 - MMC TX OCTET Good Counter
sourcepub fn mmc_txfrmcnt_g(&self) -> &MmcTxfrmcntG
pub fn mmc_txfrmcnt_g(&self) -> &MmcTxfrmcntG
0x168 - MMC TX Frame Good Counter
sourcepub fn mmc_rxfrmcnt_gb(&self) -> &MmcRxfrmcntGb
pub fn mmc_rxfrmcnt_gb(&self) -> &MmcRxfrmcntGb
0x180 - MMC RX Frame Good and Bad Counter
sourcepub fn mmc_rxoctetcnt_gb(&self) -> &MmcRxoctetcntGb
pub fn mmc_rxoctetcnt_gb(&self) -> &MmcRxoctetcntGb
0x184 - MMC RX OCTET Good and Bad Counter
sourcepub fn mmc_rxoctetcnt_g(&self) -> &MmcRxoctetcntG
pub fn mmc_rxoctetcnt_g(&self) -> &MmcRxoctetcntG
0x188 - MMC RX OCTET Good Counter
sourcepub fn mmc_rxmcfrmcnt_g(&self) -> &MmcRxmcfrmcntG
pub fn mmc_rxmcfrmcnt_g(&self) -> &MmcRxmcfrmcntG
0x190 - MMC RX Multicast Frame Good Counter
sourcepub fn mmc_rxcrcerr(&self) -> &MmcRxcrcerr
pub fn mmc_rxcrcerr(&self) -> &MmcRxcrcerr
0x194 - MMC RX Carrier
sourcepub fn mmc_rxlenerr(&self) -> &MmcRxlenerr
pub fn mmc_rxlenerr(&self) -> &MmcRxlenerr
0x1c8 - MMC RX Length Error
sourcepub fn mmc_rxfifoovrflw(&self) -> &MmcRxfifoovrflw
pub fn mmc_rxfifoovrflw(&self) -> &MmcRxfifoovrflw
0x1d4 - MMC RX FIFO Overflow
sourcepub fn mmc_ipc_int_msk(&self) -> &MmcIpcIntMsk
pub fn mmc_ipc_int_msk(&self) -> &MmcIpcIntMsk
0x200 - MMC Receive Checksum Offload Interrupt Mask Register
sourcepub fn mmc_ipc_intr(&self) -> &MmcIpcIntr
pub fn mmc_ipc_intr(&self) -> &MmcIpcIntr
0x208 - MMC Receive Checksum Offload Interrupt Register
sourcepub fn mmc_rxipv4gfrm(&self) -> &MmcRxipv4gfrm
pub fn mmc_rxipv4gfrm(&self) -> &MmcRxipv4gfrm
0x210 - MMC RX IPV4 Good Frame
sourcepub fn mmc_rxipv4hderrfrm(&self) -> &MmcRxipv4hderrfrm
pub fn mmc_rxipv4hderrfrm(&self) -> &MmcRxipv4hderrfrm
0x214 - MMC RX IPV4 Head Error Frame
sourcepub fn mmc_rxipv6gfrm(&self) -> &MmcRxipv6gfrm
pub fn mmc_rxipv6gfrm(&self) -> &MmcRxipv6gfrm
0x224 - MMC RX IPV6 Good Frame
sourcepub fn mmc_rxipv6hderrfrm(&self) -> &MmcRxipv6hderrfrm
pub fn mmc_rxipv6hderrfrm(&self) -> &MmcRxipv6hderrfrm
0x228 - MMC RX IPV6 Head Error Frame
sourcepub fn mmc_rxudperrfrm(&self) -> &MmcRxudperrfrm
pub fn mmc_rxudperrfrm(&self) -> &MmcRxudperrfrm
0x234 - MMC RX UDP Error Frame
sourcepub fn mmc_rxtcperrfrm(&self) -> &MmcRxtcperrfrm
pub fn mmc_rxtcperrfrm(&self) -> &MmcRxtcperrfrm
0x23c - MMC RX TCP Error Frame
sourcepub fn mmc_rxicmperrfrm(&self) -> &MmcRxicmperrfrm
pub fn mmc_rxicmperrfrm(&self) -> &MmcRxicmperrfrm
0x244 - MMC RX ICMP Error Frame
sourcepub fn mmc_rxipv4hderroct(&self) -> &MmcRxipv4hderroct
pub fn mmc_rxipv4hderroct(&self) -> &MmcRxipv4hderroct
0x254 - MMC RX OCTET IPV4 Head Error
sourcepub fn mmc_rxipv6hderroct(&self) -> &MmcRxipv6hderroct
pub fn mmc_rxipv6hderroct(&self) -> &MmcRxipv6hderroct
0x268 - MMC RX OCTET IPV6 Head Error
sourcepub fn mmc_rxudperroct(&self) -> &MmcRxudperroct
pub fn mmc_rxudperroct(&self) -> &MmcRxudperroct
0x274 - MMC RX OCTET UDP Error
sourcepub fn mmc_rxtcperroct(&self) -> &MmcRxtcperroct
pub fn mmc_rxtcperroct(&self) -> &MmcRxtcperroct
0x27c - MMC RX OCTET TCP Error
sourcepub fn mmc_rxicmperroct(&self) -> &MmcRxicmperroct
pub fn mmc_rxicmperroct(&self) -> &MmcRxicmperroct
0x284 - MMC RX OCTET ICMP Error
sourcepub fn tx_poll_demand(&self) -> &TxPollDemand
pub fn tx_poll_demand(&self) -> &TxPollDemand
0x1004 - Transmit Poll Demand Register
sourcepub fn rx_poll_demand(&self) -> &RxPollDemand
pub fn rx_poll_demand(&self) -> &RxPollDemand
0x1008 - Receive Poll Demand Register
sourcepub fn rx_desc_list_addr(&self) -> &RxDescListAddr
pub fn rx_desc_list_addr(&self) -> &RxDescListAddr
0x100c - Receive Descriptor List Address Register
sourcepub fn tx_desc_list_addr(&self) -> &TxDescListAddr
pub fn tx_desc_list_addr(&self) -> &TxDescListAddr
0x1010 - Transmit Descriptor List Address Register
sourcepub fn overflow_cnt(&self) -> &OverflowCnt
pub fn overflow_cnt(&self) -> &OverflowCnt
0x1020 - Missed Frame and Buffer Overflow Counter Register
sourcepub fn rec_int_wdt_timer(&self) -> &RecIntWdtTimer
pub fn rec_int_wdt_timer(&self) -> &RecIntWdtTimer
0x1024 - Receive Interrupt Watchdog Timer Register
sourcepub fn axi_bus_mode(&self) -> &AxiBusMode
pub fn axi_bus_mode(&self) -> &AxiBusMode
0x1028 - AXI Bus Mode Register
sourcepub fn axi_status(&self) -> &AxiStatus
pub fn axi_status(&self) -> &AxiStatus
0x102c - AXI Status Register
sourcepub fn cur_host_tx_desc(&self) -> &CurHostTxDesc
pub fn cur_host_tx_desc(&self) -> &CurHostTxDesc
0x1048 - Current Host Transmit Descriptor Register
sourcepub fn cur_host_rx_desc(&self) -> &CurHostRxDesc
pub fn cur_host_rx_desc(&self) -> &CurHostRxDesc
0x104c - Current Host Receive Descriptor Register
sourcepub fn cur_host_tx_buf_addr(&self) -> &CurHostTxBufAddr
pub fn cur_host_tx_buf_addr(&self) -> &CurHostTxBufAddr
0x1050 - Current Host Transmit Buffer Address Register
sourcepub fn cur_host_rx_buf_addr(&self) -> &CurHostRxBufAddr
pub fn cur_host_rx_buf_addr(&self) -> &CurHostRxBufAddr
0x1054 - Current Host Receive Buffer Address Register