EtherCAT Slave  1.06.01

◆ EC_API_SLV_load()

uint32_t EC_API_SLV_load ( OSAL_PJumpBuf_t *  pExceptionPoint_p,
OSAL_ERR_CBHandler_t  cbErrHandler_p,
uint32_t  pruSelect_p 
)

Initialize stack environment (OSAL and HWAL) after load.

Parameters
[in]pExceptionPoint_pException callback context.
[in]cbErrHandler_pException callback
[in]pruSelect_pselection of logical PRU (1,2,...)
Returns
0 on success, errorcode otherwise
Example
#include <ecSlvApi.h>
// required variables
uint32_t retVal = 0;
// the Call
retVal = EC_API_SLV_Load(&tJumpBuf_g, applErrHandler, EC_API_SLV_ePRUICSS_INSTANCE_ONE);
See also
EC_API_SLV_UnLoad
Examples
EtherCAT_Slave_CiA402.c, EtherCAT_Slave_ESI_Parser.c, and EtherCAT_Slave_Simple.c.
EC_API_SLV_ePRUICSS_INSTANCE_ONE
@ EC_API_SLV_ePRUICSS_INSTANCE_ONE
Definition: ecSlvApi.h:69