1 /**************************************************************************//** 2 * @file fvc.h 3 * @version V3.00 4 * @brief Firmware Version Counter Driver Header 5 * 6 * @copyright SPDX-License-Identifier: Apache-2.0 7 * @copyright Copyright (C) 2020 Nuvoton Technology Corp. All rights reserved. 8 *****************************************************************************/ 9 #ifndef __FVC_H__ 10 #define __FVC_H__ 11 12 #ifdef __cplusplus 13 extern "C" 14 { 15 #endif 16 17 18 /** @addtogroup Standard_Driver Standard Driver 19 @{ 20 */ 21 22 /** @addtogroup FVC_Driver FVC Driver 23 @{ 24 */ 25 26 /** @addtogroup FVC_EXPORTED_CONSTANTS FVC Exported Constants 27 @{ 28 */ 29 30 #define FVC_VCODE (0x77100000ul) /*!< The key code for FVC_CTL write. */ 31 32 /**@}*/ /* end of group FVC_EXPORTED_CONSTANTS */ 33 34 35 /** @addtogroup FVC_EXPORTED_FUNCTIONS FVC Exported Functions 36 @{ 37 */ 38 39 int32_t FVC_Open(void); 40 void FVC_EnableMonotone(void); 41 int32_t FVC_SetNVC(uint32_t u32NvcIdx, uint32_t u32Cnt); 42 int32_t FVC_GetNVC(uint32_t u32NvcIdx); 43 44 45 /**@}*/ /* end of group FVC_EXPORTED_FUNCTIONS */ 46 47 /**@}*/ /* end of group FVC_Driver */ 48 49 /**@}*/ /* end of group Standard_Driver */ 50 51 #ifdef __cplusplus 52 } 53 #endif 54 55 #endif /* __FVC_H__ */ 56