Tool/software:
Hello stack team,
why aren’t the EC_API_SLV_registerPhy and EC_API_SLV_enableMdioManualMode functions declared as EC_API_SLV_stackRegisterPhy and EC_API_SLV_stackEnableMdioManualMode respectively?
The argument EC_API_SLV_SHandle_t *pHandle appears to have no effect.
I tried calling it with a valid pointer handle and a NULL value and the function call succeeded in both cases. This is confusing as it makes it seem like a valid slave object is required to configure the stack.
When I did create the slave object first I would get an invalid sync manager configuration when trying to transition the device to PREOP.
It appears as though there is an ordering dependency here, I could not find documentation outlining this dependency.
Once I moved the call to EC_API_SLV_new after the call to EC_API_SLV_stackInit, things started working.
Best regards
Manuel