Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of TUKS-COURSE-TIMER by
Calibration
[RTC Exported Functions]
Functions | |
__STATIC_INLINE void | LL_RTC_CAL_SetOutputFreq (RTC_TypeDef *RTCx, uint32_t Frequency) |
Set Calibration output frequency (1 Hz or 512 Hz) | |
__STATIC_INLINE uint32_t | LL_RTC_CAL_GetOutputFreq (RTC_TypeDef *RTCx) |
Get Calibration output frequency (1 Hz or 512 Hz) CR COE LL_RTC_CAL_GetOutputFreq CR COSEL LL_RTC_CAL_GetOutputFreq. | |
__STATIC_INLINE void | LL_RTC_CAL_SetPulse (RTC_TypeDef *RTCx, uint32_t Pulse) |
Insert or not One RTCCLK pulse every 2exp11 pulses (frequency increased by 488.5 ppm) | |
__STATIC_INLINE uint32_t | LL_RTC_CAL_IsPulseInserted (RTC_TypeDef *RTCx) |
Check if one RTCCLK has been inserted or not every 2exp11 pulses (frequency increased by 488.5 ppm) CALR CALP LL_RTC_CAL_IsPulseInserted. | |
__STATIC_INLINE void | LL_RTC_CAL_SetPeriod (RTC_TypeDef *RTCx, uint32_t Period) |
Set the calibration cycle period. | |
__STATIC_INLINE uint32_t | LL_RTC_CAL_GetPeriod (RTC_TypeDef *RTCx) |
Get the calibration cycle period CALR CALW8 LL_RTC_CAL_GetPeriod CALR CALW16 LL_RTC_CAL_GetPeriod. | |
__STATIC_INLINE void | LL_RTC_CAL_SetMinus (RTC_TypeDef *RTCx, uint32_t CalibMinus) |
Set Calibration minus. | |
__STATIC_INLINE uint32_t | LL_RTC_CAL_GetMinus (RTC_TypeDef *RTCx) |
Get Calibration minus CALR CALM LL_RTC_CAL_GetMinus. |
Function Documentation
__STATIC_INLINE uint32_t LL_RTC_CAL_GetMinus | ( | RTC_TypeDef * | RTCx ) |
Get Calibration minus CALR CALM LL_RTC_CAL_GetMinus.
- Parameters:
-
RTCx RTC Instance
- Return values:
-
Value between Min_Data=0x00 and Max_Data= 0x1FF
Definition at line 3313 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE uint32_t LL_RTC_CAL_GetOutputFreq | ( | RTC_TypeDef * | RTCx ) |
Get Calibration output frequency (1 Hz or 512 Hz) CR COE LL_RTC_CAL_GetOutputFreq
CR COSEL LL_RTC_CAL_GetOutputFreq.
- Parameters:
-
RTCx RTC Instance
- Return values:
-
Returned value can be one of the following values: - LL_RTC_CALIB_OUTPUT_NONE
- LL_RTC_CALIB_OUTPUT_1HZ
- LL_RTC_CALIB_OUTPUT_512HZ
Definition at line 3228 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE uint32_t LL_RTC_CAL_GetPeriod | ( | RTC_TypeDef * | RTCx ) |
Get the calibration cycle period CALR CALW8 LL_RTC_CAL_GetPeriod
CALR CALW16 LL_RTC_CAL_GetPeriod.
- Parameters:
-
RTCx RTC Instance
- Return values:
-
Returned value can be one of the following values: - LL_RTC_CALIB_PERIOD_32SEC
- LL_RTC_CALIB_PERIOD_16SEC
- LL_RTC_CALIB_PERIOD_8SEC
Definition at line 3288 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE uint32_t LL_RTC_CAL_IsPulseInserted | ( | RTC_TypeDef * | RTCx ) |
Check if one RTCCLK has been inserted or not every 2exp11 pulses (frequency increased by 488.5 ppm) CALR CALP LL_RTC_CAL_IsPulseInserted.
- Parameters:
-
RTCx RTC Instance
- Return values:
-
State of bit (1 or 0).
Definition at line 3255 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_CAL_SetMinus | ( | RTC_TypeDef * | RTCx, |
uint32_t | CalibMinus | ||
) |
Set Calibration minus.
- Note:
- Bit is write-protected. LL_RTC_DisableWriteProtection function should be called before.
- Bit can be written only when RECALPF is set to 0 in RTC_ISR CALR CALM LL_RTC_CAL_SetMinus
- Parameters:
-
RTCx RTC Instance CalibMinus Value between Min_Data=0x00 and Max_Data=0x1FF
- Return values:
-
None
Definition at line 3302 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_CAL_SetOutputFreq | ( | RTC_TypeDef * | RTCx, |
uint32_t | Frequency | ||
) |
Set Calibration output frequency (1 Hz or 512 Hz)
- Note:
- Bits are write-protected. LL_RTC_DisableWriteProtection function should be called before. CR COE LL_RTC_CAL_SetOutputFreq
CR COSEL LL_RTC_CAL_SetOutputFreq
- Parameters:
-
RTCx RTC Instance Frequency This parameter can be one of the following values: - LL_RTC_CALIB_OUTPUT_NONE
- LL_RTC_CALIB_OUTPUT_1HZ
- LL_RTC_CALIB_OUTPUT_512HZ
- Return values:
-
None
Definition at line 3213 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_CAL_SetPeriod | ( | RTC_TypeDef * | RTCx, |
uint32_t | Period | ||
) |
Set the calibration cycle period.
- Note:
- Bit is write-protected. LL_RTC_DisableWriteProtection function should be called before.
-
Bit can be written only when RECALPF is set to 0 in RTC_ISR CALR CALW8 LL_RTC_CAL_SetPeriod
CALR CALW16 LL_RTC_CAL_SetPeriod
- Parameters:
-
RTCx RTC Instance Period This parameter can be one of the following values: - LL_RTC_CALIB_PERIOD_32SEC
- LL_RTC_CALIB_PERIOD_16SEC
- LL_RTC_CALIB_PERIOD_8SEC
- Return values:
-
None
Definition at line 3273 of file stm32l4xx_ll_rtc.h.
__STATIC_INLINE void LL_RTC_CAL_SetPulse | ( | RTC_TypeDef * | RTCx, |
uint32_t | Pulse | ||
) |
Insert or not One RTCCLK pulse every 2exp11 pulses (frequency increased by 488.5 ppm)
- Note:
- Bit is write-protected. LL_RTC_DisableWriteProtection function should be called before.
- Bit can be written only when RECALPF is set to 0 in RTC_ISR CALR CALP LL_RTC_CAL_SetPulse
- Parameters:
-
RTCx RTC Instance Pulse This parameter can be one of the following values: - LL_RTC_CALIB_INSERTPULSE_NONE
- LL_RTC_CALIB_INSERTPULSE_SET
- Return values:
-
None
Definition at line 3244 of file stm32l4xx_ll_rtc.h.
Generated on Tue Jul 12 2022 17:38:58 by
