Hal Rtc Extension Driver; Rtc_Tampertypedef; Rtcex Firmware Driver Api Description; Rtcex Firmware Driver Registers Structures - ST STM32F2 User Manual

Description of stm32f2 hal and low layer drivers
Hide thumbs Also See for STM32F2:
Table of Contents

Advertisement

UM1940
40

HAL RTC Extension Driver

40.1

RTCEx Firmware driver registers structures

40.1.1

RTC_TamperTypeDef

Data Fields
uint32_t Tamper
uint32_t PinSelection
uint32_t Trigger
Field Documentation
uint32_t RTC_TamperTypeDef::Tamper
Specifies the Tamper Pin. This parameter can be a value of
RTCEx_Tamper_Pins_Definitions
uint32_t RTC_TamperTypeDef::PinSelection
Specifies the Tamper Pin. This parameter can be a value of
RTCEx_Tamper_Pins_Selection
uint32_t RTC_TamperTypeDef::Trigger
Specifies the Tamper Trigger. This parameter can be a value of
RTCEx_Tamper_Trigger_Definitions
40.2

RTCEx Firmware driver API description

40.2.1

How to use this driver

Enable the RTC domain access.
Configure the RTC Prescaler (Asynchronous and Synchronous) and RTC hour format
using the HAL_RTC_Init() function.
RTC Wake-up configuration
To configure the RTC Wake-up Clock source and Counter use the
HAL_RTCEx_SetWakeUpTimer() function. You can also configure the RTC Wake-up
timer in interrupt mode using the HAL_RTCEx_SetWakeUpTimer_IT() function.
To read the RTC Wake-up Counter register, use the HAL_RTCEx_GetWakeUpTimer()
function.
TimeStamp configuration
Configure the RTC_AFx trigger and enable the RTC TimeStamp using the
HAL_RTCEx_SetTimeStamp() function. You can also configure the RTC TimeStamp
with interrupt mode using the HAL_RTCEx_SetTimeStamp_IT() function.
To read the RTC TimeStamp Time and Date register, use the
HAL_RTCEx_GetTimeStamp() function.
The TIMESTAMP alternate function can be mapped either to RTC_AF1 (PC13) or
RTC_AF2 (PI8) depending on the value of TSINSEL bit in RTC_TAFCR register. The
corresponding pin is also selected by HAL_RTCEx_SetTimeStamp() or
HAL_RTCEx_SetTimeStamp_IT() function.
DocID028236 Rev 2
HAL RTC Extension Driver
485/1371

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F2 and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF