/** * @file fc7xxx_driver_tmu.h * @author Flagchip * @brief FC7xxx TMU driver type definition and API * @version 0.1.0 * @date 2023-12-29 * * @copyright Copyright (c) 2023 Flagchip Semiconductors Co., Ltd. * */ /********************************************************************************* * Revision History: * * Version Date Initials CR# Descriptions * --------- ---------- ------------ ---------- --------------- * 0.1.0 2023-12-29 qxw074 N/A First version for FC7240 ******************************************************************************** */ #ifndef _DRIVER_FC7XXX_DRIVER_TMU_H_ #define _DRIVER_FC7XXX_DRIVER_TMU_H_ #include "device_header.h" #include "HwA_tmu.h" #if defined(__cplusplus) extern "C" { #endif /** * @addtogroup fc7xxx_driver_tmu * @{ */ /** * @brief The Flag-based temperature sensor over 150 Celsius callback function prototype * */ typedef void (*TMU_TempOver150InterruptCallbackType)(void); /** * @brief The Flag-based temperature sensor over 125 Celsius callback function prototype * */ typedef void (*TMU_TempOver125InterruptCallbackType)(void); /** * @brief The Flag-based temperature sensor ready callback function prototype * */ typedef void (*TMU_TempFlagReadyInterruptCallbackType)(void); /** * @brief The Voltage-based temperature sensor ready callback function prototype * */ typedef void (*TMU_TempVoltageReadyInterruptCallbackType)(void); /** * @brief TMU operation return values * */ typedef enum { TMU_STATUS_ERROR = 0x0U, /*!< The TMU operation is failed */ TMU_STATUS_SUCCESS = 0x1U, /*!< The TMU operation is succeed */ TMU_STATUS_TIMEOUT = 0x2U /*!< The TMU operation is failed because of time out */ } TMU_StatusType; /** * @brief Defines the temperature sensor configuration * * This structure is used to configure for Flag-based temperature sensor ane Voltage-based temperature sensor * * Implements : TMU_InitType */ typedef struct { TMU_LockType eTempRegisterLockCon; /*!