/**
* @file    Port_Igf.h
* @version 1.0.0
*
* @brief   AUTOSAR Port - IGF low level IP driver interface.
* @details API of the IGF low level IP driver.
*
* @addtogroup Igf
* @{
*/
/*=================================================================================================
*   Project              : AUTOSAR 4.3 MCAL
*   Platform             : PA
*   Peripheral           : SIU,IGF
*   Dependencies         : none
*
*   Autosar Version      : 4.3.1
*   Autosar Revision     : ASR_REL_4_3_REV_0001
*   Autosar Conf.Variant :
*   SW Version           : 1.0.0
*   Build Version        : MPC5777C_MCAL_1_0_0_RTM_ASR_REL_4_3_REV_0001_20190315
*
*   (c) Copyright 2006-2016 Freescale Semiconductor, Inc. 
*       Copyright 2017-2019 NXP
*   All Rights Reserved.
=================================================================================================*/
/*=================================================================================================
=================================================================================================*/

#ifndef PORT_IGF_H
#define PORT_IGF_H

#ifdef __cplusplus
extern "C"
{
#endif

/**
* @page misra_violations MISRA-C:2012 violations
*
* @section Port_Igf_h_REF_1
*          Violates MISRA 2012 Required Directive 4.10, Precautions shall be taken in order to prevent the contents
*          of a header file being included more than once. This violation is not fixed since the inclusion of 
*          Port_MemMap.h is as per AUTOSAR requirement [SWS_MemMap_00003].
*
* @section [global]
*          Violates MISRA 2012 Required Rule 5.1, External identifiers shall be distinct.
*          The used compilers use more than 31 chars for identifiers.
*
* @section [global]
*          Violates MISRA 2012 Required Rule 5.2, Identifiers declared in the same scope and name space shall be distinct.
*          The used compilers use more than 31 chars for identifiers.
*
* @section [global]
*          Violates MISRA 2012 Required Rule 5.4, Macro identifiers shall be distinct.
*          The used compilers use more than 31 chars for identifiers.
*
* @section [global]
*          Violates MISRA 2012 Required Rule 5.5, Identifiers shall be distinct from macro names.
*          The used compilers use more than 31 chars for identifiers.
*/

/*=================================================================================================
*                                        INCLUDE FILES
* 1) system and project includes
* 2) needed interfaces from external units
* 3) internal and external interfaces from this unit
=================================================================================================*/

#include "Port_Cfg.h"
#include "Port_Igf_Types.h"

/*=================================================================================================
*                               SOURCE FILE VERSION INFORMATION
=================================================================================================*/
/*
 * @brief Parameters that shall be published within the driver header file and also in the
 *        module's description file
 */
#define PORT_IGF_VENDOR_ID_H                     43
#define PORT_IGF_AR_RELEASE_MAJOR_VERSION_H      4
#define PORT_IGF_AR_RELEASE_MINOR_VERSION_H      3
#define PORT_IGF_AR_RELEASE_REVISION_VERSION_H   1
#define PORT_IGF_SW_MAJOR_VERSION_H              1
#define PORT_IGF_SW_MINOR_VERSION_H              0
#define PORT_IGF_SW_PATCH_VERSION_H              0


/*=================================================================================================
*                                     FILE VERSION CHECKS
=================================================================================================*/

/* Check if the files Port_Igf.h and Port_Cfg.h are of the same vendor */
#if (PORT_IGF_VENDOR_ID_H != PORT_VENDOR_ID_CFG_H)
    #error "Port_Igf.h and Port_Cfg.h have different vendor ids"
#endif
/* Check if the files Port_Igf.h and Port_Cfg.h are of the same Autosar version */
#if ((PORT_IGF_AR_RELEASE_MAJOR_VERSION_H    != PORT_AR_RELEASE_MAJOR_VERSION_CFG_H) || \
     (PORT_IGF_AR_RELEASE_MINOR_VERSION_H    != PORT_AR_RELEASE_MINOR_VERSION_CFG_H) || \
     (PORT_IGF_AR_RELEASE_REVISION_VERSION_H != PORT_AR_RELEASE_REVISION_VERSION_CFG_H) \
    )
  #error "AutoSar Version Numbers of Port_Igf.h and Port_Cfg.h are different"
#endif
/* Check if the files Port_Igf.h and Port_Cfg.h are of the same software version */
#if ((PORT_IGF_SW_MAJOR_VERSION_H != PORT_SW_MAJOR_VERSION_CFG_H) || \
     (PORT_IGF_SW_MINOR_VERSION_H != PORT_SW_MINOR_VERSION_CFG_H) || \
     (PORT_IGF_SW_PATCH_VERSION_H != PORT_SW_PATCH_VERSION_CFG_H)    \
    )
  #error "Software Version Numbers of Port_Igf.h and Port_Cfg.h are different"
#endif

/* Check if the files Port_Igf.h and Port_Igf_Types.h are of the same vendor */
#if (PORT_IGF_VENDOR_ID_H != PORT_IGF_VENDOR_ID_TYPES_H)
    #error "Port_Igf.h and Port_Igf_Types.h have different vendor ids"
#endif
/* Check if the files Port_Igf.h and Port_Igf_Types.h are of the same Autosar version */
#if ((PORT_IGF_AR_RELEASE_MAJOR_VERSION_H    != PORT_IGF_AR_RELEASE_MAJOR_VERSION_TYPES_H) || \
     (PORT_IGF_AR_RELEASE_MINOR_VERSION_H    != PORT_IGF_AR_RELEASE_MINOR_VERSION_TYPES_H) || \
     (PORT_IGF_AR_RELEASE_REVISION_VERSION_H != PORT_IGF_AR_RELEASE_REVISION_VERSION_TYPES_H) \
    )
   #error "AutoSar Version Numbers of Port_Igf.h and Port_PORT_IGF_Types.h are different"
#endif
/* Check if the files Port_Igf.h and Port_Igf_Types.h are of the same software version */
#if ((PORT_IGF_SW_MAJOR_VERSION_H != PORT_IGF_SW_MAJOR_VERSION_TYPES_H) || \
     (PORT_IGF_SW_MINOR_VERSION_H != PORT_IGF_SW_MINOR_VERSION_TYPES_H) || \
     (PORT_IGF_SW_PATCH_VERSION_H != PORT_IGF_SW_PATCH_VERSION_TYPES_H)    \
    )
  #error "Software Version Numbers of Port_Igf.h and Port_Igf_Types.h are different"
#endif

/*=================================================================================================
*                                          CONSTANTS
=================================================================================================*/


/*=================================================================================================
*                               DEFINES AND MACROS
=================================================================================================*/


/*=================================================================================================
*                                             ENUMS
=================================================================================================*/


/*=================================================================================================
*                               STRUCTURES AND OTHER TYPEDEFS
=================================================================================================*/


/*=================================================================================================
*                                GLOBAL VARIABLE DECLARATIONS
=================================================================================================*/


/*=================================================================================================
*                                     FUNCTION PROTOTYPES
=================================================================================================*/

/* @brief Allocate defined section for PORT code. */
#define PORT_START_SEC_CODE
/** @violates @ref Port_Igf_h_REF_1 Precautions shall be taken in order to prevent the contents of a header file being included more than once. */
#include "Port_MemMap.h"

/* @brief    Initializes the IGF IP Driver. */
FUNC (void, PORT_CODE) Port_Igf_Init
(
    P2CONST(Port_IgfConfigType, AUTOMATIC, PORT_APPL_CONST) pIgfConfigPtr
);

#define PORT_STOP_SEC_CODE
/** @violates @ref Port_Igf_h_REF_1 Precautions shall be taken in order to prevent the contents of a header file being included more than once. */
#include "Port_MemMap.h"

#ifdef __cplusplus
}
#endif
/* PORT_IGF_H */
#endif
/** @} */
