/*!
* @file     MemIf_Types.h
*
* @version  1.0.0
*
* @brief    AUTOSAR MemIf module interface. 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_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 MEMIF_TYPES_H
#define MEMIF_TYPES_H

#ifdef __cplusplus
extern "C"{
#endif

/** @addtogroup G32A10xx_StdPeriphDriver
  @{
*/

/** @defgroup MEMIF_Driver
  * @brief MEMIF driver modules
  @{
*/

/** @defgroup MEMIF_Macros
  @{
*/
/*******************************************************************************
                    VENDOR ID & AUTOSAR VERSION INFO
*******************************************************************************/
/** Vendor ID (vendorId) of the dedicated implementation of this module according to the AUTOSAR vendor list. */
#define MEMIF_TYPES_H_VENDOR_ID                      0x00C1U
/** Module ID of this module, as defined in the BSW Module List. */
#define MEMIF_TYPES_H_MODULE_ID                      0x0016U
/** Major version number of AUTOSAR release on which the appropriate implementation is based on. */
#define MEMIF_TYPES_H_AR_RELEASE_MAJOR_VERSION       0x04U
/** Minor version number of AUTOSAR release on which the appropriate implementation is based on. */
#define MEMIF_TYPES_H_AR_RELEASE_MINOR_VERSION       0x04U
/** Revision version number of AUTOSAR release on which the appropriate implementation is based on. */
#define MEMIF_TYPES_H_AR_RELEASE_REVISION_VERSION    0x00U
/** Major version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define MEMIF_TYPES_H_SW_MAJOR_VERSION               0x01U
/** Minor version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define MEMIF_TYPES_H_SW_MINOR_VERSION               0x00U
/** Patch level version number of the vendor specific implementation of the module. The numbering is vendor specific. */
#define MEMIF_TYPES_H_SW_PATCH_VERSION               0x00U

/**@} end of group MEMIF_Macros */

/**************************************************************************
                    ENUMERATION DEFINITION
**************************************************************************/
/** @defgroup MEMIF_Enumerations
  @{
*/

/**
 * @brief    Operation mode of the underlying abstraction modules and device drivers
 */
typedef enum
{
    MEMIF_MODE_SLOW = 0,    //!<  The underlying modules and drivers are working in slow mode.
    MEMIF_MODE_FAST = 1     //!<  The underlying modules and drivers are working in fast mode.
} MemIf_ModeType;

/**
 * @brief    Result of the last job
 */
typedef enum
{
    MEMIF_JOB_OK             = 0,   //!<  The job has been finished successfully.
    MEMIF_JOB_FAILED         = 1,   //!<  The job has not been finished successfully.
    MEMIF_JOB_PENDING        = 2,   //!<  The job has not yet been finished.
    MEMIF_JOB_CANCELED       = 3,   //!<  The job has been canceled.
    MEMIF_BLOCK_INCONSISTENT = 4,   //!<  The requested block is inconsistent, it may contain corrupted data.
                                    //!<  Block is NOT found.
    MEMIF_BLOCK_INVALID      = 5    //!<  The requested block has been marked as invalid,
                                    //!<  the requested operation can not be performed.
} MemIf_JobResultType;

/**
 * @brief    Current status of the underlying abstraction module and device driver
 */
typedef enum
{
    MEMIF_UNINIT        = 0,    //!<  The underlying module or driver has not been initialized (yet).
    MEMIF_IDLE          = 1,    //!<  The underlying module or driver is currently idle.
    MEMIF_BUSY          = 2,    //!<  The underlying module or driver is currently busy.
    MEMIF_BUSY_INTERNAL = 3     //!<  The underlying module is busy with internal management operations.
                                //!<  The underlying driver can be busy or idle.
} MemIf_StatusType;

/**@} end of group MEMIF_Enumerations */

#ifdef __cplusplus
}
#endif

#endif

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