EtherCAT SubDevice
 
Loading...
Searching...
No Matches

◆ EC_API_SLV_registerPhy()

uint32_t EC_API_SLV_registerPhy ( EC_API_SLV_SHandle_t pHandle,
uint8_t  phyIdx,
uint8_t  phyAddr,
bool  invertLinkPolarity,
bool  useRxLinkPin 
)

Register a phy for stack usage.

Parameters
[in]pHandleDTK handle
[in]phyIdxIndex of Phy (0/1)
[in]phyAddrphy address on MII bus
[in]invertLinkPolaritytrue: link polarity active high, false: link polarity active low
[in]useRxLinkPintrue: 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
EC_API_SLV_registerPhy(pHandle, 0, 1, false);
EC_API_SLV_registerPhy(pHandle, 1, 3, false);
uint32_t EC_API_SLV_registerPhy(EC_API_SLV_SHandle_t *pHandle, uint8_t phyIdx, uint8_t phyAddr, bool invertLinkPolarity, bool useRxLinkPin)
Register a phy for stack usage.
Definition ecSlvApi_board.c:54