Powers off the Ethernet PHY. \param ui32Base is the base address of the controller. \param ui8PhyAddr is the physical address of the PHY to power down. This function powers off the Ethernet PHY, reducing the current consumption of the device. While in the powered-off state, the Ethernet controller is unable to connect to Ethernet. \return None.
| 3036 | // |
| 3037 | //***************************************************************************** |
| 3038 | void |
| 3039 | EMACPHYPowerOff(uint32_t ui32Base, uint8_t ui8PhyAddr) |
| 3040 | { |
| 3041 | // |
| 3042 | // Set the PWRDN bit and clear the ANEN bit in the PHY, putting it into |
| 3043 | // its low power mode. |
| 3044 | // |
| 3045 | EMACPHYWrite(ui32Base, ui8PhyAddr, EPHY_BMCR, |
| 3046 | (EMACPHYRead(ui32Base, ui8PhyAddr, EPHY_BMCR) & |
| 3047 | ~EPHY_BMCR_ANEN) | EPHY_BMCR_PWRDWN); |
| 3048 | } |
| 3049 | |
| 3050 | //***************************************************************************** |
| 3051 | // |
nothing calls this directly
no test coverage detected