
#include "Dcm_Cfg_Prot.h"
#include "DcmDspUds_Roe_Inf.h"
#include "Rte_Dcm.h"
/*TESTCODE-START
#include "DcmTest.h"
TESTCODE-END*/
#if(DCM_CFG_DSPUDSSUPPORT_ENABLED != DCM_CFG_OFF)

#if(DCM_CFG_DSP_RESPONSEONEVENT_ENABLED != DCM_CFG_OFF)

#if(DCM_CFG_DSP_ROEDID_ENABLED!=DCM_CFG_OFF)


 /**
 * @ingroup DCM_TPL
 * DcmAppl_DcmStoreRoeDidInfo :-\n
 * Function to do specific checks on the subfunction parameter before processing the service.The ErrorCode parameter(Nrc_u8) needs to be updated by the application in case of failed checks.
 *
 * @param[in]       DID : DID to be monitored by ROE
 * @param[in]	    RoeeventID : Event Id of Roe Event
 * @param[in]       RoeEventStatus : Status of Roe Event. The possible values of RoeEventStatus is DCM_ROE_CLEARED, DCM_ROE_STOPPED and DCM_ROE_STARTED
 * @param[in]       SourceAddress : Tester Source Address.Source of the address value is from configuration parameter DcmDslProtocolRxTesterSourceAddr.
 * @param[in]       dspRoeStorageState_b : Storage bit information
 * @param[in]       OpStatus : Information of the opstatus
 * @param[in]       dspRoeSessionIsDefault_b : If the current session is Default session, than this parameter will be  true
 * @param[inout]    None
 * @param[out]      ErrorCode: Reason for not setting up the requested event
 * @retval          Std_ReturnType
 *                  E_OK   :    storing event successful.
 *	                E_NOT_OK  : Storing event not ok.
 *                  DCM_E_PENDING: Need more time to store the event
 */
#define DCM_START_SEC_CODE /*Adding this for memory mapping*/
#include "Dcm_MemMap.h"
Std_ReturnType DcmAppl_DcmStoreRoeDidInfo( uint16 Did,
                                                               uint8 RoeeventID,
                                                               Dcm_DspRoeEventState_ten RoeEventStatus,
                                                               uint16 SourceAddress,
                                                               boolean dspRoeStorageState_b,
                                                               Dcm_OpStatusType OpStatus,
                                                               boolean dspRoeSessionIsDefault_b,
                                                               Dcm_NegativeResponseCodeType * ErrorCode)
{
	Std_ReturnType retVal_u8 = E_OK;
	*ErrorCode = 0x0;
    (void)(Did);
    (void)(RoeeventID);
    (void)(RoeEventStatus);
    (void)(SourceAddress);
    (void)(dspRoeStorageState_b);
    (void)(OpStatus);
    (void)(dspRoeSessionIsDefault_b);
	/*TESTCODE-START
	retVal_u8=DcmTest_DcmAppl_DcmStoreRoeDidInfo( Did, RoeeventID, RoeEventStatus, SourceAddress, dspRoeStorageState_b, OpStatus, dspRoeSessionIsDefault_b, ErrorCode);
	TESTCODE-END*/
	return (retVal_u8);
}
#define DCM_STOP_SEC_CODE /*Adding this for memory mapping*/
#include "Dcm_MemMap.h"

#endif
#endif
#endif
