/*!
* @file     Fls_SignatureTypes.h
*
* @version  1.0.0
*
* @brief    Data Type Definition File for the FLS Module Based on signature IP
*
* @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 FLS_SIGNATURE_TYPES_H
#define FLS_SIGNATURE_TYPES_H

#ifdef __cplusplus
extern "C"{
#endif

#include "Std_Types.h"

/** @addtogroup G32A10xx_StdPeriphDriver
  @{
*/

/** @defgroup FLS_Driver
  * @brief FLS driver modules
  @{
*/

/** @defgroup FLS_Macros
  @{
*/
/**************************************************************************
                  VENDOR ID & AUTOSAR VERSION INFO
**************************************************************************/
/** Vendor ID (vendorId) of the dedicated implementation of this module according to the AUTOSAR vendor list. */
#define FLS_SIGNATURE_TYPES_H_VENDOR_ID                        0x00C1U
/** Module ID of this module, as defined in the BSW Module List. */
#define FLS_SIGNATURE_TYPES_H_MODULE_ID                        0x005CU
/** Major version number of AUTOSAR release on which the appropriate implementation is based on. */
#define FLS_SIGNATURE_TYPES_H_AR_RELEASE_MAJOR_VERSION         0x04U
/** Minor version number of AUTOSAR release on which the appropriate implementation is based on. */
#define FLS_SIGNATURE_TYPES_H_AR_RELEASE_MINOR_VERSION         0x04U
/** Revision version number of AUTOSAR release on which the appropriate implementation is based on. */
#define FLS_SIGNATURE_TYPES_H_AR_RELEASE_REVISION_VERSION      0x00U
/** Major version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define FLS_SIGNATURE_TYPES_H_SW_MAJOR_VERSION                 0x01U
/** Minor version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define FLS_SIGNATURE_TYPES_H_SW_MINOR_VERSION                 0x00U
/** Patch level version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define FLS_SIGNATURE_TYPES_H_SW_PATCH_VERSION                 0x00U

/**@} end of group FLS_Macros */

/**************************************************************************
                    VERSION INFOMATION VERIFICATION
**************************************************************************/
#ifdef ENABLE_INTERMODULE_MCAL_CHECK
    /* Make sure the AUTOSAR major version number is the same between Fls_SignatureTypes.h and Std_Types.h */
    #if (FLS_SIGNATURE_TYPES_H_AR_RELEASE_MAJOR_VERSION != STD_TYPES_H_AR_RELEASE_MAJOR_VERSION)
        #error "AUTOSAR Major Version Number mismatch between Fls_SignatureTypes.h and Std_Types.h"
    #endif
    /* Make sure the AUTOSAR minor version number is the same between Fls_SignatureTypes.h and Std_Types.h */
    #if (FLS_SIGNATURE_TYPES_H_AR_RELEASE_MINOR_VERSION != STD_TYPES_H_AR_RELEASE_MINOR_VERSION)
        #error "AUTOSAR Minor Version Number mismatch between Fls_SignatureTypes.h and Std_Types.h"
    #endif
#endif

/**************************************************************************
                    ENUMERATION DEFINITION
**************************************************************************/
/** @defgroup FLS_Enumerations
  @{
*/

/**
 * @brief    flash type
 */
typedef enum
{
    INTERNAL_PFLASH  = 0x0U,  //!< pflash
    INTERNAL_DFLASH  = 0x1U   //!< dflash
}Fls_InternalFlashType;

/**@} end of group FLS_Enumerations */

/**************************************************************************
                    STRUCT DEFINITION
**************************************************************************/
/** @defgroup FLS_Structure
  @{
*/

/** 
 * @brief    Used to get chip id
 */
typedef struct
{
    uint32 u_id_0;    //!< chip id register 0
    uint32 u_id_1;    //!< chip id register 1
    uint32 u_id_2;    //!< chip id register 2
}Fls_ChipIdType;

/** 
 * @brief    Used to get chip series information
 */
typedef struct
{
    uint8 version;     //!< chip version
    uint8 series_1;    //!< chip series 1
    uint8 series_2;    //!< chip series 2
}Fls_ChipProductSeriesType;

/**@} end of group FLS_Structure */

#ifdef __cplusplus
}
#endif

#endif

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