/* -----------------------------------------------------------------------------
  Filename:    nmcbdwrp_cfg.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: Nm_AsrNmCANbeddedWrapper
               
               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(__NMCBDWRP_CFG_H__)
#define __NMCBDWRP_CFG_H__

/* Version */
#define NM_ASRNMCANWRAPPEREXTDLL_VERSION     0x0331u
#define NM_ASRNMCANWRAPPEREXTDLL_RELEASE_VERSION 0x00u
/* Instance properties */
#define kCbdWrpNumberOfChannels              1
#define kCbdWrpNumberOfCanChannels           1
/* Module options */
#define CBDWRP_DISABLE_ASR_ERROR_REPORT
#define CBDWRP_DISABLE_ASSERTIONS
#define CBDWRP_DISABLE_EARLY_BUSOFF_REINIT
#define CBDWRP_DISABLE_ASRNM_BUSOFF_SUPPORT
#define CBDWRP_DISABLE_TESTDEBUG
#define CBDWRP_ENABLE_RESET_BUSOFF_THRESHOLD_COUNTER_ON_ANY_TX_CONFIRMATION
#define CBDWRP_DISABLE_FASTBUSOFFRECOVERY_CHANGE_CALLBACK
#define CBDWRP_ENABLE_EXTERNAL_CANONLINE_HANDLING
#define CBDWRP_ENABLE_BUSOFF_NOTIFICATION_CALLBACK
/* Channel specific parameters */
#define kCbdWrpBusOffRecoveryTime            100
#define kCbdWrpBusOffRecoveryTimeFast        5
#define kCbdWrpBusOffThreshold               5
#define kCbdWrpNotifyBusOffThreshold         1
#define kCbdWrpCycleTime                     10
/* --------------------- Configuration Data Prototypes --------------------- */
#if defined ( CBDWRP_ADAPTATION_LAYER )
#else
# if ( kCbdWrpNumberOfChannels > 1u )
/* BusOff recovery time parameters. */
extern V_MEMROM0 V_MEMROM1 vuint16 V_MEMROM2 CbdWrpBusOffRecoveryTime[kCbdWrpNumberOfChannels];
extern V_MEMROM0 V_MEMROM1 vuint16 V_MEMROM2 CbdWrpBusOffRecoveryTimeFast[kCbdWrpNumberOfChannels];
extern V_MEMROM0 V_MEMROM1 vuint8  V_MEMROM2 CbdWrpBusOffThreshold[kCbdWrpNumberOfChannels];
extern V_MEMROM0 V_MEMROM1 vuint8  V_MEMROM2 CbdWrpCycleTime[kCbdWrpNumberOfChannels];
extern V_MEMROM0 V_MEMROM1 vuint8  V_MEMROM2 CbdWrpNotifyBusOffThreshold[kCbdWrpNumberOfChannels];
# endif
#endif

#if ( kCbdWrpNumberOfChannels != kCbdWrpNumberOfCanChannels )
/* CAN to local NM channel */
extern V_MEMROM0 V_MEMROM1 vuint8 V_MEMROM2 CanNm_CanToNmChannelInd[kCbdWrpNumberOfCanChannels];
# if defined ( CBDWRP_ADAPTATION_LAYER )
# else
/* Local NM to CAN channel */
extern V_MEMROM0 V_MEMROM1 vuint8 V_MEMROM2 CanNm_NmToCanChannelInd[kCbdWrpNumberOfChannels];
# endif
#endif

#if defined ( NM_ASRNMCANWRAPPEREXT_SOURCE ) || defined ( __NMCBDWRP_PAR_C__ )
/* --------------------- Module Data Prototypes --------------------- */
# if defined ( CBDWRP_ADAPTATION_LAYER )
# else
/* BusOff recovery timer. */
extern V_MEMRAM0 V_MEMRAM1 vuint16 V_MEMRAM2 cbdWrpBusOffRecTimer[kCbdWrpNumberOfChannels];
extern V_MEMRAM0 V_MEMRAM1 vuint8  V_MEMRAM2 cbdWrpBusOffThresholdCounter[kCbdWrpNumberOfChannels];
extern V_MEMRAM0 V_MEMRAM1 vuint8  V_MEMRAM2 cbdWrpNotifyBusOffThresholdCounter[kCbdWrpNumberOfChannels];

#  if defined ( CBDWRP_ENABLE_EARLY_BUSOFF_REINIT )
/* Indication Flag that the CAN Driver is in BusOff state */
extern V_MEMRAM0 V_MEMRAM1 vuint8 V_MEMRAM2 cbdWrpDrvCanIsBusOff[kCbdWrpNumberOfChannels];
#  endif
# endif
#endif

/* 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\nmcbdwrp_cfg.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 /* __NMCBDWRP_CFG_H__ */
