
#include "Dcm_Cfg_Prot.h"
#include "DcmDspUds_Rc_Inf.h"
#include "Rte_Dcm.h"
/*TESTCODE-START
#include "DcmTest.h"
TESTCODE-END*/

#if((DCM_CFG_DSP_ROUTINECONTROL_ENABLED != DCM_CFG_OFF))

#define DCM_START_SEC_CODE /*Adding this for memory mapping*/
#include "Dcm_MemMap.h"
 /**
 * @ingroup DCM_TPL
 * DcmAppl_UserRIDModeRuleService :-\n
 * Function to do specific checks on the RID in  the routine control requests before processing the service.The ErrorCode parameter(Nrc_u8) needs to be updated by the application in case of failed checks.
 *
 * @param[in]     rid_u16 : RID under processing
 * @param[in]     Subfunc_u8 : Subfunction of the service under process
 * @param[out]    Nrc_u8 : NRC to be set by the application
 * @retval               E_OK   : RID specific checks passed successfully \n
 * @retval               E_NOT_OK  : RID specific checks failed\n
 *
 */
Std_ReturnType DcmAppl_UserRIDModeRuleService(Dcm_NegativeResponseCodeType * Nrc_u8, uint16 rid_u16, uint8 subfunction_u8)
{
	Std_ReturnType retVal_u8 = E_OK;
	*Nrc_u8= 0x00;
	/*TESTCODE-START
	retVal_u8=DcmTest_DcmAppl_UserRIDModeRuleService(Nrc_u8,rid_u16,subfunction_u8);
	TESTCODE-END*/
	return (retVal_u8);
}
#define DCM_STOP_SEC_CODE /*Adding this for memory mapping*/
#include "Dcm_MemMap.h"
#endif

