Martin Johnson / STM32F3-Discovery

Dependents:   Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more

Embed: (wiki syntax)

« Back to documentation index

Tampers configuration functions

Tampers configuration functions
[RTC_Private_Functions]

Tampers configuration functions. More...

Functions

void RTC_TamperTriggerConfig (uint32_t RTC_Tamper, uint32_t RTC_TamperTrigger)
 Configures the select Tamper pin edge.
void RTC_TamperCmd (uint32_t RTC_Tamper, FunctionalState NewState)
 Enables or Disables the Tamper detection.
void RTC_TamperFilterConfig (uint32_t RTC_TamperFilter)
 Configures the Tampers Filter.
void RTC_TamperSamplingFreqConfig (uint32_t RTC_TamperSamplingFreq)
 Configures the Tampers Sampling Frequency.
void RTC_TamperPinsPrechargeDuration (uint32_t RTC_TamperPrechargeDuration)
 Configures the Tampers Pins input Precharge Duration.
void RTC_TimeStampOnTamperDetectionCmd (FunctionalState NewState)
 Enables or Disables the TimeStamp on Tamper Detection Event.
void RTC_TamperPullUpCmd (FunctionalState NewState)
 Enables or Disables the Precharge of Tamper pin.

Detailed Description

Tampers configuration functions.

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


Function Documentation

void RTC_TamperCmd ( uint32_t  RTC_Tamper,
FunctionalState  NewState 
)

Enables or Disables the Tamper detection.

Parameters:
RTC_Tamper,:Selected tamper pin. This parameter can be any combination of the following values:

  • RTC_Tamper_1: Select Tamper 1.
  • RTC_Tamper_2: Select Tamper 2.
  • RTC_Tamper_3: Select Tamper 3.
NewState,:new state of the tamper pin. This parameter can be: ENABLE or DISABLE.
Return values:
None

Definition at line 1999 of file stm32f30x_rtc.c.

void RTC_TamperFilterConfig ( uint32_t  RTC_TamperFilter )

Configures the Tampers Filter.

Parameters:
RTC_TamperFilter,:Specifies the tampers filter. This parameter can be one of the following values:

  • RTC_TamperFilter_Disable: Tamper filter is disabled.
  • RTC_TamperFilter_2Sample: Tamper is activated after 2 consecutive samples at the active level
  • RTC_TamperFilter_4Sample: Tamper is activated after 4 consecutive samples at the active level
  • RTC_TamperFilter_8Sample: Tamper is activated after 8 consecutive samples at the active level
Return values:
None

Definition at line 2030 of file stm32f30x_rtc.c.

void RTC_TamperPinsPrechargeDuration ( uint32_t  RTC_TamperPrechargeDuration )

Configures the Tampers Pins input Precharge Duration.

Parameters:
RTC_TamperPrechargeDuration,:Specifies the Tampers Pins input Precharge Duration. This parameter can be one of the following values:

  • RTC_TamperPrechargeDuration_1RTCCLK: Tamper pins are pre-charged before sampling during 1 RTCCLK cycle
  • RTC_TamperPrechargeDuration_2RTCCLK: Tamper pins are pre-charged before sampling during 2 RTCCLK cycle
  • RTC_TamperPrechargeDuration_4RTCCLK: Tamper pins are pre-charged before sampling during 4 RTCCLK cycle
  • RTC_TamperPrechargeDuration_8RTCCLK: Tamper pins are pre-charged before sampling during 8 RTCCLK cycle
Return values:
None

Definition at line 2087 of file stm32f30x_rtc.c.

void RTC_TamperPullUpCmd ( FunctionalState  NewState )

Enables or Disables the Precharge of Tamper pin.

Parameters:
NewState,:new state of tamper pull up. This parameter can be: ENABLE or DISABLE.
Return values:
None

Definition at line 2130 of file stm32f30x_rtc.c.

void RTC_TamperSamplingFreqConfig ( uint32_t  RTC_TamperSamplingFreq )

Configures the Tampers Sampling Frequency.

Parameters:
RTC_TamperSamplingFreq,:Specifies the tampers Sampling Frequency. This parameter can be one of the following values:

  • RTC_TamperSamplingFreq_RTCCLK_Div32768: Each of the tamper inputs are sampled with a frequency = RTCCLK / 32768
  • RTC_TamperSamplingFreq_RTCCLK_Div16384: Each of the tamper inputs are sampled with a frequency = RTCCLK / 16384
  • RTC_TamperSamplingFreq_RTCCLK_Div8192: Each of the tamper inputs are sampled with a frequency = RTCCLK / 8192
  • RTC_TamperSamplingFreq_RTCCLK_Div4096: Each of the tamper inputs are sampled with a frequency = RTCCLK / 4096
  • RTC_TamperSamplingFreq_RTCCLK_Div2048: Each of the tamper inputs are sampled with a frequency = RTCCLK / 2048
  • RTC_TamperSamplingFreq_RTCCLK_Div1024: Each of the tamper inputs are sampled with a frequency = RTCCLK / 1024
  • RTC_TamperSamplingFreq_RTCCLK_Div512: Each of the tamper inputs are sampled with a frequency = RTCCLK / 512
  • RTC_TamperSamplingFreq_RTCCLK_Div256: Each of the tamper inputs are sampled with a frequency = RTCCLK / 256
Return values:
None

Definition at line 2064 of file stm32f30x_rtc.c.

void RTC_TamperTriggerConfig ( uint32_t  RTC_Tamper,
uint32_t  RTC_TamperTrigger 
)

Configures the select Tamper pin edge.

Parameters:
RTC_Tamper,:Selected tamper pin. This parameter can be any combination of the following values:

  • RTC_Tamper_1: Select Tamper 1.
  • RTC_Tamper_2: Select Tamper 2.
  • RTC_Tamper_3: Select Tamper 3.
RTC_TamperTrigger,:Specifies the trigger on the tamper pin that stimulates tamper event. This parameter can be one of the following values:

  • RTC_TamperTrigger_RisingEdge: Rising Edge of the tamper pin causes tamper event.
  • RTC_TamperTrigger_FallingEdge: Falling Edge of the tamper pin causes tamper event.
  • RTC_TamperTrigger_LowLevel: Low Level of the tamper pin causes tamper event.
  • RTC_TamperTrigger_HighLevel: High Level of the tamper pin causes tamper event.
Return values:
None

Definition at line 1969 of file stm32f30x_rtc.c.

void RTC_TimeStampOnTamperDetectionCmd ( FunctionalState  NewState )

Enables or Disables the TimeStamp on Tamper Detection Event.

Note:
The timestamp is valid even the TSE bit in tamper control register is reset.
Parameters:
NewState,:new state of the timestamp on tamper event. This parameter can be: ENABLE or DISABLE.
Return values:
None

Definition at line 2107 of file stm32f30x_rtc.c.