MG32F10x Standard Peripherals Firmware Library
宏定义 | 函数
mg32f10x_iwdg.h 文件参考

This file contains all the functions prototypes for the IWDG firmware library. 更多...

#include "mg32f10x.h"

浏览源代码.

宏定义

#define IWDG_WriteAccess_Enable   ((uint16_t)0x5555)
 
#define IWDG_WriteAccess_Disable   ((uint16_t)0x0000)
 
#define IS_IWDG_WRITE_ACCESS(ACCESS)
 
#define IWDG_Prescaler_4   ((uint8_t)0x00)
 
#define IWDG_Prescaler_8   ((uint8_t)0x01)
 
#define IWDG_Prescaler_16   ((uint8_t)0x02)
 
#define IWDG_Prescaler_32   ((uint8_t)0x03)
 
#define IWDG_Prescaler_64   ((uint8_t)0x04)
 
#define IWDG_Prescaler_128   ((uint8_t)0x05)
 
#define IWDG_Prescaler_256   ((uint8_t)0x06)
 
#define IS_IWDG_PRESCALER(PRESCALER)
 
#define IWDG_FLAG_PVU   ((uint16_t)0x0001)
 
#define IWDG_FLAG_RVU   ((uint16_t)0x0002)
 
#define IS_IWDG_FLAG(FLAG)   (((FLAG) == IWDG_FLAG_PVU) || ((FLAG) == IWDG_FLAG_RVU))
 
#define IS_IWDG_RELOAD(RELOAD)   ((RELOAD) <= 0xFFF)
 

函数

void IWDG_WriteAccessCmd (uint16_t IWDG_WriteAccess)
 Enables or disables write access to IWDG_PR and IWDG_RLR registers. 更多...
 
void IWDG_SetPrescaler (uint8_t IWDG_Prescaler)
 Sets IWDG Prescaler value. 更多...
 
void IWDG_SetReload (uint16_t Reload)
 Sets IWDG Reload value. 更多...
 
void IWDG_ReloadCounter (void)
 Reloads IWDG counter with value defined in the reload register (write access to IWDG_PR and IWDG_RLR registers disabled). 更多...
 
void IWDG_Enable (void)
 Enables IWDG (write access to IWDG_PR and IWDG_RLR registers disabled). 更多...
 
FlagStatus IWDG_GetFlagStatus (uint16_t IWDG_FLAG)
 Checks whether the specified IWDG flag is set or not. 更多...
 

详细描述

This file contains all the functions prototypes for the IWDG firmware library.

作者
megawin Application Team
版本
V0.1.10
日期
05-January-2023