STM8L15x Standard Peripherals Drivers: stm8l15x_iwdg.h File Reference

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

stm8l15x_iwdg.h File Reference

#include "stm8l15x.h"

Go to the source code of this file.

Defines

#define IS_IWDG_PRESCALER_VALUE(VALUE)
#define IS_IWDG_WRITE_ACCESS_MODE(MODE)
#define IWDG_KEY_ENABLE   ((uint8_t)0xCC)
#define IWDG_KEY_REFRESH   ((uint8_t)0xAA)

Enumerations

enum  IWDG_Prescaler_TypeDef {
  IWDG_Prescaler_4 = (uint8_t)0x00, IWDG_Prescaler_8 = (uint8_t)0x01, IWDG_Prescaler_16 = (uint8_t)0x02, IWDG_Prescaler_32 = (uint8_t)0x03,
  IWDG_Prescaler_64 = (uint8_t)0x04, IWDG_Prescaler_128 = (uint8_t)0x05, IWDG_Prescaler_256 = (uint8_t)0x06
}
enum  IWDG_WriteAccess_TypeDef { IWDG_WriteAccess_Enable = (uint8_t)0x55, IWDG_WriteAccess_Disable = (uint8_t)0x00 }

Functions

void IWDG_Enable (void)
 Enables IWDG (write access to IWDG_PR and IWDG_RLR registers disabled).
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_SetPrescaler (IWDG_Prescaler_TypeDef IWDG_Prescaler)
 Sets IWDG Prescaler value.
void IWDG_SetReload (uint8_t IWDG_Reload)
 Sets IWDG Reload value.
void IWDG_WriteAccessCmd (IWDG_WriteAccess_TypeDef IWDG_WriteAccess)
 Enables or disables write access to IWDG_PR and IWDG_RLR registers.
STM8S Firmware Library: Overview

 

 

 

For complete documentation on STM8L15x 8-bit microcontrollers platform visit www.st.com