/*!
* @file     Crypto_TrngReg.h
*
* @version  1.0.0
*
* @brief    The header of the register definitions of the TRNG module.
 *          This header file includes the register definitions of the TRNG module.
* @attention
*
* Project Name      : AUTOSAR MCAL
*
* Platform          : Arm
*
* Autosar Standard  : Classic Platform 4.4.0
*
* Compiled Version  : G32A10xx_MCAL_1_0_0_15-Nov-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 CRYPTO_TRNG_REG_H
#define CRYPTO_TRNG_REG_H

#ifdef __cplusplus
extern "C"{
#endif  /* ifdef __cplusplus */

#include "Reg_eSys.h"
/** @addtogroup G32A10xx_StdPeriphDriver
  @{
*/

/** @defgroup CRYPTO_Driver
  * @brief CRYPTO driver modules
  @{
*/

/** @defgroup CRYPTO_Macros
  @{
*/
/***********************************************************************************************************
                                    VENDOR ID & AUTOSAR VERSION INFO
************************************************************************************************************/
/** Vendor ID (vendorId) of the dedicated implementation of this module according to the AUTOSAR vendor list. */
#define CRYPTO_TRNG_REG_H_VENDOR_ID                               0x00C1U
/** Major version number of AUTOSAR release on which the appropriate implementation is based on. */  
#define CRYPTO_TRNG_REG_H_AR_RELEASE_MAJOR_VERSION                0x04U
/** Minor version number of AUTOSAR release on which the appropriate implementation is based on. */
#define CRYPTO_TRNG_REG_H_AR_RELEASE_MINOR_VERSION                0x04U
/** Revision version number of AUTOSAR release on which the appropriate implementation is based on. */
#define CRYPTO_TRNG_REG_H_AR_RELEASE_REVISION_VERSION             0x00U
/** Major version number of the vendor specific implementation of the module. The numbering is vendor specific. */  
#define CRYPTO_TRNG_REG_H_SW_MAJOR_VERSION                        0x01U
/** Minor version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define CRYPTO_TRNG_REG_H_SW_MINOR_VERSION                        0x00U
/** Patch level version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define CRYPTO_TRNG_REG_H_SW_PATCH_VERSION                        0x00U

/***********************************************************************************************************
                                      VERSION INFOMATION VERIFICATION
************************************************************************************************************/
#ifdef ENABLE_INTERMODULE_MCAL_CHECK
    /* Make sure the AUTOSAR major version number is the same between Crypto_TrngReg.h and Reg_eSys.h */
    #if (CRYPTO_TRNG_REG_H_AR_RELEASE_MAJOR_VERSION != REG_ESYS_H_AR_RELEASE_MAJOR_VERSION)
        #error "AUTOSAR Major Version Number mismatch between Crypto_TrngReg.h and Reg_eSys.h"
    #endif
    /* Make sure the AUTOSAR minor version number is the same between Crypto_TrngReg.h and Reg_eSys.h */
    #if (CRYPTO_TRNG_REG_H_AR_RELEASE_MINOR_VERSION != REG_ESYS_H_AR_RELEASE_MINOR_VERSION)
        #error "AUTOSAR Minor Version Number mismatch between Crypto_TrngReg.h and Reg_eSys.h"
    #endif
#endif

/***********************************************************************************************************
                                            MACRO DEFINITION
************************************************************************************************************/


/***********************************************************************************************************
        BIT MASK AND OFFSET FOR REGISTER: TRNG_CTRL (Base + 0x00)
************************************************************************************************************/
/** TRNG_CTRL register address */
#define TRNG_CTRL_REG_ADDR                   ((uint32)(TRNG_BASEADDR + (uint32)0U))

#define TRNG_CTRL_RNGEN_MASK                 ((uint32)0x00000004U)
#define TRNG_CTRL_RNGEN_SHIFT                ((uint8)2U)

#define TRNG_CTRL_INTEN_MASK                 ((uint32)0x00000008U)
#define TRNG_CTRL_INTEN_SHIFT                ((uint8)3U)

/***********************************************************************************************************
        BIT MASK AND OFFSET FOR REGISTER: TRNG_STS (Base + 0x04)
************************************************************************************************************/
/** TRNG_STS register address */
#define TRNG_STS_REG_ADDR                    ((uint32)(TRNG_BASEADDR + (uint32)0x04U))

#define TRNG_STS_DATARDY_MASK                ((uint32)0x00000001U)
#define TRNG_STS_DATARDY_SHIFT               ((uint8)0U)

#define TRNG_STS_FSCSTS_MASK                 ((uint32)0x00000004U)
#define TRNG_STS_FSCSTS_SHIFT                ((uint8)2U)

#define TRNG_STS_FSINT_MASK                  ((uint32)0x00000040U)
#define TRNG_STS_FSINT_SHIFT                 ((uint8)6U)

/***********************************************************************************************************
        BIT MASK AND OFFSET FOR REGISTER: TRNG_DATA (Base + 0x08)
************************************************************************************************************/
/** TRNG_DATA register address */
#define TRNG_DATA_REG_ADDR                   ((uint32)(TRNG_BASEADDR + (uint32)0x08U))

#define TRNG_DATA_MASK                       ((uint32)0xFFFFFFFFU)
#define TRNG_DATA_SHIFT                      ((uint8)0U)

/**@} end of group CRYPTO_Macros */
#ifdef __cplusplus
}
#endif  /* __cplusplus */

#endif  /* CRYPTO_TRNG_REG_H */
/**@} end of group CRYPTO_Driver */
/**@} end of group G32A10xx_StdPeriphDriver */
