/* TC10 testing could be implemented by polling the PhyState of Ports */
on timer myTimer
{
if (ethGetPhyState(ethernetPort::MyNetworkName::MyPortName) == 1 /*ePhyNormalState*/)
{
write("ethernetPort::MyNetworkName::MyPortName's PHY is operational");
}
if (ethGetPhyState(ethernetPort::MyNetworkName::MyPortName) == 2 /*ePhySleepState */)
{
write("ethernetPort::MyNetworkName::MyPortName's PHY is sleeping");
}
if (ethGetPhyState(ethernetPort::MyNetworkName::MyPortName) == 3 /*ePhyPowerOffState */)
{
write("ethernetPort::MyNetworkName::MyPortName's PHY is powered-down");
}
}