/*!
* @file     LinIf.h
*
* @version  1.0.0
*
* @brief    AUTOSAR LinIf - AUTOSAR LinIf module interface.
*           This file contains sample code only. It is not part of the production code deliverables.
* @attention
*
* Project Name      : AUTOSAR MCAL
*
* Platform          : Arm
*
* Autosar Standard  : Classic Platform 4.4.0
*
* Compiled Version  : G32A10xx_MCAL_1_0_0_01-Otc-25
*
* Copyright (C) 2026 Geehy Semiconductor
*
* You may not use this file except in compliance with the
* GEEHY COPYRIGHT NOTICE (Geehy Semiconductor Software License Agreement).
*
* The program is only for reference, which is distributed in the hope
* that it will be usefull and instructional for customers to develop
* their software. Unless required by applicable law or agreed to in
* writing, the program is distributed on an "AS IS" BASIS, WITHOUT
* ANY WARRANTY OR CONDITIONS OF ANY KIND, either express or implied.
* See the Geehy Semiconductor Software License Agreement for the governing permissions
* and limitations under the License.
*/

#ifndef LIN_IF_H
#define LIN_IF_H

#ifdef __cplusplus
extern "C"
{
#endif

#include "ComStack_Types.h"
#include "Lin_GeneralTypes.h"
/** @addtogroup G32A10xx_StdPeriphDriver
  @{
*/

/** @defgroup LINIF_Driver
  * @brief LINIF driver modules
  @{
*/

/** @defgroup LINIF_Macros
  @{
*/
/*******************************************************************************
                    VENDOR ID & AUTOSAR VERSION INFO
*******************************************************************************/

#define LIN_IF_H_VDR_ID                           193
#define LIN_IF_MODULE_ID                          62

#define LIN_IF_H_RELEASE_AUTOSAR_MAJOR_VER        4
#define LIN_IF_H_RELEASE_AUTOSAR_MINOR_VER        4
#define LIN_IF_H_RELEASE_AUTOSAR_REVISION_VER     0

#define LIN_IF_H_SOFTWARE_MAJOR_VER               1
#define LIN_IF_H_SOFTWARE_MINOR_VER               0
#define LIN_IF_H_SOFTWARE_PATCH_VER               0

/*******************************************************************************
                             VERSION CHECK
*******************************************************************************/
#ifdef ENABLE_INTERMODULE_MCAL_CHECK
    /* Make sure the AUTOSAR version numbers are the same between LinIf.h and ComStack_Types.h */
    #if ((LIN_IF_H_RELEASE_AUTOSAR_MAJOR_VER != COM_STACK_TYPES_H_AR_RELEASE_MAJOR_VERSION) || \
         (LIN_IF_H_RELEASE_AUTOSAR_MINOR_VER != COM_STACK_TYPES_H_AR_RELEASE_MINOR_VERSION))
        #error "AUTOSAR Version Numbers mismatch between LinIf.h and ComStack_Types.h"
    #endif /* (LIN_IF_H_RELEASE_AUTOSAR_MAJOR_VER != COM_STACK_TYPES_H_AR_RELEASE_MAJOR_VERSION)... */
    /* Make sure the AUTOSAR version numbers are the same between LinIf.h and Lin_GeneralTypes.h */
    #if ((LIN_IF_H_RELEASE_AUTOSAR_MAJOR_VER != LIN_GENERAL_TYPES_H_AR_RELEASE_MAJOR_VERSION) || \
         (LIN_IF_H_RELEASE_AUTOSAR_MINOR_VER != LIN_GENERAL_TYPES_H_AR_RELEASE_MINOR_VERSION))
        #error "AUTOSAR Version Numbers mismatch between LinIf.h and Lin_GeneralTypes.h"
    #endif /* (LIN_IF_H_RELEASE_AUTOSAR_MAJOR_VER != LIN_GENERAL_TYPES_H_AR_RELEASE_MAJOR_VERSION)... */
#endif

/*******************************************************************************
                             MACROS DEFINITION
*******************************************************************************/
 #define LINIF_WAKE_UP_SUPPORT (STD_ON)
 
/**@} end of group LINIF_Macros */
/*******************************************************************************
                            GLOBAL VARIABLE
*******************************************************************************/
/** @defgroup LINIF_Variable
  @{
*/
extern VAR(uint8, ECUM_VAR) g_linifWakeupCounter;
/**@} end of group LINIF_Variable */
/*******************************************************************************
                            FUNCTION DECLARATION
*******************************************************************************/
/** @defgroup LINIF_Fuctions
  @{
*/
FUNC(Std_ReturnType, LINIF_CODE) LinIf_CheckWakeup(VAR(EcuM_WakeupSourceType, LINIF_VAR) WakeupSource);

/**@} end of group LINIF_Fuctions */
#ifdef __cplusplus
}
#endif 
#endif
/**@} end of group LINIF_Driver */
/**@} end of group G32A10xx_StdPeriphDriver */
