app/demo-sn-gpio/sapl/sapl.c
/**
 *
 * The function is called by the openSAFETY Stack (unit SNMTS) in case of reception of SNMT Service "SN set to OPERATIONAL".
 * This callback function requests the application of the SN to calculate the checksum of the current SOD.
 *
 * @attention To pass the calculated parameter checksum to the SNMTS the application must call the API function
 * SNMTS_PassParamChkSumValid(). This API function MUST NOT be called within this callback function.
 *
 * @param       b_instNum         instance number, valid range:  0 .. &lt;EPLS_cfg_MAX_INSTANCES&gt; - 1
 *
 */
The function is called by the openSAFETY Stack (unit SNMTS) in case of reception of SNMT Service "SN set to OPERATIONAL".
This callback function requests the application of the SN to calculate the checksum of the current SOD.

@attention To pass the calculated parameter checksum to the SNMTS the application must call the API function
SNMTS_PassParamChkSumValid(). This API function MUST NOT be called within this callback function.

@param       b_instNum         instance number, valid range:  0 ..
The function is called by the openSAFETY Stack ( unit SNMTS ) in case of reception of SNMT Service " SN set to OPERATIONAL " . This callback function requests the application of the SN to calculate the checksum of the current SOD . @attention To pass the calculated parameter checksum to the SNMTS the application must call the API function SNMTS_PassParamChkSumValid () . This API function MUST NOT be called within this callback function . @param b_instNum instance number valid range : 0 ..
void SAPL_SNMTS_CalcParamChkSumClbk(BYTE_B_INSTNUM)
{
#if (EPLS_cfg_MAX_INSTANCES > 1)
    b_instNum = b_instNum; 
#endif
    paramcrc_startProcessing();
    saplInstance_l.activeTasks_m |= (1<<SAPL_TASK_PROCESS_PARAM_SET_CRC_BIT);
}
void SAPL_SNMTS_CalcParamChkSumClbk ( BYTE_B_INSTNUM ) { #if ( EPLS_cfg_MAX_INSTANCES > 1 ) b_instNum = b_instNum ; #endif paramcrc_startProcessing ( ) ; saplInstance_l . activeTasks_m |= ( 1 << SAPL_TASK_PROCESS_PARAM_SET_CRC_BIT ) ; }
The function is called by the openSAFETY Stack (unit SNMTS) in case of reception of SNMT Service "SN set to OPERATIONAL".
The function is called by the openSAFETY Stack ( unit SNMTS ) in case of reception of SNMT Service " SN set to OPERATIONAL " .
/* To avoid warnings */ /* Start the CRC calculation in the background */ /* Enable corresponding task in SAPL process */