/*!
* @file     Port_Hw.h
*
* @version  1.0.0
*
* @brief    AUTOSAR Port 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 PORT_HW_H
#define PORT_HW_H

#ifdef __cplusplus
extern "C"
{
#endif

#include "Mcal.h"
 
#include "StdRegMacros.h"
#include "Port.h"

/** @addtogroup G32A10xx_StdPeriphDriver
  @{
*/

/** @defgroup PORT_Driver
  @{
*/

/** @defgroup PORT_Macros
  @{
*/
/*******************************************************************************
                    VENDOR ID & AUTOSAR VERSION INFO
*******************************************************************************/
/** Vendor ID (vendorId) of the dedicated implementation of this module according to the AUTOSAR vendor list. */
#define PORT_HW_H_VENDOR_ID                       0x00C1U
/** Major version number of AUTOSAR release on which the appropriate implementation is based on. */
#define PORT_HW_H_AR_RELEASE_MAJOR_VERSION        0x04U
/** Minor version number of AUTOSAR release on which the appropriate implementation is based on. */
#define PORT_HW_H_AR_RELEASE_MINOR_VERSION        0x04U
/** Revision version number of AUTOSAR release on which the appropriate implementation is based on. */
#define PORT_HW_H_AR_RELEASE_REVISION_VERSION     0x00U
/** Major version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define PORT_HW_H_SW_MAJOR_VERSION                0x01U
/** Minor version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define PORT_HW_H_SW_MINOR_VERSION                0x00U
/** Patch level version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define PORT_HW_H_SW_PATCH_VERSION                0x00U

/**@} end of group PORT_Macros */
/*******************************************************************************
                            FUNCTION DECLARATIONS
*******************************************************************************/
#define PORT_START_SEC_CODE
#include "Port_MemMap.h"

/** @defgroup PORT_Fuctions
  @{
*/

void Port_Hw_AFConfig(Port_PortIdType portId, 
                      Port_PortPinIdType portPinId,
                      Port_PinModeType portPinMode);
void Port_Hw_ConfigPinSpeed(Port_PortIdType portId, 
                            Port_PortPinIdType portPinId,
                            Port_PinSpeedAbilityType speedSelect);
void Port_Hw_ConfigPinOutputMode(Port_PortIdType portId, 
                                 Port_PortPinIdType portPinId,
                                 Port_OutputModeType outputMode);
void Port_Hw_ConfigPinMode(Port_PortIdType portId, 
                           Port_PortPinIdType portPinId,
                           Port_PinModeType portPinMode);
void Port_Hw_ConfigPull(Port_PortIdType portId, 
                        Port_PortPinIdType portPinId,
                        Port_PullModeType pullValue);
void Port_Hw_ConfigPinDir(Port_PortIdType portId, 
                          Port_PortPinIdType portPinId,
                          Port_PinDirectionType pinDir);
void Port_Hw_ConfigFilter(Port_PortIdType portId, 
                          Port_PortPinIdType portPinId,
                          uint8 status);
void Port_Hw_ConfigPinOData(Port_PortIdType portId, 
                            Port_PortPinIdType portPinId,
                            Port_pinLevelType pinLevel);

/**@} end of group PORT_Fuctions */

#define PORT_STOP_SEC_CODE
#include "Port_MemMap.h"

#ifdef __cplusplus
}
#endif

#endif /* PORT_TYPES_H */

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