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


#define DCM_START_SEC_CODE /*Adding this for memory mapping*/
#include "Dcm_MemMap.h"
/**
 * @ingroup DCM_TPL
 * DcmAppl_DcmCheckCDTCRecord:-\n
 * This api should check the validity of the controlOptionRecord passed in the CDTC request.
 * @param[in]   ControlOptionRecord : Constant pointer to DTCSessionControlOptionRecord in request\n
 * @param[in]   Length              : Variable to hold length of contrl option record in request\n
 * @param[out]  ErrorCode           : Pointer to Negative Response Code, OUT Parameter\n
 *
 * @retval      E_OK : If contents of ControlOptionRecord is valid.\n
 * @retval      E_NOT_OK : If contents of ControlOptionRecord is invalid.\n
 */
Std_ReturnType DcmAppl_DcmCheckCDTCRecord (
                                    const uint8 * ControlOptionRecord,
                                    uint8 Length,
                                    Dcm_NegativeResponseCodeType * ErrorCode
                                                                )
{
    Std_ReturnType retVal = E_OK;
	(void)ControlOptionRecord;
    (void)Length;
    *ErrorCode = 0x00;

	/*TESTCODE-START
	retVal = DcmTest_DcmAppl_DcmCheckCDTCRecord(ControlOptionRecord,Length,ErrorCode);
	TESTCODE-END*/

    return(retVal);
}
#define DCM_STOP_SEC_CODE /*Adding this for memory mapping*/
#include "Dcm_MemMap.h"
#endif /* (DCM_CFG_DSPUDSSUPPORT_ENABLED != DCM_CFG_OFF) && (DCM_CFG_DSP_CONTROLDTCSETTING_ENABLED != DCM_CFG_OFF) */

