/*!
* @file     Gpt_Hw.h
*
* @version  1.0.0
*
* @brief    AUTOSAR Gpt Driver header file
*
* @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 GPT_HW_H
#define GPT_HW_H

#ifdef __cplusplus
extern "C" {
#endif

#include "Gpt_Hw.h"
#include "Gpt.h"

/** @addtogroup G32A10xx_StdPeriphDriver
  @{
*/

/** @defgroup GPT_Driver
  @{
*/

/** @defgroup GPT_Macros
  @{
*/
/**************************************************************************
                    VENDOR ID & AUTOSAR VERSION INFO
**************************************************************************/
/** Vendor ID (vendorId) of the dedicated implementation of this module according to the AUTOSAR vendor list. */
#define GPT_HW_H_VENDOR_ID                     0x00C1U
/** Major version number of AUTOSAR release on which the appropriate implementation is based on. */
#define GPT_HW_H_AR_RELEASE_MAJOR_VERSION      0x04U
/** Minor version number of AUTOSAR release on which the appropriate implementation is based on. */
#define GPT_HW_H_AR_RELEASE_MINOR_VERSION      0x04U
/** Revision version number of AUTOSAR release on which the appropriate implementation is based on. */
#define GPT_HW_H_AR_RELEASE_REVISION_VERSION   0x00U
/** Major version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define GPT_HW_H_SW_MAJOR_VERSION              0x01U
/** Minor version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define GPT_HW_H_SW_MINOR_VERSION              0x00U
/** Patch level version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define GPT_HW_H_SW_PATCH_VERSION              0x00U

/**@} end of group GPT_Macros */
/**************************************************************************
                    ENUMERATION DEFINITION
**************************************************************************/
#define GPT_START_SEC_CODE
#include "Gpt_MemMap.h"

/** @defgroup GPT_Fuctions
  @{
*/

void Gpt_Hw_ConfigFreqDivw(Gpt_TimerHwIdType hwUnitId,uint16_t channelPrescaler);
void Gpt_Hw_UpdataEventGenerate(Gpt_TimerHwIdType hwUnitId,uint32 status);
void Gpt_Hw_OperationSinglePulseMode(Gpt_TimerHwIdType hwUnitId,uint32 status);
void Gpt_Hw_OperationAutoreloadPre(Gpt_TimerHwIdType hwUnitId,uint32 status);
void Gpt_Hw_ConfigAutoReloadValue(Gpt_TimerHwIdType hwUnitId,uint32_t period);
Gpt_ValueType Gpt_Hw_GetAutoReloadValue(Gpt_TimerHwIdType hwUnitId);
void Gpt_Hw_OperationCompareChannel(uint8 hwUnitId,uint8 HwChannel);
void Gpt_Hw_ConfigCounterValue(Gpt_TimerHwIdType hwUnitId,uint32_t CountValue);
void Gpt_Hw_ConfigCompareValue(Gpt_TimerHwIdType hwUnitId,uint8 HwChannel,Gpt_ValueType value);
void Gpt_Hw_ConfigCompareInterrupt(Gpt_TimerHwIdType hwUnitId,uint8 HwChannel,uint32 status);
uint32 Gpt_Hw_GetCompareInterrupt(Gpt_TimerHwIdType hwUnitId,uint8 HwChannel);
uint32 Gpt_Hw_GetCompartChannelFlag(Gpt_TimerHwIdType hwUnitId,uint8 HwChannel);
uint32 Gpt_Hw_GetCCRegValue(Gpt_TimerHwIdType hwUnitId,uint8 HwChannel);
void Gpt_Hw_OperationCounter(Gpt_TimerHwIdType hwUnitId,uint32 status);
Gpt_ValueType Gpt_Hw_NowCounterValue(Gpt_TimerHwIdType hwUnitId);

/**@} end of group GPT_Fuctions */

#define GPT_STOP_SEC_CODE
#include "Gpt_MemMap.h"

#ifdef __cplusplus
}
#endif

#endif /* GPT_TMR_TYPES_H */

/**@} end of group GPT_Driver */
/**@} end of group G32A10xx_StdPeriphDriver */
