STM8L15x Standard Peripherals Drivers: Tampers configuration functions

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

Tampers configuration functions

Tampers configuration functions. More...

Functions

void RTC_TamperCmd (RTC_Tamper_TypeDef RTC_Tamper, FunctionalState NewState)
 Enables or Disables the Tamper detection.
void RTC_TamperFilterConfig (RTC_TamperFilter_TypeDef RTC_TamperFilter)
 Configures the Tampers Filter.
void RTC_TamperLevelConfig (RTC_Tamper_TypeDef RTC_Tamper, RTC_TamperLevel_TypeDef RTC_TamperLevel)
 Configures the Tamper Sensitive Level.
void RTC_TamperPinsPrechargeDuration (RTC_TamperPrechargeDuration_TypeDef RTC_TamperPrechargeDuration)
 Configures the Tampers Pins input Precharge Duration.
void RTC_TamperSamplingFreqConfig (RTC_TamperSamplingFreq_TypeDef RTC_TamperSamplingFreq)
 Configures the Tampers Sampling Frequency.

Detailed Description

Tampers configuration functions.

 ===============================================================================
                       Tampers configuration functions
 ===============================================================================  


Function Documentation

void RTC_TamperCmd ( RTC_Tamper_TypeDef  RTC_Tamper,
FunctionalState  NewState 
)

Enables or Disables the Tamper detection.

Parameters:
RTC_Tamper,:Select the tamper to configure. This parameter can be one parameter from the RTC_Tamper_TypeDef enumeration.
NewState,:new state of the tamper pin. This parameter can be: ENABLE or DISABLE.
Return values:
None

Definition at line 1981 of file stm8l15x_rtc.c.

References DISABLE, IS_FUNCTIONAL_STATE, IS_RTC_TAMPER, and RTC.

void RTC_TamperFilterConfig ( RTC_TamperFilter_TypeDef  RTC_TamperFilter)

Configures the Tampers Filter.

Parameters:
RTC_TamperFilter,:Specifies the tampers filter. This parameter can be one parameter from the RTC_TamperFilter_TypeDef enumeration.
Return values:
None

Definition at line 1897 of file stm8l15x_rtc.c.

References IS_RTC_TAMPER_FILTER, RTC, and RTC_TCR2_TAMPFLT.

void RTC_TamperLevelConfig ( RTC_Tamper_TypeDef  RTC_Tamper,
RTC_TamperLevel_TypeDef  RTC_TamperLevel 
)

Configures the Tamper Sensitive Level.

Parameters:
RTC_Tamper,:Select the tamper to configure. This parameter can be one parameter from the RTC_Tamper_TypeDef enumeration.
RTC_TamperLevel,:Select the tamper Sensitive Level. This parameter can be one parameter from the RTC_TamperLevel_TypeDef enumeration.
Return values:
None

Definition at line 1865 of file stm8l15x_rtc.c.

References IS_RTC_TAMPER, IS_RTC_TAMPER_LEVEL, RTC, and RTC_TamperLevel_Low.

void RTC_TamperPinsPrechargeDuration ( RTC_TamperPrechargeDuration_TypeDef  RTC_TamperPrechargeDuration)

Configures the Tampers Pins input Precharge Duration.

Parameters:
RTC_TamperPrechargeDuration,:Specifies the Tampers Pins input Precharge Duration. This parameter can be one parameter from the RTC_TamperPrechargeDuration_TypeDef enumeration.
Return values:
None

Definition at line 1952 of file stm8l15x_rtc.c.

References IS_RTC_TAMPER_PINS_PRECHAR_DURATION, RTC, RTC_TCR2_TAMPPRCH, and RTC_TCR2_TAMPPUDIS.

void RTC_TamperSamplingFreqConfig ( RTC_TamperSamplingFreq_TypeDef  RTC_TamperSamplingFreq)

Configures the Tampers Sampling Frequency.

Parameters:
RTC_TamperSamplingFreq,:Specifies the tampers Sampling Frequency. This parameter can be one parameter from the RTC_TamperSamplingFreq_TypeDef enumeration.
Return values:
None

Definition at line 1925 of file stm8l15x_rtc.c.

References IS_RTC_TAMPER_SAMPLING_FREQ, RTC, and RTC_TCR2_TAMPFREQ.

STM8S Firmware Library: Overview

 

 

 

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