/*
***********************************************************************************************************************
* 
* Product Info
* Isolar version: ISOLAR-AB 4.0.2
* Product release version: RTA-BSW 3.1.0
* 
***********************************************************************************************************************
*/



 
/*<VersionHead>
 * This Configuration File is generated using versions (automatically filled in) as listed below.
 *
 * $Generator__: CanNm / AR42.4.0.0             Module Package Version
 * $Editor_____: 9.0               Tool Version
 * $Model______: 2.3.0.4                ECU Parameter Definition Version
 *
 </VersionHead>*/


 /*
 ******************************************************************************
 * Includes
 ******************************************************************************
 */

#include "CanNm_Priv.h"
#include "CanNm_PBcfg.h"

#if defined(BSWSIM)
//Override the CONST definition -> change it to VAR, for testing purpose
#define CONST(type, memclass) type
#endif


#define CANNM_START_SEC_CONFIG_DATA_POSTBUILD_UNSPECIFIED

#include "CanNm_MemMap.h"
/* Configuration structure of CanNm channels */
CONST(CanNm_ChannelConfigType, CANNM_CONST) CanNm_ChannelConfigData_cs[CANNM_NUMBER_OF_CHANNELS] =
{
/*CanNmChannelConfig*/
    {
        2560000,   /* Message cycle time         */
        0, /* Message cycle offset time  */
        1280000,  /* Message timeout time       */
        0,    /* Message reduced time       */
        500000,   /* Immediate Nm transmission cycle time         */
        2560000,    /* Network Timeout for NM-Messages       */
        3200000,    /* Timeout for Repeat Message State       */
        1280000,    /* Timeout for Remote Sleep Indication       */
        1500000,    /* Timeout for bus calm down phase       */
        7,   /* CanIf transmit PDU Id      */
#if (CANNM_COM_USER_DATA_SUPPORT != STD_OFF)
        0,   /* PduR Handle Id for TxConfirmation   */
#endif
        0,   /* Handle of the ComM channel     */
        8,   /* Pdu Length   */
        CANNM_PDU_BYTE_0,  /* Node Id Position     */
        CANNM_PDU_BYTE_1,  /* Control Bit Vector position      */
        0x0, /* CanNm Node Id              */
        6,  /* User Data Length     */
        1,    /* number of Immediate Nm Pdus     */
#if (CANNM_ERACALC_ENABLED != STD_OFF)
        0,    /* Pdu id of ERA referred pdu in Com */
        0,                                        /* channel index of the channel in ERA array */
        FALSE,                /* ERA status for each channel */
#endif
        TRUE,    /* Configure whether channel has to be initialized */
        FALSE,    /* Enable/Disable bus load reduction */
#if (CANNM_PN_ENABLED != STD_OFF)
        FALSE,            /* PN enabled for the channel ? */
        FALSE,        /* Keep awake on any message */
        FALSE,        /* Enable/Disable pn multiple network request handle */
#endif
       
#if (CANNM_CAR_WAKEUP_RX_ENABLED!= STD_OFF)        
        FALSE,
#if (CANNM_CAR_WAKEUP_FILTER_ENABLED!= STD_OFF)         
        FALSE, 
        0,
#endif        
        0,
        0,        
#endif      

        FALSE         /* Enables/Disables the handling of the Active Wakeup Bit */
    }
};


#define CANNM_STOP_SEC_CONFIG_DATA_POSTBUILD_UNSPECIFIED

#include "CanNm_MemMap.h"

#if defined(BSWSIM)
/* Change the definition back to CONST */
#define CONST(type, memclass) const type
#endif



#if ((CANNM_CONFIGURATION_VARIANT != CANNM_VARIANT_PRE_COMPILE)||(CANNM_PN_ENABLED != STD_OFF))

#define CANNM_START_SEC_CONFIG_DATA_POSTBUILD_UNSPECIFIED
#include "CanNm_MemMap.h"

/* CanNm global configuration structure */
CONST(CanNm_GlobalConfigType, CANNM_CONST) CanNm_GlobalConfigData_cs =
{
#if (CANNM_CONFIGURATION_VARIANT != CANNM_VARIANT_PRE_COMPILE)
        CanNm_ChannelConfigData_cs
#endif
#if (CANNM_PN_ENABLED != STD_OFF)
        CanNm_PnFilterMask
#endif
#if (CANNM_EIRACALC_ENABLED != STD_OFF)|| (CANNM_ERACALC_ENABLED != STD_OFF)
        ,CanNm_PNInfoTable
        ,0
#if (CANNM_CONFIGURATION_VARIANT != CANNM_VARIANT_PRE_COMPILE)
        ,CANNM_NUMBER_OF_PNS
#endif
#endif
};


#define CANNM_STOP_SEC_CONFIG_DATA_POSTBUILD_UNSPECIFIED
#include "CanNm_MemMap.h"

#endif

#if (CANNM_CONFIGURATION_VARIANT != CANNM_VARIANT_PRE_COMPILE)

#define CANNM_START_SEC_CONFIG_DATA_POSTBUILD_UNSPECIFIED
#include "CanNm_MemMap.h"

static CONST(Std_VersionInfoType, CANNM_CONST)  CanNm_VersionInfo =
{
    6,              // Vendor Id
    31,              // Module Id
    4,       // Sw Major Version
    0,       // Sw Minor Version
    0        // Sw Patch Version
};


#define CANNM_STOP_SEC_CONFIG_DATA_POSTBUILD_UNSPECIFIED
#include "CanNm_MemMap.h"

#endif

#if (CANNM_CONFIGURATION_VARIANT != CANNM_VARIANT_PRE_COMPILE)

#define CANNM_START_SEC_CONFIG_DATA_POSTBUILD_UNSPECIFIED
#include "CanNm_MemMap.h"

/* Base configuration structure */
CONST(CanNm_ConfigType, CANNM_CONST) CanNmGlobalConfig = {
    /* Void pointer initialised with pointer to an instance of structure CanNm_GlobalConfigType */
    &CanNm_GlobalConfigData_cs,
    &CanNm_VersionInfo
};

#define CANNM_STOP_SEC_CONFIG_DATA_POSTBUILD_UNSPECIFIED
#include "CanNm_MemMap.h"

#endif
