MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / EMACPHYPowerOff

Function EMACPHYPowerOff

bsp/tm4c129x/libraries/driverlib/emac.c:3038–3048  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

3036//
3037//*****************************************************************************
3038void
3039EMACPHYPowerOff(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//

Callers

nothing calls this directly

Calls 2

EMACPHYWriteFunction · 0.70
EMACPHYReadFunction · 0.70

Tested by

no test coverage detected