EasyManuals Logo

ST STM32F2 User Manual

ST STM32F2
1371 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #485 background imageLoading...
Page #485 background image
UM1940
HAL RTC Extension Driver
DocID028236 Rev 2
485/1371
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.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32F2 Specifications

General IconGeneral
BrandST
ModelSTM32F2
CategoryMicrocontrollers
LanguageEnglish

Related product manuals