MDIO module configuration.
Configuration parameters for the MDIO module.
Data Fields | |
Mdio_OpMode | mode |
uint32_t | mdioBusFreqHz |
uint32_t | phyStatePollFreqHz |
uint32_t | pollEnMask |
uint32_t | c45EnMask |
bool | isMaster |
Mdio_OpMode Mdio_Cfg::mode |
MDIO module operating mode
uint32_t Mdio_Cfg::mdioBusFreqHz |
MDIO bus clock (MDCLK) frequency in Hz
uint32_t Mdio_Cfg::phyStatePollFreqHz |
Polling inter packet gap frequency in Hz
uint32_t Mdio_Cfg::pollEnMask |
Indicates which PHY addresses have polling enabled. The ENET_MDIO_PHY_ADDR_MASK macro should be used to create the mask. Only two PHYs can be monitored in Normal Mode, so only two bits must be set if operating in that mode.
uint32_t Mdio_Cfg::c45EnMask |
Indicates which PHY addresses will use Clause-45 frame format. The ENET_MDIO_PHY_ADDR_MASK macro should be used to create the mask
bool Mdio_Cfg::isMaster |
MDIO module can be shared by multiple peripherals, so only one peripheral (master) must perform the MDIO initial configuration and be skipped by the other peripherals (slaves). There must be only one peripheral marked as master among the those that share the MDIO. This condition is not enforced in driver, so it's application's responsibility this requirement is met.