STM32F103xB HAL User Manual
Functions
Extended Peripheral Control functions
RTCEx Exported Functions

Extended Peripheral Control functions. More...

Functions

void HAL_RTCEx_BKUPWrite (RTC_HandleTypeDef *hrtc, uint32_t BackupRegister, uint32_t Data)
 Writes a data in a specified RTC Backup data register.
uint32_t HAL_RTCEx_BKUPRead (RTC_HandleTypeDef *hrtc, uint32_t BackupRegister)
 Reads data from the specified RTC Backup data Register.
HAL_StatusTypeDef HAL_RTCEx_SetSmoothCalib (RTC_HandleTypeDef *hrtc, uint32_t SmoothCalibPeriod, uint32_t SmoothCalibPlusPulses, uint32_t SmouthCalibMinusPulsesValue)
 Sets the Smooth calibration parameters.

Detailed Description

Extended Peripheral Control functions.

 ===============================================================================
              ##### Extension Peripheral Control functions #####
 ===============================================================================
    [..]
    This subsection provides functions allowing to
      (+) Writes a data in a specified RTC Backup data register
      (+) Read a data in a specified RTC Backup data register
      (+) Sets the Smooth calibration parameters.


Function Documentation

uint32_t HAL_RTCEx_BKUPRead ( RTC_HandleTypeDef hrtc,
uint32_t  BackupRegister 
)

Reads data from the specified RTC Backup data Register.

Parameters:
hrtc,:pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC.
BackupRegister,:RTC Backup data Register number. This parameter can be: RTC_BKP_DRx where x can be from 1 to 10 (or 42) to specify the register (depending devices).
Return values:
Readvalue

Definition at line 499 of file stm32f1xx_hal_rtc_ex.c.

References assert_param, and IS_RTC_BKP.

void HAL_RTCEx_BKUPWrite ( RTC_HandleTypeDef hrtc,
uint32_t  BackupRegister,
uint32_t  Data 
)

Writes a data in a specified RTC Backup data register.

Parameters:
hrtc,:pointer to a RTC_HandleTypeDef structure that contains the configuration information for RTC.
BackupRegister,:RTC Backup data Register number. This parameter can be: RTC_BKP_DRx where x can be from 1 to 10 (or 42) to specify the register (depending devices).
Data,:Data to be written in the specified RTC Backup data register.
Return values:
None

Definition at line 474 of file stm32f1xx_hal_rtc_ex.c.

References assert_param, and IS_RTC_BKP.

HAL_StatusTypeDef HAL_RTCEx_SetSmoothCalib ( RTC_HandleTypeDef hrtc,
uint32_t  SmoothCalibPeriod,
uint32_t  SmoothCalibPlusPulses,
uint32_t  SmouthCalibMinusPulsesValue 
)

Sets the Smooth calibration parameters.

Parameters:
hrtc,:RTC handle
SmoothCalibPeriod,:Not used (only present for compatibility with another families)
SmoothCalibPlusPulses,:Not used (only present for compatibility with another families)
SmouthCalibMinusPulsesValue,:specifies the RTC Clock Calibration value. This parameter must be a number between 0 and 0x7F.
Return values:
HALstatus

Definition at line 529 of file stm32f1xx_hal_rtc_ex.c.

References assert_param, HAL_RTC_STATE_BUSY, HAL_RTC_STATE_READY, IS_RTC_SMOOTH_CALIB_MINUS, and __RTC_HandleTypeDef::State.