STM32F4 Standard Peripheral bibliotheek  1.0
ST Microelectronics bibliotheek documentatie voor de STM32F4 Standard Peripheral Library
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
stm32f4xx_iwdg.h File Reference

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

#include "stm32f4xx.h"

Go to the source code of this file.

Macros

#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)
 

Functions

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

Detailed Description

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

Author
MCD Application Team
Version
V1.0.2
Date
05-March-2012
Attention

© COPYRIGHT 2012 STMicroelectronics

Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:

   http://www.st.com/software_license_agreement_liberty_v2

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.