EtherCAT Slave  1.06.01

◆ EC_API_SLV_registerPhy()

bool EC_API_SLV_registerPhy ( uint8_t  phyIdx_p,
uint8_t  phyAddr_p,
bool  invertLinkPolarity_p,
bool  useRxLinkPin_p 
)

Register a phy for stack usage.

Parameters
[in]phyIdx_pIndex of Phy (0/1)
[in]phyAddr_pphy address on MII bus
[in]invertLinkPolarity_ptrue: link polarity active high, false: link polarity active low
[in]useRxLinkPin_ptrue: use RxLink pin for Link Detection, false: use MDIO state machine
Returns
true on success, false otherwise
Example
#include <ecSlvApi.h>
// required variables
// the Call
Examples
ecSlvCiA402.c, and ecSlvESI.c.
EC_API_SLV_registerPhy
bool EC_API_SLV_registerPhy(uint8_t phyIdx_p, uint8_t phyAddr_p, bool invertLinkPolarity_p, bool useRxLinkPin_p)
Register a phy for stack usage.
Definition: ecSlvApi_BoardStub.c:121