/* -----------------------------------------------------------------------------
  Filename:    ccl_par.h
  Description: Toolversion: 02.03.25.01.90.05.57.01.00.00
               
               Serial Number: CBD1900557
               Customer Info: Ningbo Joyson Preh Car Connect Co., Ltd.
                              Package: CBD_Vector_SLP2
                              Micro: MPC5745B
                              Compiler: Gnu 9.2.0
               
               
               Generator Fwk   : GENy 
               Generator Module: Ccl__core
               
               Configuration   : C:\Data\Users\huo_h1\Documents\NIO_FORCE_VBOX-SVN\30_DevelopLibrary\03_SW\90_Others\CANbedded\NIO_Geny_Force_BTA_CAN_Draft_0_1\NIO_Geny_For_CanMatrix\GENy.gny
               
               ECU: 
                       TargetSystem: Hw_Mpc5700Cpu
                       Compiler:     GNU
                       Derivates:    MPC5746C
               
               Channel "Channel0":
                       Databasefile: C:\Data\Users\huo_h1\Documents\NIO_FORCE_VBOX-SVN\30_DevelopLibrary\03_SW\90_Others\CANbedded\NIO_Geny_Force_BTA_CAN_Draft_0_1\NIO_Geny_For_CanMatrix\NIO_Force_BTA_CAN_draft_2020_9_22.dbc
                       Bussystem:    CAN
                       Manufacturer: Vector
                       Node:         SA

 ----------------------------------------------------------------------------- */
/* -----------------------------------------------------------------------------
  C O P Y R I G H T
 -------------------------------------------------------------------------------
  Copyright (c) 2001-2015 by Vector Informatik GmbH. All rights reserved.
 
  This software is copyright protected and proprietary to Vector Informatik 
  GmbH.
  
  Vector Informatik GmbH grants to you only those rights as set out in the 
  license conditions.
  
  All other rights remain with Vector Informatik GmbH.
 -------------------------------------------------------------------------------
 ----------------------------------------------------------------------------- */

#if !defined(__CCL_PAR_H__)
#define __CCL_PAR_H__

/******************************************************************************/
/* Include files                                                              */
/******************************************************************************/
#include "v_cfg.h"
#include "v_def.h"
#include "can_inc.h"
#include "ccl_inc.h"

/******************************************************************************/
/* Defines                                                                    */
/******************************************************************************/
#ifndef NM_OK
  #define NM_OK 0
#endif

#if !defined ( DRV_API_CALLBACK_TYPE )
  #define DRV_API_CALLBACK_TYPE
#endif


#define CCL_USE_REQUEST_SETEXTEMCCOM_FCT /* SetExtEmcComRequest routines are enabled in the CCL module */ 

#define CCL_USE_REQUEST_SETEXTCOM_FCT /* SetExtComRequest routines are enabled in the CCL module */ 

#define CCL_USE_REQUEST_SETINTCOM_FCT /* SetIntComRequest routines are enabled in the CCL module */ 

#define CCL_USE_REQUEST_CLEARCOM_FCT /* ClearComRequest routines are enabled in the CCL module */ 

#define CCL_DISABLE_WAKEUP_EV

#define CCL_DISABLE_SLEEP_COND

#define CCL_ENABLE_STOP_TIMEOUT


V_MEMROM0 extern V_MEMROM1 vuint8 V_MEMROM2 cclNmWakeUpAble;
V_MEMROM0 extern V_MEMROM1 vuint16 V_MEMROM2 cclMissingAckTimeoutValue[1];
V_MEMROM0 extern V_MEMROM1 vuint16 V_MEMROM2 cclMissingAckPauseTimeoutValue[1];
V_MEMROM0 extern V_MEMROM1 vuint16 V_MEMROM2 cclMinNmActivationTimerValue[1];
V_MEMROM0 extern V_MEMROM1 vuint8 V_MEMROM2 cclNmType[1];
V_MEMROM0 extern V_MEMROM1 vuint8 V_MEMROM2 cclStartIndex[1];
V_MEMROM0 extern V_MEMROM1 vuint8 V_MEMROM2 cclStopIndex[1];
V_MEMROM0 extern V_MEMROM1 vuint8 V_MEMROM2 cclUserOffset[kCclNumberOfUser];
V_MEMROM0 extern V_MEMROM1 vuint8 V_MEMROM2 cclUserMask[kCclNumberOfUser];
V_MEMROM0 extern V_MEMROM1 vuint8 V_MEMROM2 cclUserChannel[kCclNumberOfUser];
/*** prototypes ***/
extern void CclInitPowerOnFct(void);
extern void CclInitFct(void);
extern void CclSystemShutdownFct(void);
extern void CclNmSleepReqFct(vuint8 network);
extern vuint8 CclNmActiveReqFct(vuint8 network);
extern void CclNmPrepareSleepReqFct(void);
extern void CclInitTrcvFct(void);
extern void CclWakeUpTrcvFct(void);
extern void CclSleepTrcvFct(void);
extern void CclConfigTrcvIntFct(void);
extern void CclClearTrcvIntFct(void);
extern void CclDisableTrcvIntFct(void);
extern void CclEnableTrcvIntFct(void);

extern void CclExtEmcComReqFct(void);
extern void CclExtCanComReqFct(void);
extern void CclIntComReqFct(void);
extern void CclComRelFct(void);

extern void CCL_API_CALLBACK_TYPE CanWakupeMessageRxIndicaiton(void);
extern void CCL_API_CALLBACK_TYPE ApplWakeupByBusIndication(void);
extern void CCL_API_CALLBACK_TYPE ApplFirstCommReqIndication(void);
extern void CCL_API_CALLBACK_TYPE ApplBusSleepIndication(void);


/* begin Fileversion check */
#ifndef SKIP_MAGIC_NUMBER
#ifdef MAGIC_NUMBER
  #if MAGIC_NUMBER != 362388152
      #error "The magic number of the generated file <C:\Data\Users\huo_h1\Documents\NIO_FORCE_VBOX-SVN\30_DevelopLibrary\03_SW\90_Others\CANbedded\NIO_Geny_Force_BTA_CAN_Draft_0_1\NIO_Geny_For_CanMatrix\Generate Files\ccl_par.h> is different. Please check time and date of generated files!"
  #endif
#else
  #define MAGIC_NUMBER 362388152
#endif  /* MAGIC_NUMBER */
#endif  /* SKIP_MAGIC_NUMBER */

/* end Fileversion check */

#endif /* __CCL_PAR_H__ */
