/*
***********************************************************************************************************************
* 
* 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__: CanIf / AR42.4.0.1                Module Package Version
 * $Editor_____: 9.0                Tool Version
 * $Model______: 2.0.2.1                ECU Parameter Definition Version
 *

 </VersionHead>*/


/******************************************************************************/
/*                                  Include Section                                */
/******************************************************************************/

/* CanIf Private header */
#include "CanIf_Priv.h"
/* CanIf post build header */
#include "CanIf_PBcfg.h"
/* CanIf post build header */
#include "CanIf_Cfg_Internal.h"












/* BusOff callback functions to Can State Manager */
#include "CanSM_Cbk.h"
#if (!defined(CANSM_AR_RELEASE_MAJOR_VERSION) || (CANSM_AR_RELEASE_MAJOR_VERSION != CANIF_AR_RELEASE_MAJOR_VERSION))
#error "AUTOSAR major version undefined or mismatched"
#endif
#if (!defined(CANSM_AR_RELEASE_MINOR_VERSION) || (CANSM_AR_RELEASE_MINOR_VERSION != CANIF_AR_RELEASE_MINOR_VERSION))
#error "AUTOSAR minor version undefined or mismatched"
#endif
















/*
 ******************************************************************************
 * Variables
 ******************************************************************************
 */








/* CANIF callback configuration */

#if(CANIF_VARIANT_INFO != 2) && (CANIF_VARIANT_INFO != 3)
#define CANIF_START_SEC_CONST_UNSPECIFIED
#else
#define CANIF_START_SEC_CONFIG_DATA_POSTBUILD_UNSPECIFIED
#endif
#include "CanIf_MemMap.h"
CONST(CanIf_CallbackFuncType, CANIF_CONST) CanIf_Callback =
{

    &CanSM_ControllerBusOff,














    NULL_PTR,
    
    &CanSM_ControllerModeIndication,
    NULL_PTR,
    NULL_PTR,
    
    NULL_PTR
    

};

#if(CANIF_VARIANT_INFO != 2) && (CANIF_VARIANT_INFO != 3)
#define CANIF_STOP_SEC_CONST_UNSPECIFIED
#else
#define CANIF_STOP_SEC_CONFIG_DATA_POSTBUILD_UNSPECIFIED
#endif
#include "CanIf_MemMap.h"
















/* Tx PDUs Configuration */
#if(CANIF_VARIANT_INFO != 2) && (CANIF_VARIANT_INFO != 3)
#define CANIF_START_SEC_CONST_UNSPECIFIED
#else
#define CANIF_START_SEC_CONFIG_DATA_POSTBUILD_UNSPECIFIED
#endif
#include "CanIf_MemMap.h"
CONST(CanIf_TxPduInfo, CANIF_CONST) CanIf_TxPduConfig[]=
{
/*
    CanTxPduId, TargetTxPduId, CanTxPduId, Hth_Ref_Id, Controller, CanIdType,  User,  ReadTxPdu,  CbkIdx ,Tx_Buffer Offset , Start Indx , End Indx, HTHIndex, CanId,  DLC,                                     Type                                                 Notify
                                                                                        Status
*/



{   CanIfConf_CanIfTxPduCfg_BMS_BatteryMeasure_Tx_Can_Network_CANNODE_0,    0 ,   CANIF_STATIC,   (uint8)Can_17_MCanPConf_CanHardwareObject_Can_Network_CANNODE_0_Tx_Std_MailBox_1,    (uint8)CANIF_Can_Network_CANNODE_0,   0x00,   PDUR,   FALSE    ,    0,   0x280,   8 },
{   CanIfConf_CanIfTxPduCfg_TST_TestResultFrame_Can_Network_CANNODE_0,    4 ,   CANIF_STATIC,   (uint8)Can_17_MCanPConf_CanHardwareObject_Can_Network_CANNODE_0_Tx_Std_MailBox_2,    (uint8)CANIF_Can_Network_CANNODE_0,   0x00,   PDUR,   FALSE    ,    0,   0xD3,   8 },
{   CanIfConf_CanIfTxPduCfg_Memory_TestResultFrame_Can_Network_CANNODE_0,    3 ,   CANIF_STATIC,   (uint8)Can_17_MCanPConf_CanHardwareObject_Can_Network_CANNODE_0_Tx_Std_MailBox_3,    (uint8)CANIF_Can_Network_CANNODE_0,   0x00,   PDUR,   FALSE    ,    0,   0xD4,   8 },
{   CanIfConf_CanIfTxPduCfg_BMS_EngineState_Tx_Can_Network_CANNODE_0,    1 ,   CANIF_STATIC,   (uint8)Can_17_MCanPConf_CanHardwareObject_Can_Network_CANNODE_0_Tx_Std_MailBox_4,    (uint8)CANIF_Can_Network_CANNODE_0,   0x00,   PDUR,   FALSE    ,    0,   0x281,   8 },
{   CanIfConf_CanIfTxPduCfg_BMS_StateOfHealth_Tx_Can_Network_CANNODE_0,    2 ,   CANIF_STATIC,   (uint8)Can_17_MCanPConf_CanHardwareObject_Can_Network_CANNODE_0_Tx_Std_MailBox_5,    (uint8)CANIF_Can_Network_CANNODE_0,   0x00,   PDUR,   FALSE    ,    0,   0x282,   8 },
{   CanIfConf_CanIfTxPduCfg_UDS_Tx_Phys_Id_0x4F0_Can_Network_CANNODE_0,    CanTpConf_CanTpTxNPdu_UDS_Tx_Phys_Id_0x4F0_Can_Network_CANNODE_0_Phys_CanTp2CanIf ,   CANIF_STATIC,   (uint8)Can_17_MCanPConf_CanHardwareObject_Can_Network_CANNODE_0_Tx_Std_MailBox_6,    (uint8)CANIF_Can_Network_CANNODE_0,   0x00,   CANTP,   FALSE    ,    0,   0x4F0,   8 },
{   CanIfConf_CanIfTxPduCfg_XCP_TX_FRAME_Can_Network_CANNODE_0,    0 ,   CANIF_STATIC,   (uint8)Can_17_MCanPConf_CanHardwareObject_Can_Network_CANNODE_0_Tx_Std_MailBox_7,    (uint8)CANIF_Can_Network_CANNODE_0,   0x00,   XCP,   FALSE    ,    0,   0x511,   8 },
{   CanIfConf_CanIfTxPduCfg_Nm_Message_Tx_Can_Network_CANNODE_0,    0 ,   CANIF_STATIC,   (uint8)Can_17_MCanPConf_CanHardwareObject_Can_Network_CANNODE_0_Tx_Std_MailBox_8,    (uint8)CANIF_Can_Network_CANNODE_0,   0x00,   CANNM,   FALSE    ,    0,   0x410,   8 },
{   CanIfConf_CanIfTxPduCfg_Diag_OBD_ON_CAN_Tx_Can_Network_CANNODE_0,    CanTpConf_CanTpTxNPdu_Diag_OBD_ON_CAN_CanTp2CanIf ,   CANIF_STATIC,   (uint8)Can_17_MCanPConf_CanHardwareObject_Can_Network_CANNODE_0_Tx_Std_MailBox_9,    (uint8)CANIF_Can_Network_CANNODE_0,   0x00,   CANTP,   FALSE    ,    0,   0x7E8,   8 }};
#if(CANIF_VARIANT_INFO != 2) && (CANIF_VARIANT_INFO != 3)
#define CANIF_STOP_SEC_CONST_UNSPECIFIED
#else
#define CANIF_STOP_SEC_CONFIG_DATA_POSTBUILD_UNSPECIFIED
#endif
#include "CanIf_MemMap.h"










/* Rx Handle configuration */

#define CANIF_START_SEC_CONFIG_DATA_POSTBUILD_UNSPECIFIED
#include "CanIf_MemMap.h"

CONST(CanIf_HrhConfigType, CANIF_CONST) CanIf_HrhConfig[] =
{
/*   HRHInfo ,    Pdu/ListIdx,   NumCanIds/NumRanges,     Controller,  ReadRxPduInfo,    CanId,  HrhRangeMask */

{ CANIF_FULL,       0    ,       1    ,   (uint8)CANIF_Can_Network_CANNODE_0,       CANIF_READ_NOTIFSTATUS,   0xD2,       0x1FFFFFFFU }/*Can_Network_CANNODE_0_Rx_Std_MailBox_1*/,
{ CANIF_FULL,       1    ,       1    ,   (uint8)CANIF_Can_Network_CANNODE_0,       CANIF_READ_NOTIFSTATUS,   0x4E0,       0x1FFFFFFFU }/*Can_Network_CANNODE_0_Rx_Std_MailBox_2*/,
{ CANIF_FULL,       2    ,       1    ,   (uint8)CANIF_Can_Network_CANNODE_0,       CANIF_READ_NOTIFSTATUS,   0x310,       0x1FFFFFFFU }/*Can_Network_CANNODE_0_Rx_Std_MailBox_3*/,
{ CANIF_FULL,       3    ,       1    ,   (uint8)CANIF_Can_Network_CANNODE_0,       CANIF_READ_NOTIFSTATUS,   0x311,       0x1FFFFFFFU }/*Can_Network_CANNODE_0_Rx_Std_MailBox_4*/,
{ CANIF_FULL,       4    ,       1    ,   (uint8)CANIF_Can_Network_CANNODE_0,       CANIF_READ_NOTIFSTATUS,   0x312,       0x1FFFFFFFU }/*Can_Network_CANNODE_0_Rx_Std_MailBox_5*/,
{ CANIF_FULL,       5    ,       1    ,   (uint8)CANIF_Can_Network_CANNODE_0,       CANIF_READ_NOTIFSTATUS,   0x400,       0x1FFFFFFFU }/*Can_Network_CANNODE_0_Rx_Std_MailBox_6*/,
{ CANIF_FULL,       6    ,       1    ,   (uint8)CANIF_Can_Network_CANNODE_0,       CANIF_READ_NOTIFSTATUS,   0x500,       0x1FFFFFFFU }/*Can_Network_CANNODE_0_Rx_Std_MailBox_7*/,
{ CANIF_FULL,       7    ,       1    ,   (uint8)CANIF_Can_Network_CANNODE_0,       CANIF_READ_NOTIFSTATUS,   0x7DF,       0x1FFFFFFFU }/*Can_Network_CANNODE_0_Rx_Std_MailBox_8*/
};

#define CANIF_STOP_SEC_CONFIG_DATA_POSTBUILD_UNSPECIFIED
#include "CanIf_MemMap.h"















/* Rx PDUs Configuration */

#define CANIF_START_SEC_CONFIG_DATA_POSTBUILD_UNSPECIFIED
#include "CanIf_MemMap.h"
CONST(CanIf_RxPduConfigType, CANIF_CONST) CanIf_RxPduConfig[]=
{
/*     RxBufferOffset,  target ID,  RxPduId , HRH , CbkIdx, User, CanIdType, DLC,  RxPduCanId      */

{    PduRConf_PduRSrcPdu_TST_TestFrame_Can_Network_CANNODE_0_CanIf2PduR ,   CanIfConf_CanIfRxPduCfg_TST_TestFrame_Can_Network_CANNODE_0,       0,  0,   PDUR,   0x20u,   8,   0xD2 },
{    CanTpConf_CanTpRxNPdu_UDS_Rx_Phys_Id_0x4E0_Can_Network_CANNODE_0_Phys_CanIf2CanTp ,   CanIfConf_CanIfRxPduCfg_UDS_Rx_Phys_Id_0x4E0_Can_Network_CANNODE_0,       1,  0,   CANTP,   0x20u,   1,   0x4E0 },
{    PduRConf_PduRSrcPdu_BMS_BatteryMeasure_Rx_Can_Network_CANNODE_0_CanIf2PduR ,   CanIfConf_CanIfRxPduCfg_BMS_BatteryMeasure_Rx_Can_Network_CANNODE_0,       2,  0,   PDUR,   0x20u,   8,   0x310 },
{    PduRConf_PduRSrcPdu_BMS_EngineState_Rx_Can_Network_CANNODE_0_CanIf2PduR ,   CanIfConf_CanIfRxPduCfg_BMS_EngineState_Rx_Can_Network_CANNODE_0,       3,  0,   PDUR,   0x20u,   8,   0x311 },
{    PduRConf_PduRSrcPdu_BMS_StateOfHealth_Rx_Can_Network_CANNODE_0_CanIf2PduR ,   CanIfConf_CanIfRxPduCfg_BMS_StateOfHealth_Rx_Can_Network_CANNODE_0,       4,  0,   PDUR,   0x20u,   8,   0x312 },
{    0 ,   CanIfConf_CanIfRxPduCfg_Nm_Message_Rx_Can_Network_CANNODE_0,       5,  0,   CANNM,   0x20u,   8,   0x400 },
{    XcpConf_XcpRxPdu_XcpRx_CMD ,   CanIfConf_CanIfRxPduCfg_XCP_RX_FRAME_Can_Network_CANNODE_0,       6,  0,   XCP,   0x30u,   1,   0x500 },
{    CanTpConf_CanTpRxNPdu_Diag_OBD_ON_CAN_Rx_Can_Network_CANNODE_0_CanIf2CanTp ,   CanIfConf_CanIfRxPduCfg_Diag_OBD_ON_CAN_Rx_Can_Network_CANNODE_0,       7,  0,   CANTP,   0x20u,   1,   0x7DF }
};

#define CANIF_STOP_SEC_CONFIG_DATA_POSTBUILD_UNSPECIFIED
#include "CanIf_MemMap.h"































   







































#if(CANIF_VARIANT_INFO == 3)
/* Generate an instance of structure Std_VersionInfoType in CanIf_PBcfg_c.xpt*/
#define CANIF_START_SEC_CONFIG_DATA_POSTBUILD_UNSPECIFIED
#include "CanIf_MemMap.h"
static CONST(Std_VersionInfoType, CANIF_CONST)  CanIf_VersionInfo =
{
    6,    /* Vendor Id */
    60,    /* Module Id */
    4,    /* Sw Major Version */
    0,    /* Sw Minor Version */
    1     /* Sw Patch Version */
};
#define CANIF_STOP_SEC_CONFIG_DATA_POSTBUILD_UNSPECIFIED
#include "CanIf_MemMap.h"
#endif



/* Global configuration structure */


#define CANIF_START_SEC_CONST_UNSPECIFIED
#include "CanIf_MemMap.h"
CONST(CanIf_ConfigType, CANIF_CONST) CanIf_Config =
{
    CanIf_TxPduConfig,
    /* MR12 RULE 1.1 VIOLATION:This is a known defect in CChecker 2.1.0 tool.No fix required in the component.*/
    CanIf_RxPduConfig,
    CanIf_HrhConfig,
    CANIF_NUM_STATIC_CANTXPDUIDS,
    CANIF_NUM_CANRXPDUIDS,
    CANIF_NUM_DYNAMIC_CANTXPDUIDS,
    CANIF_NUM_CONTROLLERS
};
#define CANIF_STOP_SEC_CONST_UNSPECIFIED
#include "CanIf_MemMap.h"










