IWDG driver modules.
More...
|
#define | IWDG_ENABLE_WRITE_ACCESS() |
|
#define | IWDG_DISABLE_WRITE_ACCESS() |
|
IWDG driver modules.
◆ IWDG_DISABLE_WRITE_ACCESS
#define IWDG_DISABLE_WRITE_ACCESS |
( |
| ) |
|
Value:do { \
} while (0)
#define IWDG_LOCK_KEY
Definition: mg32l003_iwdg.h:40
◆ IWDG_ENABLE_WRITE_ACCESS
#define IWDG_ENABLE_WRITE_ACCESS |
( |
| ) |
|
Value:do { \
} while (0)
#define IWDG_UNLOCK_KEY
IWDG Key Register value.
Definition: mg32l003_iwdg.h:39
◆ IWDG_ClearITPendingBit()
void IWDG_ClearITPendingBit |
( |
uint32_t |
IWDG_IT | ) |
|
Clears the IWDG's interrupt pending bits.
- Parameters
-
IWDG_IT | specifies the interrupt pending bit to clear. This parameter can be a combination of the following values:
- IWDG_IT_GOVF: The overflow of the IWDG was interrupted
|
- Return values
-
◆ IWDG_GetITStatus()
FlagStatus IWDG_GetITStatus |
( |
uint32_t |
IWDG_IT | ) |
|
Checks whether the specified IWDG interrupt flag is set or not.
- Parameters
-
IWDG_IT | specifies the interrupt flag to check. This parameter can be one of the following values:
- IWDG_IT_GOVF: The overflow of the IWDG was interrupted
|
- Return values
-
The | new state of IWDG_IT (SET or RESET). |
◆ IWDG_Init()
void IWDG_Init |
( |
uint32_t |
IWDG_Config, |
|
|
FunctionalState |
NewState |
|
) |
| |
Initialize the IWDG according to the specified IWDG_Config.
- Parameters
-
IWDG_Config | Specify configuration parameters for the IWDG. This parameter can be any combination of the following values:
- IWDG_MODE_RESET
- IWDG_MODE_INT
- IWDG_IT_DISABLE
- IWDG_IT_ENABLE
|
NewState | new state of the IWDG peripheral. This parameter can be: ENABLE or DISABLE. |
- Return values
-
◆ IWDG_ReloadCounter()
void IWDG_ReloadCounter |
( |
void |
| ) |
|
Reloads IWDG counter with value defined in the reload register.
- Parameters
-
- Return values
-
◆ IWDG_SetReload()
void IWDG_SetReload |
( |
uint32_t |
Reload | ) |
|
Sets IWDG Reload value.
- Parameters
-
Reload | specifies the IWDG Reload value. This parameter must be a number between 0 and 0xFFFFF. |
- Return values
-
◆ IWDG_Start()
IWDG starts running.
- Parameters
-
- Return values
-