Go to the documentation of this file.
32 #define TRACE_LEVEL NIC_TRACE_LEVEL
66 if(interface->phyAddr >= 32)
73 if(interface->smiDriver != NULL)
75 interface->smiDriver->init();
90 interface->phyEvent =
TRUE;
115 if(linkState && !interface->linkState)
118 interface->phyEvent =
TRUE;
123 else if(!linkState && interface->linkState)
126 interface->phyEvent =
TRUE;
199 interface->linkState =
TRUE;
202 interface->nicDriver->updateMacConfig(interface);
207 interface->linkState =
FALSE;
226 if(interface->smiDriver != NULL)
251 if(interface->smiDriver != NULL)
277 for(i = 0; i < 32; i++)
280 TRACE_DEBUG(
"%02" PRIu8
": 0x%04" PRIX16
"\r\n", i,
void nicNotifyLinkChange(NetInterface *interface)
Process link state change notification.
#define IP101_PHYMCSSR_OP_MODE
#define IP101_PHYMCSSR_OP_MODE_10M_HD
const PhyDriver ip101PhyDriver
IP101 Ethernet PHY driver.
void ip101DumpPhyReg(NetInterface *interface)
Dump PHY registers for debugging purpose.
void ip101EventHandler(NetInterface *interface)
IP101 event handler.
uint16_t ip101ReadPhyReg(NetInterface *interface, uint8_t address)
Read PHY register.
#define IP101_PHYMCSSR_LINK_UP
#define IP101_PHYMCSSR_OP_MODE_10M_FD
void ip101EnableIrq(NetInterface *interface)
Enable interrupts.
void ip101Tick(NetInterface *interface)
IP101 timer handler.
#define IP101_PHYMCSSR_OP_MODE_100M_FD
#define TRACE_WARNING(...)
#define IP101_PHYMCSSR_OP_MODE_100M_HD
error_t ip101Init(NetInterface *interface)
IP101 PHY transceiver initialization.
void ip101DisableIrq(NetInterface *interface)
Disable interrupts.
IC+ IP101 Ethernet PHY driver.
void ip101WritePhyReg(NetInterface *interface, uint8_t address, uint16_t data)
Write PHY register.
void osSetEvent(OsEvent *event)
Set the specified event object to the signaled state.