CARME-M4 BSP  V1.5
Tampers configuration functions

Tampers configuration functions. More...

+ Collaboration diagram for Tampers configuration functions:

Functions

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

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_TamperSelected tamper pin. This parameter can be RTC_Tamper_1.
NewStatenew state of the tamper pin. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 2131 of file stm32f4xx_rtc.c.

void RTC_TamperFilterConfig ( uint32_t  RTC_TamperFilter)

Configures the Tampers Filter.

Parameters
RTC_TamperFilterSpecifies 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 2162 of file stm32f4xx_rtc.c.

void RTC_TamperPinsPrechargeDuration ( uint32_t  RTC_TamperPrechargeDuration)

Configures the Tampers Pins input Precharge Duration.

Parameters
RTC_TamperPrechargeDurationSpecifies the Tampers Pins input Precharge Duration. This parameter can be one of the following values:
  • RTC_TamperPrechargeDuration_1RTCCLK: Tamper pins are precharged before sampling during 1 RTCCLK cycle
  • RTC_TamperPrechargeDuration_2RTCCLK: Tamper pins are precharged before sampling during 2 RTCCLK cycle
  • RTC_TamperPrechargeDuration_4RTCCLK: Tamper pins are precharged before sampling during 4 RTCCLK cycle
  • RTC_TamperPrechargeDuration_8RTCCLK: Tamper pins are precharged before sampling during 8 RTCCLK cycle
Return values
None

Definition at line 2219 of file stm32f4xx_rtc.c.

void RTC_TamperPullUpCmd ( FunctionalState  NewState)

Enables or Disables the Precharge of Tamper pin.

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

Definition at line 2262 of file stm32f4xx_rtc.c.

void RTC_TamperSamplingFreqConfig ( uint32_t  RTC_TamperSamplingFreq)

Configures the Tampers Sampling Frequency.

Parameters
RTC_TamperSamplingFreqSpecifies 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 2196 of file stm32f4xx_rtc.c.

void RTC_TamperTriggerConfig ( uint32_t  RTC_Tamper,
uint32_t  RTC_TamperTrigger 
)

Configures the select Tamper pin edge.

Parameters
RTC_TamperSelected tamper pin. This parameter can be RTC_Tamper_1.
RTC_TamperTriggerSpecifies 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 2105 of file stm32f4xx_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
NewStatenew state of the timestamp on tamper event. This parameter can be: ENABLE or DISABLE.
Return values
None

Definition at line 2239 of file stm32f4xx_rtc.c.