/*!
* @file     CryIf_Cbk.h
*
* @version  1.0.0
*
* @brief    AUTOSAR Crypto Interface header file
 *          API header for CryIf callbacks. This file is only a sample.
* @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 CRYIF_CBK_H
#define CRYIF_CBK_H

#ifdef __cplusplus
extern "C"{
#endif

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

/** @defgroup CRYIF_Driver
  * @brief CRYIF driver modules
  @{
*/

/** @defgroup CRYIF_Macros
  @{
*/
/*******************************************************************************
                    VENDOR ID & AUTOSAR VERSION INFO
*******************************************************************************/
#define CRYIF_CBK_H_VENDOR_ID                     0x00C1U
#define CRYIF_CBK_H_MODULE_ID                     0x0070U

#define CRYIF_CBK_H_AR_RELEASE_MAJOR_VERSION      0x04U
#define CRYIF_CBK_H_AR_RELEASE_MINOR_VERSION      0x04U
#define CRYIF_CBK_H_AR_RELEASE_REVISION_VERSION   0x00U

#define CRYIF_CBK_H_SW_MAJOR_VERSION              0x01U
#define CRYIF_CBK_H_SW_MINOR_VERSION              0x00U
#define CRYIF_CBK_H_SW_PATCH_VERSION              0x00U
/**@} end of group CRYIF_Macros */
/*******************************************************************************
                             VERSION CHECK
*******************************************************************************/
/* Make sure the vendor id is the same between CryIf_Cbk.h and Csm_Types.h */
#if (CRYIF_CBK_H_VENDOR_ID != CSM_TYPES_H_VENDOR_ID)
     #error "Vendor id mismatch between CryIf_Cbk.h and Csm_Types.h"
#endif
/* Make sure the AUTOSAR major version number is the same between CryIf_Cbk.h and Csm_Types.h */
#if (CRYIF_CBK_H_AR_RELEASE_MAJOR_VERSION != CSM_TYPES_H_AR_RELEASE_MAJOR_VERSION)
     #error "AUTOSAR major version number mismatch between CryIf_Cbk.h and Csm_Types.h"
#endif
/* Make sure the AUTOSAR minor version number is the same between CryIf_Cbk.h and Csm_Types.h */
#if (CRYIF_CBK_H_AR_RELEASE_MINOR_VERSION != CSM_TYPES_H_AR_RELEASE_MINOR_VERSION)
     #error "AUTOSAR minor version number mismatch between CryIf_Cbk.h and Csm_Types.h"
#endif
/* Make sure the AUTOSAR revision version number is the same between CryIf_Cbk.h and Csm_Types.h */
#if (CRYIF_CBK_H_AR_RELEASE_REVISION_VERSION != CSM_TYPES_H_AR_RELEASE_REVISION_VERSION)
     #error "AUTOSAR revision version number mismatch between CryIf_Cbk.h and Csm_Types.h"
#endif
/* Make sure the software major version number is the same between CryIf_Cbk.h and Csm_Types.h */
#if (CRYIF_CBK_H_SW_MAJOR_VERSION != CSM_TYPES_H_SW_MAJOR_VERSION)
     #error "Software major version number mismatch between CryIf_Cbk.h and Csm_Types.h"
#endif
/* Make sure the software minor version number is the same between CryIf_Cbk.h and Csm_Types.h */
#if (CRYIF_CBK_H_SW_MINOR_VERSION != CSM_TYPES_H_SW_MINOR_VERSION)
     #error "Software minor version number mismatch between CryIf_Cbk.h and Csm_Types.h"
#endif
/* Make sure the software patch version number is the same between CryIf_Cbk.h and Csm_Types.h */
#if (CRYIF_CBK_H_SW_PATCH_VERSION != CSM_TYPES_H_SW_PATCH_VERSION)
     #error "Software patch version number mismatch between CryIf_Cbk.h and Csm_Types.h"
#endif

/*******************************************************************************
                            FUNCTION DECLARATIONS
*******************************************************************************/
/** @defgroup CRYIF_Fuctions
  @{
*/
/**
* Callback function notifies the CRYIF about the completion of the request
* with the result of the cryptographic operation.
*/
void CryIf_CallbackNotification(P2CONST(Crypto_JobType, AUTOMATIC, CRYPTO_APPL_CONST)job, VAR(Std_ReturnType, AUTOMATIC) result);
/**@} end of group CRYIF_Fuctions */
#ifdef __cplusplus
}
#endif

#endif /* CRYIF_CBK_H */
