
/*******************************************************************************
**                                                                            **
** Copyright (C) Infineon Technologies (2012)                                 **
**                                                                            **
** All rights reserved.                                                       **
**                                                                            **
** This document contains proprietary information belonging to Infineon       **
** Technologies. Passing on and copying of this document, and communication   **
** of its contents is not permitted without prior written authorization.      **
**                                                                            **
********************************************************************************
**                                                                            **
**  $FILENAME   : Fr_17_Eray_Cfg.h $                                         **
**                                                                            **
**  $CC VERSION : \main\32 $                                                 **
**                                                                            **
**  DATE, TIME: 2017-10-05, 15:24:55                                          **
**                                                                            **
**  GENERATOR : Build b141014-0350                                            **
**                                                                            **
**  AUTHOR    : DL-AUTOSAR-Engineering                                        **
**                                                                            **
**  VENDOR    : Infineon Technologies                                         **
**                                                                            **
**  DESCRIPTION  : FR configuration generated out of ECU configuration file   **
**                                                                            **
**  MAY BE CHANGED BY USER [yes/no]: No                                       **
**                                                                            **
*******************************************************************************/


/** Traceability : [cover parentID=DS_AS40X_FR667,DS_NAS_FR_PR913,
                   DS_AS403_PR2849,DS_NAS_FR_PR446,DS_AS403_FR_PR2849,
                   SAS_NAS_FR_PR914,SAS_NAS_FR_PR915,SAS_AS4XX_FR_PR678,
                   SAS_NAS_FR_PR916,DS_NAS_EP_FR_PR3054_1,
                   DS_NAS_EP_FR_PR3054_2,DS_NAS_EP_FR_PR3054_4,
                   DS_NAS_HE2_FR_PR3054_1,DS_NAS_HE2_FR_PR3054_2,
                   DS_NAS_HE2_FR_PR3054_4]
** [/cover]                                                                  **/

/******************************************************************************/
#ifndef  FR_17_ERAY_CFG_H
#define  FR_17_ERAY_CFG_H



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

/*******************************************************************************
**                     Configuration options                                **
*******************************************************************************/

/*
Flex ray Controller Input Selection values are used to select alternate
receive input lines
*/
#define FR_RXSEL0  (0x00)
#define FR_RXSEL1  (0x01)
#define FR_RXSEL2  (0x02)
#define FR_RXSEL3  (0x03)

#define FR_LPDU_RECONFIGURABLE     (STD_ON)
#define FR_LPDU_NOT_RECONFIGURABLE (STD_OFF)

/*******************************************************************************
**                      Global Macro Definitions                              **
*******************************************************************************/


/* Fr Instance ID */
#define FR_17_ERAY_INSTANCE_ID                ((uint8)0)

/* Autosar specification version */
#define FR_17_ERAY_AR_RELEASE_MAJOR_VERSION           (4U)
#define FR_17_ERAY_AR_RELEASE_MINOR_VERSION           (0U)
#define FR_17_ERAY_AR_RELEASE_REVISION_VERSION        (3U)

/* Vendor specific implementation version information */
#define FR_17_ERAY_SW_MAJOR_VERSION           (2U)
#define FR_17_ERAY_SW_MINOR_VERSION           (3U)
#define FR_17_ERAY_SW_PATCH_VERSION           (0U)

/*
Container : FrDriverConfiguration - FR392:
General configuration (parameters) of the FlexRay Driver module.
*/

/*
Configuration: FR_17_ERAY_RECONFIG_BUFFER
Adds/removes the service Fr_17_Eray_PrepapreLPdu() from the code
- if STD_ON, Fr_17_Eray_PrepapreLPdu() can be used
- if STD_OFF, Fr_17_Eray_PrepapreLPdu() can not be used
*/
#define FR_17_ERAY_RECONFIG_BUFFER                   (STD_OFF)

/*
Configuration: FR_17_ERAY_CTRL_TEST_COUNT
Specifies the maximum number of iterations the FlexRay controller hardware test
is performed during controller initialization.
*/
#define FR_17_ERAY_CTRL_TEST_COUNT                   (1U)

/*
Configuration: FR_17_ERAY_DEV_ERROR_DETECT
Preprocessor switch to enable/disable the development error detection and
reporting.
- if STD_ON, Enable development error detection
- if STD_OFF, Disable development error detection
*/
#define FR_17_ERAY_DEV_ERROR_DETECT                  (STD_OFF)

/*Configuration: FR_17_ERAY_INDEX
Specifies the InstanceId of this module instance.*/
#define FR_17_ERAY_INDEX             (0U)

/*
Configuration: FR_17_ERAY_NUM_CTRL_SUPPORTED
Determines the maximum number of communication controllers that the driver
supports.
*/
#define FR_17_ERAY_NUM_CTRL_SUPPORTED               (1U)

/*
Configuration: FR_17_ERAY_RX_STRINGENT_CHECK
If stringent check is enabled (true), received frames are only accepted if no
slot status error occured.
*/
#define FR_17_ERAY_RX_STRINGENT_CHECK                (STD_OFF)


/*
Configuration: FR_17_ERAY_RX_STRINGENT_LENGTH_CHECK
If stringent check is enabled (true), received frames are only accepted the
received payload length matches the configured payload length.
*/
#define FR_17_ERAY_RX_STRINGENT_LENGTH_CHECK         (STD_OFF)


/*
Configuration: FR_17_ERAY_VERSION_INFO_API
Adds/removes the service Fr_17_Eray_GetVersionInfo() from the code
- if STD_ON, Fr_17_Eray_GetVersionInfo() can be used
- if STD_OFF, Fr_17_Eray_GetVersionInfo() can not be used
*/
#define FR_17_ERAY_VERSION_INFO_API                  (STD_OFF)

/*
Configuration: FR_17_ERAY_NMVECTOR_ENABLE
Adds/removes the service Fr_17_Eray_GetNmVector() from the code
- if STD_ON, Fr_17_Eray_GetNmVector() can be used
- if STD_OFF, Fr_17_Eray_GetNmVector() can not be used
*/
#define FR_17_ERAY_NMVECTOR_ENABLE                   (STD_OFF)

/*
Configuration: FR_17_ERAY_TIMEOUT_DURATION
Specifies the maximum number of loops for blocking function until a timeout
is raised in short term wait loops.
*/
#define FR_17_ERAY_TIMEOUT_DURATION                  (100U)



/* Debug mode is used for code coverage */
#define FR_17_ERAY_DEBUG_MODE    (OFF)

/*
Configuration: FR_RUNNING_IN_USER_0_MODE_ENABLE
- if STD_ON, enable User0 mode
- if STD_OFF, enable User1 mode
*/
#define FR_RUNNING_IN_USER_0_MODE_ENABLE   (STD_OFF)

/*
Configuration: FR_USER_MODE_INIT_API_ENABLE
- if STD_ON, Enable Protected Mode(user mode) in Init API
- if STD_OFF, Enable Supervisor mode in Init API
*/
#define FR_USER_MODE_INIT_API_ENABLE         (STD_OFF)

/*
Configuration: FR_MODE_RUNTIME_API_ENABLE
- if STD_ON, Enable Protected Mode(user mode) in APIs other than Init/Deinit APIs
- if STD_OFF, Enable Supervisor mode in APIs other than Init/Deinit APIs
*/
#define FR_USER_MODE_RUNTIME_API_ENABLE           (STD_OFF)

/*
Configuration: FR_17_ERAY_PB_FIXEDADDR
- if ON, Fixed Address feature is Enabled
- if OFF,Fixed Address feature is Disabled
*/
#define FR_17_ERAY_PB_FIXEDADDR                   (STD_OFF)

#define FR_RESET_SFR_AT_INIT              (STD_OFF)

/* Configuration: FR_RESET_SFR_AT_INIT
 - STD_ON  - FR Kernel Registers’ reset feature is enabled
 - STD_OFF - FR Kernel Registers’ reset feature is not enabled
*/

/* Module Debug Support */
#define FR_17_ERAY_DEBUG_SUPPORT  (STD_OFF)

/* Dem reporting disabled macro */
#define DEM_REPORT_DISABLED (0U)
/*****************************************************************************/
/* Symbolic name defintions */
/*****************************************************************************/
/*
    Symbolic name defintions for FR controllers and timers.
    The symbolic names identify the controller/timers (within an ECU).
*/
#ifdef  Fr_17_ErayConf_FrController_FrController_0 /* to prevent double declaration */
#error  Fr_17_ErayConf_FrController_FrController_0 already defined
#endif
/*IFX_MISRA_RULE_01_04_STATUS=The generated macro may exceed 31 characters
to follow Autosar naming conventions*/
/*IFX_MISRA_RULE_05_01_STATUS=The generated macro may exceed 31 characters
to follow Autosar naming conventions*/
#define Fr_17_ErayConf_FrController_FrController_0       (0U)

#ifdef  Fr_17_ErayConf_FrAbsoluteTimer_FrAbsoluteTimer_0 /* to prevent double declaration */
#error  Fr_17_ErayConf_FrAbsoluteTimer_FrAbsoluteTimer_0 already defined
#endif
/*IFX_MISRA_RULE_01_04_STATUS=The generated macro may exceed 31 characters
to follow Autosar naming conventions*/
/*IFX_MISRA_RULE_05_01_STATUS=The generated macro may exceed 31 characters
to follow Autosar naming conventions*/
#define Fr_17_ErayConf_FrAbsoluteTimer_FrAbsoluteTimer_0       (0U)


/*****************************************************************************/

/*******************************************************************************
**                      Derived Configuration Parameters                      **
*******************************************************************************/

/* Number of Config sets */
#define FR_CONFIG_COUNT  (1U)

/*
   Flag for FrIfAllowDynamicLSduLength usage.
   STD_ON: Header CRC is calculated in Fr_17_Eray_TransmitTxLPdu API.
   STD_OFF: Header CRC is calculated in code generation level with
   configured FrIfLSduLength.
*/
#define FR_17_ERAY_MSG_ALLOW_DYNAMICLSDULENGTH          (STD_OFF)

/* Flag for FIFO configuration */
#define FR_17_ERAY_FIFO_CONFIGURED          (STD_OFF)

/*
   Estimated maximum number of message buffers used per controller.
  Min (128, max(LPDU count in all PB configurations))
*/
#define FR_17_ERAY_MSG_BUFF_COUNT_MAX_0 (0U)
#define FR_17_ERAY_MSG_BUFF_COUNT_MAX_1 (0U)

/* Number of ERAY Controllers available in the device */
#define FR_NUM_CONTROLLERS_IN_DEVICE  (1U)
#define FR_17_ERAY_CONTROLLER0_CONFIGURED   (STD_OFF)
#define FR_17_ERAY_CONTROLLER1_CONFIGURED   (STD_OFF)

/*******************************************************************************
**                      Global Constant Declarations                          **
*******************************************************************************/


#endif /* FR_17_ERAY_CFG_H */
