Hi,
In the example, C:\ti\sysbios_ind_sdk_2.1.1.2\sdk\examples\ethercat_slave, pSlaveInterface is declared as extern pEACT_SLAVE_INTERFACE (line 68 in tiescappl.c).
In lines 147-148 of tiescutils.c,
//assign application function pointer
pSlaveInterface->pApplication = (void (*)(void))&Demo_Application;
pSlaveInterface->pStateTrans = &Demo_StateTrans;
Apart from those places, I can't see anywhere else where pSlaveInterface appears or is called in those files either explicitly or implicitly.
However, Demo_Apllication is called periodically. From the debugger, it can be seen that task1()->MainLoop()->APPL_Application()->Demo_Application(). There is no description about what MainLoop() and APPL_Application are and how to use them although the source code of those third party functions is not available.
Please provide more information about how Demo_Application() and Demo_StateTrans() are called.
Many thanks