RTC Exported Functions ¶
Configuration ¶
- group RTC_LL_EF_Configuration
-
Functions
-
void
LL_RTC_SetHourFormat
(
uint32_t
HourFormat
)
¶
-
Set Hours format (24 hour/day or AM/PM hour format)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR FMT LL_RTC_SetHourFormat
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
- Parameters :
-
HourFormat – This parameter can be one of the following values:
-
uint32_t
LL_RTC_GetHourFormat
(
void
)
¶
-
Get Hours format (24 hour/day or AM/PM hour format)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR FMT LL_RTC_GetHourFormat
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_SetAlarmOutEvent
(
uint32_t
AlarmOutput
)
¶
-
Select the flag to be routed to RTC_ALARM output.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OSEL LL_RTC_SetAlarmOutEvent
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
- Parameters :
-
AlarmOutput – This parameter can be one of the following values:
-
uint32_t
LL_RTC_GetAlarmOutEvent
(
void
)
¶
-
Get the flag to be routed to RTC_ALARM output.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OSEL LL_RTC_GetAlarmOutEvent
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_SetAlarmOutputType
(
uint32_t
Output
)
¶
-
Set RTC_ALARM output type (ALARM in push-pull or open-drain output)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPALRM_TYPE LL_RTC_SetAlarmOutputType
- Parameters :
-
Output – This parameter can be one of the following values:
-
uint32_t
LL_RTC_GetAlarmOutputType
(
void
)
¶
-
Get RTC_ALARM output type (ALARM in push-pull or open-drain output)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPALRM_TYPE LL_RTC_GetAlarmOutputType
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_EnableInitMode
(
void
)
¶
-
Enable initialization mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR INIT LL_RTC_EnableInitMode
Note
Initialization mode is used to program time and date register (RTC_TR and RTC_DR) and prescaler register (RTC_PRER) Counters are stopped and start counting from the new value when INIT is reset
-
void
LL_RTC_DisableInitMode
(
void
)
¶
-
Disable initialization mode (Free running mode)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR INIT LL_RTC_DisableInitMode
-
void
LL_RTC_SetBinaryMode
(
uint32_t
BinaryMode
)
¶
-
Set Binary mode (Sub Second Register)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR BIN LL_RTC_SetBinaryMode
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
- Parameters :
-
BinaryMode – can be one of the following values:
-
uint32_t
LL_RTC_GetBinaryMode
(
void
)
¶
-
Get Binary mode (Sub Second Register)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR BIN LL_RTC_GetBinaryMode
- Return values :
-
This – parameter can be one of the following values:
-
void
LL_RTC_SetBinMixBCDU
(
uint32_t
BinMixBcdU
)
¶
-
Set Binary Mix mode BCDU.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR BCDU LL_RTC_SetBinMixBCDU
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
- Parameters :
-
BinMixBcdU – can be one of the following values:
-
uint32_t
LL_RTC_GetBinMixBCDU
(
void
)
¶
-
Get Binary Mix mode BCDU.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR BCDU LL_RTC_GetBinMixBCDU
- Return values :
-
This – parameter can be one of the following values:
-
void
LL_RTC_SetConfigBinaryMode
(
uint32_t
BinaryMode
,
uint32_t
BinMixBcdU
)
¶
-
Set Binary mode (Sub Second Register) and Mix mode BCDU.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR BIN LL_RTC_SetConfigBinaryMode
RTC_ICSR BCDU LL_RTC_SetConfigBinaryMode
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
- Parameters :
-
-
BinaryMode – can be one of the following values:
-
BinMixBcdU – can be one of the following values:
-
-
uint32_t
LL_RTC_GetConfigBinaryMode
(
void
)
¶
-
Get Binary mode (Sub Second Register) and Mix mode BCDU.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR BIN LL_RTC_GetConfigBinaryMode
RTC_ICSR BCDU LL_RTC_GetConfigBinaryMode
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
- Return values :
-
A – combination one of the following values:
-
void
LL_RTC_SetOutputPolarity
(
uint32_t
Polarity
)
¶
-
Set Output polarity.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR POL LL_RTC_SetOutputPolarity
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
- Parameters :
-
Polarity – This parameter can be one of the following values:
-
uint32_t
LL_RTC_GetOutputPolarity
(
void
)
¶
-
Get Output polarity.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR POL LL_RTC_GetOutputPolarity
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_EnableBypassShadowReg
(
void
)
¶
-
Enable bypass of the shadow registers.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR BYPSHAD LL_RTC_EnableBypassShadowReg
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
When bypass enable, Calendar values (when reading from RTC_SSR, RTC_TR, and RTC_DR) are taken directly from the calendar counters
Note
If the frequency of the APB clock is less than seven times the frequency of RTCCLK, BYPSHAD must be set to 1
-
void
LL_RTC_DisableBypassShadowReg
(
void
)
¶
-
Disable bypass of the shadow registers.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR BYPSHAD LL_RTC_DisableBypassShadowReg
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
uint32_t
LL_RTC_IsEnabledBypassShadowReg
(
void
)
¶
-
Check if the bypass of the shadow registers is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR BYPSHAD LL_RTC_IsEnabledBypassShadowReg
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_SetHourFormatAndShadowRegBypass
(
uint32_t
HourFormat
,
uint32_t
Bypass
)
¶
-
Set Hours format (24 hour/day or AM/PM hour format) and bypass shadow registers.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR FMT LL_RTC_SetHourFormatAndShadowRegBypass
RTC_CR BYPSHAD LL_RTC_SetHourFormatAndShadowRegBypass
Note
Bits are write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
- Parameters :
-
-
HourFormat – This parameter can be one of the following values:
-
Bypass – This parameter can be one of the following values:
-
-
void
LL_RTC_EnableRefClock
(
void
)
¶
-
Enable RTC_REFIN reference clock detection (50 or 60 Hz)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR REFCKON LL_RTC_EnableRefClock
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
-
void
LL_RTC_DisableRefClock
(
void
)
¶
-
Disable RTC_REFIN reference clock detection (50 or 60 Hz)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR REFCKON LL_RTC_DisableRefClock
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
-
uint32_t
LL_RTC_IsEnabledRefClock
(
void
)
¶
-
Check if reference clock is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR REFCKON LL_RTC_IsEnabledRefClock
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_SetPrescalers
(
uint32_t
AsynchPrescaler
,
uint32_t
SynchPrescaler
)
¶
-
Set the different prescalers factor.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_PRER PREDIV_A LL_RTC_SetPrescalers
RTC_PRER PREDIV_S LL_RTC_SetPrescalers
- Parameters :
-
-
AsynchPrescaler – Value between Min_Data = 0 and Max_Data = 0x7F
-
SynchPrescaler – Value between Min_Data = 0 and Max_Data = 0x7FFF
-
-
uint32_t
LL_RTC_GetPrescalers
(
void
)
¶
-
Get the different prescalers factor.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_PRER PREDIV_A LL_RTC_GetPrescalers
RTC_PRER PREDIV_S LL_RTC_GetPrescalers
- Return values :
-
AsynchPrescaler – Value between Min_Data = 0 and Max_Data = 0x7F and SynchPrescaler Value between Min_Data = 0 and Max_Data = 0x7FFF
-
void
LL_RTC_SetAsynchPrescaler
(
uint32_t
AsynchPrescaler
)
¶
-
Set Asynchronous prescaler factor.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_PRER PREDIV_A LL_RTC_SetAsynchPrescaler
- Parameters :
-
AsynchPrescaler – Value between Min_Data = 0 and Max_Data = 0x7F
-
void
LL_RTC_SetSynchPrescaler
(
uint32_t
SynchPrescaler
)
¶
-
Set Synchronous prescaler factor.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_PRER PREDIV_S LL_RTC_SetSynchPrescaler
- Parameters :
-
SynchPrescaler – Value between Min_Data = 0 and Max_Data = 0x7FFF
-
uint32_t
LL_RTC_GetAsynchPrescaler
(
void
)
¶
-
Get Asynchronous prescaler factor.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_PRER PREDIV_A LL_RTC_GetAsynchPrescaler
- Return values :
-
Value – between Min_Data = 0 and Max_Data = 0x7F
-
uint32_t
LL_RTC_GetSynchPrescaler
(
void
)
¶
-
Get Synchronous prescaler factor.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_PRER PREDIV_S LL_RTC_GetSynchPrescaler
- Return values :
-
Value – between Min_Data = 0 and Max_Data = 0x7FFF
-
void
LL_RTC_EnableWriteProtection
(
void
)
¶
-
Enable the write protection for RTC registers.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_WPR KEY LL_RTC_EnableWriteProtection
-
void
LL_RTC_DisableWriteProtection
(
void
)
¶
-
Disable the write protection for RTC registers.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_WPR KEY LL_RTC_DisableWriteProtection
-
void
LL_RTC_EnableTamperOutput
(
void
)
¶
-
Enable tamper output.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPOE LL_RTC_EnableTamperOutput
Note
When the tamper output is enabled, all external and internal tamper flags are ORed and routed to the TAMPALRM output
-
void
LL_RTC_DisableTamperOutput
(
void
)
¶
-
Disable tamper output.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPOE LL_RTC_DisableTamperOutput
-
uint32_t
LL_RTC_IsEnabledTamperOutput
(
void
)
¶
-
Check if tamper output is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPOE LL_RTC_IsEnabledTamperOutput
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_EnableAlarmPullUp
(
void
)
¶
-
Enable internal pull-up in output mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPALRM_PU LL_RTC_EnableAlarmPullUp
-
void
LL_RTC_DisableAlarmPullUp
(
void
)
¶
-
Disable internal pull-up in output mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPALRM_PU LL_RTC_DisableAlarmPullUp
-
uint32_t
LL_RTC_IsEnabledAlarmPullUp
(
void
)
¶
-
Check if internal pull-up in output mode is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPALRM_PU LL_RTC_IsEnabledAlarmPullUp
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_EnableOutput2
(
void
)
¶
-
Enable RTC_OUT2 output.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OUT2EN LL_RTC_EnableOutput2
Note
RTC_OUT2 mapping depends on both OSEL ( LL_RTC_SetAlarmOutEvent ) and COE ( LL_RTC_CAL_SetOutputFreq ) settings
-
void
LL_RTC_DisableOutput2
(
void
)
¶
-
Disable RTC_OUT2 output.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OUT2EN LL_RTC_DisableOutput2
-
uint32_t
LL_RTC_IsEnabledOutput2
(
void
)
¶
-
Check if RTC_OUT2 output is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OUT2EN LL_RTC_IsEnabledOutput2
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_EnableOutput
(
uint32_t
Output
)
¶
-
Enable the output of the calibration signal or tampalarm signal.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OUT2EN LL_RTC_EnableOutput
RTC_CR TAMPOE LL_RTC_EnableOutput
RTC_CR OSEL LL_RTC_EnableOutput
RTC_CR COE LL_RTC_EnableOutput
RTC_CR COSEL LL_RTC_EnableOutput
- Parameters :
-
Output – This parameter can be one of the following values:
-
void
LL_RTC_DisableOutput
(
void
)
¶
-
Disable the output of the calibration signal or tampalarm signal.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OUT2EN LL_RTC_DisableOutput
RTC_CR TAMPOE LL_RTC_DisableOutput
RTC_CR OSEL LL_RTC_DisableOutput
RTC_CR COE LL_RTC_DisableOutput
RTC_CR COSEL LL_RTC_DisableOutput
-
uint32_t
LL_RTC_IsEnabledOutput
(
void
)
¶
-
Get the output status of the calibration signal or tampalarm signal.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OUT2EN LL_RTC_IsEnabledOutput
RTC_CR TAMPOE LL_RTC_IsEnabledOutput
RTC_CR OSEL LL_RTC_IsEnabledOutput
RTC_CR COE LL_RTC_IsEnabledOutput
RTC_CR COSEL LL_RTC_IsEnabledOutput
- Return values :
-
-
0 – output disabled
-
1 – output enabled
-
-
uint32_t
LL_RTC_IsEnabledDetailedOutput
(
const
uint32_t
Output
)
¶
-
Get the output detailed status of the calibration signal or tampalarm signal.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OUT2EN LL_RTC_IsEnabledDetailedOutput
RTC_CR AMPOE LL_RTC_IsEnabledDetailedOutput
RTC_CR OSEL LL_RTC_IsEnabledDetailedOutput
RTC_CR COE LL_RTC_IsEnabledDetailedOutput
RTC_CR COSEL LL_RTC_IsEnabledDetailedOutput
- Parameters :
-
Output – This parameter can be one of the following values:
- Return values :
-
0 – output disabled, 1 output enabled
-
void
LL_RTC_ConfigTampalarm
(
uint32_t
Polarity
,
uint32_t
Type
,
uint32_t
PullUp
)
¶
-
Configure the Output polarity and pull-up.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR POL LL_RTC_ConfigTampalarm
RTC_CR TAMPALRM_TYPE LL_RTC_ConfigTampalarm
RTC_CR TAMPALRM_PU LL_RTC_ConfigTampalarm
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
- Parameters :
-
-
Polarity – This parameter can be one of the following values:
-
Type – This parameter can be one of the following values:
-
PullUp – This parameter can be one of the following values:
-
-
void
LL_RTC_SetHourFormat
(
uint32_t
HourFormat
)
¶
- group RTC_LL_EF_Configuration
-
Functions
-
void
LL_RTC_SetHourFormat
(
uint32_t
HourFormat
)
-
Set Hours format (24 hour/day or AM/PM hour format)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR FMT LL_RTC_SetHourFormat
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
- Parameters :
-
HourFormat – This parameter can be one of the following values:
-
uint32_t
LL_RTC_GetHourFormat
(
void
)
-
Get Hours format (24 hour/day or AM/PM hour format)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR FMT LL_RTC_GetHourFormat
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_SetAlarmOutEvent
(
uint32_t
AlarmOutput
)
-
Select the flag to be routed to RTC_ALARM output.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OSEL LL_RTC_SetAlarmOutEvent
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
- Parameters :
-
AlarmOutput – This parameter can be one of the following values:
-
uint32_t
LL_RTC_GetAlarmOutEvent
(
void
)
-
Get the flag to be routed to RTC_ALARM output.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OSEL LL_RTC_GetAlarmOutEvent
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_SetAlarmOutputType
(
uint32_t
Output
)
-
Set RTC_ALARM output type (ALARM in push-pull or open-drain output)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPALRM_TYPE LL_RTC_SetAlarmOutputType
- Parameters :
-
Output – This parameter can be one of the following values:
-
uint32_t
LL_RTC_GetAlarmOutputType
(
void
)
-
Get RTC_ALARM output type (ALARM in push-pull or open-drain output)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPALRM_TYPE LL_RTC_GetAlarmOutputType
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_EnableInitMode
(
void
)
-
Enable initialization mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR INIT LL_RTC_EnableInitMode
Note
Initialization mode is used to program time and date register (RTC_TR and RTC_DR) and prescaler register (RTC_PRER) Counters are stopped and start counting from the new value when INIT is reset
-
void
LL_RTC_DisableInitMode
(
void
)
-
Disable initialization mode (Free running mode)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR INIT LL_RTC_DisableInitMode
-
void
LL_RTC_SetBinaryMode
(
uint32_t
BinaryMode
)
-
Set Binary mode (Sub Second Register)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR BIN LL_RTC_SetBinaryMode
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
- Parameters :
-
BinaryMode – can be one of the following values:
-
uint32_t
LL_RTC_GetBinaryMode
(
void
)
-
Get Binary mode (Sub Second Register)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR BIN LL_RTC_GetBinaryMode
- Return values :
-
This – parameter can be one of the following values:
-
void
LL_RTC_SetBinMixBCDU
(
uint32_t
BinMixBcdU
)
-
Set Binary Mix mode BCDU.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR BCDU LL_RTC_SetBinMixBCDU
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
- Parameters :
-
BinMixBcdU – can be one of the following values:
-
uint32_t
LL_RTC_GetBinMixBCDU
(
void
)
-
Get Binary Mix mode BCDU.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR BCDU LL_RTC_GetBinMixBCDU
- Return values :
-
This – parameter can be one of the following values:
-
void
LL_RTC_SetConfigBinaryMode
(
uint32_t
BinaryMode
,
uint32_t
BinMixBcdU
)
-
Set Binary mode (Sub Second Register) and Mix mode BCDU.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR BIN LL_RTC_SetConfigBinaryMode
RTC_ICSR BCDU LL_RTC_SetConfigBinaryMode
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
- Parameters :
-
-
BinaryMode – can be one of the following values:
-
BinMixBcdU – can be one of the following values:
-
-
uint32_t
LL_RTC_GetConfigBinaryMode
(
void
)
-
Get Binary mode (Sub Second Register) and Mix mode BCDU.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR BIN LL_RTC_GetConfigBinaryMode
RTC_ICSR BCDU LL_RTC_GetConfigBinaryMode
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
- Return values :
-
A – combination one of the following values:
-
void
LL_RTC_SetOutputPolarity
(
uint32_t
Polarity
)
-
Set Output polarity.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR POL LL_RTC_SetOutputPolarity
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
- Parameters :
-
Polarity – This parameter can be one of the following values:
-
uint32_t
LL_RTC_GetOutputPolarity
(
void
)
-
Get Output polarity.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR POL LL_RTC_GetOutputPolarity
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_EnableBypassShadowReg
(
void
)
-
Enable bypass of the shadow registers.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR BYPSHAD LL_RTC_EnableBypassShadowReg
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
When bypass enable, Calendar values (when reading from RTC_SSR, RTC_TR, and RTC_DR) are taken directly from the calendar counters
Note
If the frequency of the APB clock is less than seven times the frequency of RTCCLK, BYPSHAD must be set to 1
-
void
LL_RTC_DisableBypassShadowReg
(
void
)
-
Disable bypass of the shadow registers.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR BYPSHAD LL_RTC_DisableBypassShadowReg
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
uint32_t
LL_RTC_IsEnabledBypassShadowReg
(
void
)
-
Check if the bypass of the shadow registers is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR BYPSHAD LL_RTC_IsEnabledBypassShadowReg
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_SetHourFormatAndShadowRegBypass
(
uint32_t
HourFormat
,
uint32_t
Bypass
)
-
Set Hours format (24 hour/day or AM/PM hour format) and bypass shadow registers.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR FMT LL_RTC_SetHourFormatAndShadowRegBypass
RTC_CR BYPSHAD LL_RTC_SetHourFormatAndShadowRegBypass
Note
Bits are write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
- Parameters :
-
-
HourFormat – This parameter can be one of the following values:
-
Bypass – This parameter can be one of the following values:
-
-
void
LL_RTC_EnableRefClock
(
void
)
-
Enable RTC_REFIN reference clock detection (50 or 60 Hz)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR REFCKON LL_RTC_EnableRefClock
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
-
void
LL_RTC_DisableRefClock
(
void
)
-
Disable RTC_REFIN reference clock detection (50 or 60 Hz)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR REFCKON LL_RTC_DisableRefClock
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
-
uint32_t
LL_RTC_IsEnabledRefClock
(
void
)
-
Check if reference clock is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR REFCKON LL_RTC_IsEnabledRefClock
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_SetPrescalers
(
uint32_t
AsynchPrescaler
,
uint32_t
SynchPrescaler
)
-
Set the different prescalers factor.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_PRER PREDIV_A LL_RTC_SetPrescalers
RTC_PRER PREDIV_S LL_RTC_SetPrescalers
- Parameters :
-
-
AsynchPrescaler – Value between Min_Data = 0 and Max_Data = 0x7F
-
SynchPrescaler – Value between Min_Data = 0 and Max_Data = 0x7FFF
-
-
uint32_t
LL_RTC_GetPrescalers
(
void
)
-
Get the different prescalers factor.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_PRER PREDIV_A LL_RTC_GetPrescalers
RTC_PRER PREDIV_S LL_RTC_GetPrescalers
- Return values :
-
AsynchPrescaler – Value between Min_Data = 0 and Max_Data = 0x7F and SynchPrescaler Value between Min_Data = 0 and Max_Data = 0x7FFF
-
void
LL_RTC_SetAsynchPrescaler
(
uint32_t
AsynchPrescaler
)
-
Set Asynchronous prescaler factor.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_PRER PREDIV_A LL_RTC_SetAsynchPrescaler
- Parameters :
-
AsynchPrescaler – Value between Min_Data = 0 and Max_Data = 0x7F
-
void
LL_RTC_SetSynchPrescaler
(
uint32_t
SynchPrescaler
)
-
Set Synchronous prescaler factor.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_PRER PREDIV_S LL_RTC_SetSynchPrescaler
- Parameters :
-
SynchPrescaler – Value between Min_Data = 0 and Max_Data = 0x7FFF
-
uint32_t
LL_RTC_GetAsynchPrescaler
(
void
)
-
Get Asynchronous prescaler factor.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_PRER PREDIV_A LL_RTC_GetAsynchPrescaler
- Return values :
-
Value – between Min_Data = 0 and Max_Data = 0x7F
-
uint32_t
LL_RTC_GetSynchPrescaler
(
void
)
-
Get Synchronous prescaler factor.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_PRER PREDIV_S LL_RTC_GetSynchPrescaler
- Return values :
-
Value – between Min_Data = 0 and Max_Data = 0x7FFF
-
void
LL_RTC_EnableWriteProtection
(
void
)
-
Enable the write protection for RTC registers.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_WPR KEY LL_RTC_EnableWriteProtection
-
void
LL_RTC_DisableWriteProtection
(
void
)
-
Disable the write protection for RTC registers.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_WPR KEY LL_RTC_DisableWriteProtection
-
void
LL_RTC_EnableTamperOutput
(
void
)
-
Enable tamper output.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPOE LL_RTC_EnableTamperOutput
Note
When the tamper output is enabled, all external and internal tamper flags are ORed and routed to the TAMPALRM output
-
void
LL_RTC_DisableTamperOutput
(
void
)
-
Disable tamper output.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPOE LL_RTC_DisableTamperOutput
-
uint32_t
LL_RTC_IsEnabledTamperOutput
(
void
)
-
Check if tamper output is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPOE LL_RTC_IsEnabledTamperOutput
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_EnableAlarmPullUp
(
void
)
-
Enable internal pull-up in output mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPALRM_PU LL_RTC_EnableAlarmPullUp
-
void
LL_RTC_DisableAlarmPullUp
(
void
)
-
Disable internal pull-up in output mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPALRM_PU LL_RTC_DisableAlarmPullUp
-
uint32_t
LL_RTC_IsEnabledAlarmPullUp
(
void
)
-
Check if internal pull-up in output mode is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPALRM_PU LL_RTC_IsEnabledAlarmPullUp
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_EnableOutput2
(
void
)
-
Enable RTC_OUT2 output.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OUT2EN LL_RTC_EnableOutput2
Note
RTC_OUT2 mapping depends on both OSEL ( LL_RTC_SetAlarmOutEvent ) and COE ( LL_RTC_CAL_SetOutputFreq ) settings
-
void
LL_RTC_DisableOutput2
(
void
)
-
Disable RTC_OUT2 output.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OUT2EN LL_RTC_DisableOutput2
-
uint32_t
LL_RTC_IsEnabledOutput2
(
void
)
-
Check if RTC_OUT2 output is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OUT2EN LL_RTC_IsEnabledOutput2
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_EnableOutput
(
uint32_t
Output
)
-
Enable the output of the calibration signal or tampalarm signal.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OUT2EN LL_RTC_EnableOutput
RTC_CR TAMPOE LL_RTC_EnableOutput
RTC_CR OSEL LL_RTC_EnableOutput
RTC_CR COE LL_RTC_EnableOutput
RTC_CR COSEL LL_RTC_EnableOutput
- Parameters :
-
Output – This parameter can be one of the following values:
-
void
LL_RTC_DisableOutput
(
void
)
-
Disable the output of the calibration signal or tampalarm signal.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OUT2EN LL_RTC_DisableOutput
RTC_CR TAMPOE LL_RTC_DisableOutput
RTC_CR OSEL LL_RTC_DisableOutput
RTC_CR COE LL_RTC_DisableOutput
RTC_CR COSEL LL_RTC_DisableOutput
-
uint32_t
LL_RTC_IsEnabledOutput
(
void
)
-
Get the output status of the calibration signal or tampalarm signal.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OUT2EN LL_RTC_IsEnabledOutput
RTC_CR TAMPOE LL_RTC_IsEnabledOutput
RTC_CR OSEL LL_RTC_IsEnabledOutput
RTC_CR COE LL_RTC_IsEnabledOutput
RTC_CR COSEL LL_RTC_IsEnabledOutput
- Return values :
-
-
0 – output disabled
-
1 – output enabled
-
-
uint32_t
LL_RTC_IsEnabledDetailedOutput
(
const
uint32_t
Output
)
-
Get the output detailed status of the calibration signal or tampalarm signal.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OUT2EN LL_RTC_IsEnabledDetailedOutput
RTC_CR AMPOE LL_RTC_IsEnabledDetailedOutput
RTC_CR OSEL LL_RTC_IsEnabledDetailedOutput
RTC_CR COE LL_RTC_IsEnabledDetailedOutput
RTC_CR COSEL LL_RTC_IsEnabledDetailedOutput
- Parameters :
-
Output – This parameter can be one of the following values:
- Return values :
-
0 – output disabled, 1 output enabled
-
void
LL_RTC_ConfigTampalarm
(
uint32_t
Polarity
,
uint32_t
Type
,
uint32_t
PullUp
)
-
Configure the Output polarity and pull-up.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR POL LL_RTC_ConfigTampalarm
RTC_CR TAMPALRM_TYPE LL_RTC_ConfigTampalarm
RTC_CR TAMPALRM_PU LL_RTC_ConfigTampalarm
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
- Parameters :
-
-
Polarity – This parameter can be one of the following values:
-
Type – This parameter can be one of the following values:
-
PullUp – This parameter can be one of the following values:
-
-
void
LL_RTC_SetHourFormat
(
uint32_t
HourFormat
)
- group RTC_LL_EF_Configuration
-
Functions
-
void
LL_RTC_SetHourFormat
(
uint32_t
HourFormat
)
-
Set Hours format (24 hour/day or AM/PM hour format)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR FMT LL_RTC_SetHourFormat
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
- Parameters :
-
HourFormat – This parameter can be one of the following values:
-
uint32_t
LL_RTC_GetHourFormat
(
void
)
-
Get Hours format (24 hour/day or AM/PM hour format)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR FMT LL_RTC_GetHourFormat
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_SetAlarmOutEvent
(
uint32_t
AlarmOutput
)
-
Select the flag to be routed to RTC_ALARM output.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OSEL LL_RTC_SetAlarmOutEvent
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
- Parameters :
-
AlarmOutput – This parameter can be one of the following values:
-
uint32_t
LL_RTC_GetAlarmOutEvent
(
void
)
-
Get the flag to be routed to RTC_ALARM output.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OSEL LL_RTC_GetAlarmOutEvent
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_SetAlarmOutputType
(
uint32_t
Output
)
-
Set RTC_ALARM output type (ALARM in push-pull or open-drain output)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPALRM_TYPE LL_RTC_SetAlarmOutputType
- Parameters :
-
Output – This parameter can be one of the following values:
-
uint32_t
LL_RTC_GetAlarmOutputType
(
void
)
-
Get RTC_ALARM output type (ALARM in push-pull or open-drain output)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPALRM_TYPE LL_RTC_GetAlarmOutputType
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_EnableInitMode
(
void
)
-
Enable initialization mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR INIT LL_RTC_EnableInitMode
Note
Initialization mode is used to program time and date register (RTC_TR and RTC_DR) and prescaler register (RTC_PRER) Counters are stopped and start counting from the new value when INIT is reset
-
void
LL_RTC_DisableInitMode
(
void
)
-
Disable initialization mode (Free running mode)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR INIT LL_RTC_DisableInitMode
-
void
LL_RTC_SetBinaryMode
(
uint32_t
BinaryMode
)
-
Set Binary mode (Sub Second Register)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR BIN LL_RTC_SetBinaryMode
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
- Parameters :
-
BinaryMode – can be one of the following values:
-
uint32_t
LL_RTC_GetBinaryMode
(
void
)
-
Get Binary mode (Sub Second Register)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR BIN LL_RTC_GetBinaryMode
- Return values :
-
This – parameter can be one of the following values:
-
void
LL_RTC_SetBinMixBCDU
(
uint32_t
BinMixBcdU
)
-
Set Binary Mix mode BCDU.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR BCDU LL_RTC_SetBinMixBCDU
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
- Parameters :
-
BinMixBcdU – can be one of the following values:
-
uint32_t
LL_RTC_GetBinMixBCDU
(
void
)
-
Get Binary Mix mode BCDU.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR BCDU LL_RTC_GetBinMixBCDU
- Return values :
-
This – parameter can be one of the following values:
-
void
LL_RTC_SetConfigBinaryMode
(
uint32_t
BinaryMode
,
uint32_t
BinMixBcdU
)
-
Set Binary mode (Sub Second Register) and Mix mode BCDU.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR BIN LL_RTC_SetConfigBinaryMode
RTC_ICSR BCDU LL_RTC_SetConfigBinaryMode
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
- Parameters :
-
-
BinaryMode – can be one of the following values:
-
BinMixBcdU – can be one of the following values:
-
-
uint32_t
LL_RTC_GetConfigBinaryMode
(
void
)
-
Get Binary mode (Sub Second Register) and Mix mode BCDU.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR BIN LL_RTC_GetConfigBinaryMode
RTC_ICSR BCDU LL_RTC_GetConfigBinaryMode
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
- Return values :
-
A – combination one of the following values:
-
void
LL_RTC_SetOutputPolarity
(
uint32_t
Polarity
)
-
Set Output polarity.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR POL LL_RTC_SetOutputPolarity
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
- Parameters :
-
Polarity – This parameter can be one of the following values:
-
uint32_t
LL_RTC_GetOutputPolarity
(
void
)
-
Get Output polarity.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR POL LL_RTC_GetOutputPolarity
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_EnableBypassShadowReg
(
void
)
-
Enable bypass of the shadow registers.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR BYPSHAD LL_RTC_EnableBypassShadowReg
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
When bypass enable, Calendar values (when reading from RTC_SSR, RTC_TR, and RTC_DR) are taken directly from the calendar counters
Note
If the frequency of the APB clock is less than seven times the frequency of RTCCLK, BYPSHAD must be set to 1
-
void
LL_RTC_DisableBypassShadowReg
(
void
)
-
Disable bypass of the shadow registers.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR BYPSHAD LL_RTC_DisableBypassShadowReg
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
uint32_t
LL_RTC_IsEnabledBypassShadowReg
(
void
)
-
Check if the bypass of the shadow registers is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR BYPSHAD LL_RTC_IsEnabledBypassShadowReg
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_SetHourFormatAndShadowRegBypass
(
uint32_t
HourFormat
,
uint32_t
Bypass
)
-
Set Hours format (24 hour/day or AM/PM hour format) and bypass shadow registers.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR FMT LL_RTC_SetHourFormatAndShadowRegBypass
RTC_CR BYPSHAD LL_RTC_SetHourFormatAndShadowRegBypass
Note
Bits are write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
- Parameters :
-
-
HourFormat – This parameter can be one of the following values:
-
Bypass – This parameter can be one of the following values:
-
-
void
LL_RTC_EnableRefClock
(
void
)
-
Enable RTC_REFIN reference clock detection (50 or 60 Hz)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR REFCKON LL_RTC_EnableRefClock
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
-
void
LL_RTC_DisableRefClock
(
void
)
-
Disable RTC_REFIN reference clock detection (50 or 60 Hz)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR REFCKON LL_RTC_DisableRefClock
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
-
uint32_t
LL_RTC_IsEnabledRefClock
(
void
)
-
Check if reference clock is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR REFCKON LL_RTC_IsEnabledRefClock
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_SetPrescalers
(
uint32_t
AsynchPrescaler
,
uint32_t
SynchPrescaler
)
-
Set the different prescalers factor.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_PRER PREDIV_A LL_RTC_SetPrescalers
RTC_PRER PREDIV_S LL_RTC_SetPrescalers
- Parameters :
-
-
AsynchPrescaler – Value between Min_Data = 0 and Max_Data = 0x7F
-
SynchPrescaler – Value between Min_Data = 0 and Max_Data = 0x7FFF
-
-
uint32_t
LL_RTC_GetPrescalers
(
void
)
-
Get the different prescalers factor.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_PRER PREDIV_A LL_RTC_GetPrescalers
RTC_PRER PREDIV_S LL_RTC_GetPrescalers
- Return values :
-
AsynchPrescaler – Value between Min_Data = 0 and Max_Data = 0x7F and SynchPrescaler Value between Min_Data = 0 and Max_Data = 0x7FFF
-
void
LL_RTC_SetAsynchPrescaler
(
uint32_t
AsynchPrescaler
)
-
Set Asynchronous prescaler factor.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_PRER PREDIV_A LL_RTC_SetAsynchPrescaler
- Parameters :
-
AsynchPrescaler – Value between Min_Data = 0 and Max_Data = 0x7F
-
void
LL_RTC_SetSynchPrescaler
(
uint32_t
SynchPrescaler
)
-
Set Synchronous prescaler factor.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_PRER PREDIV_S LL_RTC_SetSynchPrescaler
- Parameters :
-
SynchPrescaler – Value between Min_Data = 0 and Max_Data = 0x7FFF
-
uint32_t
LL_RTC_GetAsynchPrescaler
(
void
)
-
Get Asynchronous prescaler factor.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_PRER PREDIV_A LL_RTC_GetAsynchPrescaler
- Return values :
-
Value – between Min_Data = 0 and Max_Data = 0x7F
-
uint32_t
LL_RTC_GetSynchPrescaler
(
void
)
-
Get Synchronous prescaler factor.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_PRER PREDIV_S LL_RTC_GetSynchPrescaler
- Return values :
-
Value – between Min_Data = 0 and Max_Data = 0x7FFF
-
void
LL_RTC_EnableWriteProtection
(
void
)
-
Enable the write protection for RTC registers.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_WPR KEY LL_RTC_EnableWriteProtection
-
void
LL_RTC_DisableWriteProtection
(
void
)
-
Disable the write protection for RTC registers.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_WPR KEY LL_RTC_DisableWriteProtection
-
void
LL_RTC_EnableTamperOutput
(
void
)
-
Enable tamper output.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPOE LL_RTC_EnableTamperOutput
Note
When the tamper output is enabled, all external and internal tamper flags are ORed and routed to the TAMPALRM output
-
void
LL_RTC_DisableTamperOutput
(
void
)
-
Disable tamper output.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPOE LL_RTC_DisableTamperOutput
-
uint32_t
LL_RTC_IsEnabledTamperOutput
(
void
)
-
Check if tamper output is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPOE LL_RTC_IsEnabledTamperOutput
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_EnableAlarmPullUp
(
void
)
-
Enable internal pull-up in output mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPALRM_PU LL_RTC_EnableAlarmPullUp
-
void
LL_RTC_DisableAlarmPullUp
(
void
)
-
Disable internal pull-up in output mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPALRM_PU LL_RTC_DisableAlarmPullUp
-
uint32_t
LL_RTC_IsEnabledAlarmPullUp
(
void
)
-
Check if internal pull-up in output mode is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPALRM_PU LL_RTC_IsEnabledAlarmPullUp
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_EnableOutput2
(
void
)
-
Enable RTC_OUT2 output.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OUT2EN LL_RTC_EnableOutput2
Note
RTC_OUT2 mapping depends on both OSEL ( LL_RTC_SetAlarmOutEvent ) and COE ( LL_RTC_CAL_SetOutputFreq ) settings
-
void
LL_RTC_DisableOutput2
(
void
)
-
Disable RTC_OUT2 output.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OUT2EN LL_RTC_DisableOutput2
-
uint32_t
LL_RTC_IsEnabledOutput2
(
void
)
-
Check if RTC_OUT2 output is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OUT2EN LL_RTC_IsEnabledOutput2
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_EnableOutput
(
uint32_t
Output
)
-
Enable the output of the calibration signal or tampalarm signal.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OUT2EN LL_RTC_EnableOutput
RTC_CR TAMPOE LL_RTC_EnableOutput
RTC_CR OSEL LL_RTC_EnableOutput
RTC_CR COE LL_RTC_EnableOutput
RTC_CR COSEL LL_RTC_EnableOutput
- Parameters :
-
Output – This parameter can be one of the following values:
-
void
LL_RTC_DisableOutput
(
void
)
-
Disable the output of the calibration signal or tampalarm signal.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OUT2EN LL_RTC_DisableOutput
RTC_CR TAMPOE LL_RTC_DisableOutput
RTC_CR OSEL LL_RTC_DisableOutput
RTC_CR COE LL_RTC_DisableOutput
RTC_CR COSEL LL_RTC_DisableOutput
-
uint32_t
LL_RTC_IsEnabledOutput
(
void
)
-
Get the output status of the calibration signal or tampalarm signal.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OUT2EN LL_RTC_IsEnabledOutput
RTC_CR TAMPOE LL_RTC_IsEnabledOutput
RTC_CR OSEL LL_RTC_IsEnabledOutput
RTC_CR COE LL_RTC_IsEnabledOutput
RTC_CR COSEL LL_RTC_IsEnabledOutput
- Return values :
-
-
0 – output disabled
-
1 – output enabled
-
-
uint32_t
LL_RTC_IsEnabledDetailedOutput
(
const
uint32_t
Output
)
-
Get the output detailed status of the calibration signal or tampalarm signal.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR OUT2EN LL_RTC_IsEnabledDetailedOutput
RTC_CR AMPOE LL_RTC_IsEnabledDetailedOutput
RTC_CR OSEL LL_RTC_IsEnabledDetailedOutput
RTC_CR COE LL_RTC_IsEnabledDetailedOutput
RTC_CR COSEL LL_RTC_IsEnabledDetailedOutput
- Parameters :
-
Output – This parameter can be one of the following values:
- Return values :
-
0 – output disabled, 1 output enabled
-
void
LL_RTC_ConfigTampalarm
(
uint32_t
Polarity
,
uint32_t
Type
,
uint32_t
PullUp
)
-
Configure the Output polarity and pull-up.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR POL LL_RTC_ConfigTampalarm
RTC_CR TAMPALRM_TYPE LL_RTC_ConfigTampalarm
RTC_CR TAMPALRM_PU LL_RTC_ConfigTampalarm
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
- Parameters :
-
-
Polarity – This parameter can be one of the following values:
-
Type – This parameter can be one of the following values:
-
PullUp – This parameter can be one of the following values:
-
-
void
LL_RTC_SetHourFormat
(
uint32_t
HourFormat
)
Time ¶
- group RTC_LL_EF_Time
-
Functions
-
void
LL_RTC_TIME_SetFormat
(
uint32_t
TimeFormat
)
¶
-
Set time format (AM/24-hour or PM notation)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR PM LL_RTC_TIME_SetFormat
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
- Parameters :
-
TimeFormat – This parameter can be one of the following values:
-
uint32_t
LL_RTC_TIME_GetFormat
(
void
)
¶
-
Get time format (AM/24-hour or PM notation)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR PM LL_RTC_TIME_GetFormat
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
Read either RTC_SSR or RTC_TR locks the values in the higher-order calendar shadow registers until RTC_DR is read ( LL_RTC_READ_REG(DR) )
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_TIME_SetHour
(
uint32_t
Hours
)
¶
-
Set Hours in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR HT LL_RTC_TIME_SetHour
RTC_TR HU LL_RTC_TIME_SetHour
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert hour from binary to BCD format
- Parameters :
-
Hours – Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
uint32_t
LL_RTC_TIME_GetHour
(
void
)
¶
-
Get Hours in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR HT LL_RTC_TIME_GetHour
RTC_TR HU LL_RTC_TIME_GetHour
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
Read either RTC_SSR or RTC_TR locks the values in the higher-order calendar shadow registers until RTC_DR is read ( LL_RTC_READ_REG(DR) )
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert hour from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
void
LL_RTC_TIME_SetMinute
(
uint32_t
Minutes
)
¶
-
Set Minutes in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR MNT LL_RTC_TIME_SetMinute
RTC_TR MNU LL_RTC_TIME_SetMinute
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Minutes from binary to BCD format
- Parameters :
-
Minutes – Value between Min_Data=0x00 and Max_Data=0x59
-
uint32_t
LL_RTC_TIME_GetMinute
(
void
)
¶
-
Get Minutes in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR MNT LL_RTC_TIME_GetMinute
RTC_TR MNU LL_RTC_TIME_GetMinute
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
Read either RTC_SSR or RTC_TR locks the values in the higher-order calendar shadow registers until RTC_DR is read ( LL_RTC_READ_REG(DR) )
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert minute from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x59
-
void
LL_RTC_TIME_SetSecond
(
uint32_t
Seconds
)
¶
-
Set Seconds in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR ST LL_RTC_TIME_SetSecond
RTC_TR SU LL_RTC_TIME_SetSecond
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Seconds from binary to BCD format
- Parameters :
-
Seconds – Value between Min_Data=0x00 and Max_Data=0x59
-
uint32_t
LL_RTC_TIME_GetSecond
(
void
)
¶
-
Get Seconds in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR ST LL_RTC_TIME_GetSecond
RTC_TR SU LL_RTC_TIME_GetSecond
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
Read either RTC_SSR or RTC_TR locks the values in the higher-order calendar shadow registers until RTC_DR is read ( LL_RTC_READ_REG(DR) )
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Seconds from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x59
-
void
LL_RTC_TIME_Config
(
uint32_t
Format12_24
,
uint32_t
Hours
,
uint32_t
Minutes
,
uint32_t
Seconds
)
¶
-
Set time (hour, minute and second) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR PM LL_RTC_TIME_Config
RTC_TR HT LL_RTC_TIME_Config
RTC_TR HU LL_RTC_TIME_Config
RTC_TR MNT LL_RTC_TIME_Config
RTC_TR MNU LL_RTC_TIME_Config
RTC_TR ST LL_RTC_TIME_Config
RTC_TR SU LL_RTC_TIME_Config
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
Note
TimeFormat and Hours must preferably follow the same format
- Parameters :
-
-
Format12_24 – This parameter can be one of the following values:
-
Hours – Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
Minutes – Value between Min_Data=0x00 and Max_Data=0x59
-
Seconds – Value between Min_Data=0x00 and Max_Data=0x59
-
-
uint32_t
LL_RTC_TIME_Get
(
void
)
¶
-
Get time (hour, minute and second) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR HT LL_RTC_TIME_Get
RTC_TR HU LL_RTC_TIME_Get
RTC_TR MNT LL_RTC_TIME_Get
RTC_TR MNU LL_RTC_TIME_Get
RTC_TR ST LL_RTC_TIME_Get
RTC_TR SU LL_RTC_TIME_Get
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
Read either RTC_SSR or RTC_TR locks the values in the higher-order calendar shadow registers until RTC_DR is read ( LL_RTC_READ_REG(DR) )
Note
helper macros LL_RTC_GET_HOUR, LL_RTC_GET_MINUTE and LL_RTC_GET_SECOND are available to get independently each parameter
- Return values :
-
Combination – of hours, minutes and seconds (Format: 0x00HHMMSS)
-
uint32_t
LL_RTC_TIME_GetTimeAndFormat
(
void
)
¶
-
Get time (hour, minute and second) in BCD format and time format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR PM LL_RTC_TIME_GetTimeAndFormat
RTC_TR HT LL_RTC_TIME_GetTimeAndFormat
RTC_TR HU LL_RTC_TIME_GetTimeAndFormat
RTC_TR MNT LL_RTC_TIME_GetTimeAndFormat
RTC_TR MNU LL_RTC_TIME_GetTimeAndFormat
RTC_TR ST LL_RTC_TIME_GetTimeAndFormat
RTC_TR SU LL_RTC_TIME_GetTimeAndFormat
Note
helper macros LL_RTC_GET_FORMAT LL_RTC_GET_HOUR, LL_RTC_GET_MINUTE and LL_RTC_GET_SECOND are available to get independently each parameter
- Return values :
-
Combination – of format, hours, minutes and seconds (Format: 0x0FHHMMSS)
-
void
LL_RTC_TIME_EnableDayLightStore
(
void
)
¶
-
Memorize whether the daylight saving time change has been performed.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR BKP LL_RTC_TIME_EnableDayLightStore
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_TIME_DisableDayLightStore
(
void
)
¶
-
Disable memorization whether the daylight saving time change has been performed.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR BKP LL_RTC_TIME_DisableDayLightStore
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
uint32_t
LL_RTC_TIME_IsEnabledDayLightStore
(
void
)
¶
-
Check if RTC Day Light Saving stored operation is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR BKP LL_RTC_TIME_IsEnabledDayLightStore
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_TIME_DecHour
(
void
)
¶
-
Subtract 1 hour (winter time change)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR SUB1H LL_RTC_TIME_DecHour
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_TIME_IncHour
(
void
)
¶
-
Add 1 hour (summer time change)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ADD1H LL_RTC_TIME_IncHour
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
uint32_t
LL_RTC_TIME_GetSubSecond
(
void
)
¶
-
Get Sub second value in the synchronous prescaler counter.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SSR SS LL_RTC_TIME_GetSubSecond
Note
You can use both SubSeconds value and SecondFraction (PREDIV_S through LL_RTC_GetSynchPrescaler function) terms returned to convert Calendar SubSeconds value in second fraction ratio with time unit following generic formula: ==> Seconds fraction ratio * time_unit= [(SecondFraction-SubSeconds)/(SecondFraction+1)] * time_unit This conversion can be performed only if no shift operation is pending (ie. SHFP=0) when PREDIV_S >= SS
- Return values :
-
If – binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF
-
void
LL_RTC_TIME_Synchronize
(
uint32_t
ShiftSecond
,
uint32_t
Fraction
)
¶
-
Synchronize to a remote clock with a high degree of precision.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SHIFTR ADD1S LL_RTC_TIME_Synchronize
RTC_SHIFTR SUBFS LL_RTC_TIME_Synchronize
Note
This operation effectively subtracts from (delays) or advance the clock of a fraction of a second
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
When REFCKON is set, firmware must not write to Shift control register
- Parameters :
-
-
ShiftSecond – This parameter can be one of the following values:
-
Fraction – Number of Seconds Fractions (any value from 0 to 0x7FFF)
-
-
void
LL_RTC_TIME_SetFormat
(
uint32_t
TimeFormat
)
¶
- group RTC_LL_EF_Time
-
Functions
-
void
LL_RTC_TIME_SetFormat
(
uint32_t
TimeFormat
)
-
Set time format (AM/24-hour or PM notation)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR PM LL_RTC_TIME_SetFormat
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
- Parameters :
-
TimeFormat – This parameter can be one of the following values:
-
uint32_t
LL_RTC_TIME_GetFormat
(
void
)
-
Get time format (AM/24-hour or PM notation)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR PM LL_RTC_TIME_GetFormat
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
Read either RTC_SSR or RTC_TR locks the values in the higher-order calendar shadow registers until RTC_DR is read ( LL_RTC_READ_REG(DR) )
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_TIME_SetHour
(
uint32_t
Hours
)
-
Set Hours in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR HT LL_RTC_TIME_SetHour
RTC_TR HU LL_RTC_TIME_SetHour
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert hour from binary to BCD format
- Parameters :
-
Hours – Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
uint32_t
LL_RTC_TIME_GetHour
(
void
)
-
Get Hours in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR HT LL_RTC_TIME_GetHour
RTC_TR HU LL_RTC_TIME_GetHour
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
Read either RTC_SSR or RTC_TR locks the values in the higher-order calendar shadow registers until RTC_DR is read ( LL_RTC_READ_REG(DR) )
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert hour from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
void
LL_RTC_TIME_SetMinute
(
uint32_t
Minutes
)
-
Set Minutes in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR MNT LL_RTC_TIME_SetMinute
RTC_TR MNU LL_RTC_TIME_SetMinute
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Minutes from binary to BCD format
- Parameters :
-
Minutes – Value between Min_Data=0x00 and Max_Data=0x59
-
uint32_t
LL_RTC_TIME_GetMinute
(
void
)
-
Get Minutes in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR MNT LL_RTC_TIME_GetMinute
RTC_TR MNU LL_RTC_TIME_GetMinute
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
Read either RTC_SSR or RTC_TR locks the values in the higher-order calendar shadow registers until RTC_DR is read ( LL_RTC_READ_REG(DR) )
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert minute from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x59
-
void
LL_RTC_TIME_SetSecond
(
uint32_t
Seconds
)
-
Set Seconds in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR ST LL_RTC_TIME_SetSecond
RTC_TR SU LL_RTC_TIME_SetSecond
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Seconds from binary to BCD format
- Parameters :
-
Seconds – Value between Min_Data=0x00 and Max_Data=0x59
-
uint32_t
LL_RTC_TIME_GetSecond
(
void
)
-
Get Seconds in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR ST LL_RTC_TIME_GetSecond
RTC_TR SU LL_RTC_TIME_GetSecond
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
Read either RTC_SSR or RTC_TR locks the values in the higher-order calendar shadow registers until RTC_DR is read ( LL_RTC_READ_REG(DR) )
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Seconds from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x59
-
void
LL_RTC_TIME_Config
(
uint32_t
Format12_24
,
uint32_t
Hours
,
uint32_t
Minutes
,
uint32_t
Seconds
)
-
Set time (hour, minute and second) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR PM LL_RTC_TIME_Config
RTC_TR HT LL_RTC_TIME_Config
RTC_TR HU LL_RTC_TIME_Config
RTC_TR MNT LL_RTC_TIME_Config
RTC_TR MNU LL_RTC_TIME_Config
RTC_TR ST LL_RTC_TIME_Config
RTC_TR SU LL_RTC_TIME_Config
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
Note
TimeFormat and Hours must preferably follow the same format
- Parameters :
-
-
Format12_24 – This parameter can be one of the following values:
-
Hours – Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
Minutes – Value between Min_Data=0x00 and Max_Data=0x59
-
Seconds – Value between Min_Data=0x00 and Max_Data=0x59
-
-
uint32_t
LL_RTC_TIME_Get
(
void
)
-
Get time (hour, minute and second) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR HT LL_RTC_TIME_Get
RTC_TR HU LL_RTC_TIME_Get
RTC_TR MNT LL_RTC_TIME_Get
RTC_TR MNU LL_RTC_TIME_Get
RTC_TR ST LL_RTC_TIME_Get
RTC_TR SU LL_RTC_TIME_Get
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
Read either RTC_SSR or RTC_TR locks the values in the higher-order calendar shadow registers until RTC_DR is read ( LL_RTC_READ_REG(DR) )
Note
helper macros LL_RTC_GET_HOUR, LL_RTC_GET_MINUTE and LL_RTC_GET_SECOND are available to get independently each parameter
- Return values :
-
Combination – of hours, minutes and seconds (Format: 0x00HHMMSS)
-
uint32_t
LL_RTC_TIME_GetTimeAndFormat
(
void
)
-
Get time (hour, minute and second) in BCD format and time format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR PM LL_RTC_TIME_GetTimeAndFormat
RTC_TR HT LL_RTC_TIME_GetTimeAndFormat
RTC_TR HU LL_RTC_TIME_GetTimeAndFormat
RTC_TR MNT LL_RTC_TIME_GetTimeAndFormat
RTC_TR MNU LL_RTC_TIME_GetTimeAndFormat
RTC_TR ST LL_RTC_TIME_GetTimeAndFormat
RTC_TR SU LL_RTC_TIME_GetTimeAndFormat
Note
helper macros LL_RTC_GET_FORMAT LL_RTC_GET_HOUR, LL_RTC_GET_MINUTE and LL_RTC_GET_SECOND are available to get independently each parameter
- Return values :
-
Combination – of format, hours, minutes and seconds (Format: 0x0FHHMMSS)
-
void
LL_RTC_TIME_EnableDayLightStore
(
void
)
-
Memorize whether the daylight saving time change has been performed.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR BKP LL_RTC_TIME_EnableDayLightStore
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_TIME_DisableDayLightStore
(
void
)
-
Disable memorization whether the daylight saving time change has been performed.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR BKP LL_RTC_TIME_DisableDayLightStore
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
uint32_t
LL_RTC_TIME_IsEnabledDayLightStore
(
void
)
-
Check if RTC Day Light Saving stored operation is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR BKP LL_RTC_TIME_IsEnabledDayLightStore
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_TIME_DecHour
(
void
)
-
Subtract 1 hour (winter time change)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR SUB1H LL_RTC_TIME_DecHour
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_TIME_IncHour
(
void
)
-
Add 1 hour (summer time change)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ADD1H LL_RTC_TIME_IncHour
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
uint32_t
LL_RTC_TIME_GetSubSecond
(
void
)
-
Get Sub second value in the synchronous prescaler counter.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SSR SS LL_RTC_TIME_GetSubSecond
Note
You can use both SubSeconds value and SecondFraction (PREDIV_S through LL_RTC_GetSynchPrescaler function) terms returned to convert Calendar SubSeconds value in second fraction ratio with time unit following generic formula: ==> Seconds fraction ratio * time_unit= [(SecondFraction-SubSeconds)/(SecondFraction+1)] * time_unit This conversion can be performed only if no shift operation is pending (ie. SHFP=0) when PREDIV_S >= SS
- Return values :
-
If – binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF
-
void
LL_RTC_TIME_Synchronize
(
uint32_t
ShiftSecond
,
uint32_t
Fraction
)
-
Synchronize to a remote clock with a high degree of precision.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SHIFTR ADD1S LL_RTC_TIME_Synchronize
RTC_SHIFTR SUBFS LL_RTC_TIME_Synchronize
Note
This operation effectively subtracts from (delays) or advance the clock of a fraction of a second
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
When REFCKON is set, firmware must not write to Shift control register
- Parameters :
-
-
ShiftSecond – This parameter can be one of the following values:
-
Fraction – Number of Seconds Fractions (any value from 0 to 0x7FFF)
-
-
void
LL_RTC_TIME_SetFormat
(
uint32_t
TimeFormat
)
- group RTC_LL_EF_Time
-
Functions
-
void
LL_RTC_TIME_SetFormat
(
uint32_t
TimeFormat
)
-
Set time format (AM/24-hour or PM notation)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR PM LL_RTC_TIME_SetFormat
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
- Parameters :
-
TimeFormat – This parameter can be one of the following values:
-
uint32_t
LL_RTC_TIME_GetFormat
(
void
)
-
Get time format (AM/24-hour or PM notation)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR PM LL_RTC_TIME_GetFormat
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
Read either RTC_SSR or RTC_TR locks the values in the higher-order calendar shadow registers until RTC_DR is read ( LL_RTC_READ_REG(DR) )
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_TIME_SetHour
(
uint32_t
Hours
)
-
Set Hours in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR HT LL_RTC_TIME_SetHour
RTC_TR HU LL_RTC_TIME_SetHour
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert hour from binary to BCD format
- Parameters :
-
Hours – Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
uint32_t
LL_RTC_TIME_GetHour
(
void
)
-
Get Hours in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR HT LL_RTC_TIME_GetHour
RTC_TR HU LL_RTC_TIME_GetHour
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
Read either RTC_SSR or RTC_TR locks the values in the higher-order calendar shadow registers until RTC_DR is read ( LL_RTC_READ_REG(DR) )
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert hour from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
void
LL_RTC_TIME_SetMinute
(
uint32_t
Minutes
)
-
Set Minutes in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR MNT LL_RTC_TIME_SetMinute
RTC_TR MNU LL_RTC_TIME_SetMinute
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Minutes from binary to BCD format
- Parameters :
-
Minutes – Value between Min_Data=0x00 and Max_Data=0x59
-
uint32_t
LL_RTC_TIME_GetMinute
(
void
)
-
Get Minutes in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR MNT LL_RTC_TIME_GetMinute
RTC_TR MNU LL_RTC_TIME_GetMinute
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
Read either RTC_SSR or RTC_TR locks the values in the higher-order calendar shadow registers until RTC_DR is read ( LL_RTC_READ_REG(DR) )
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert minute from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x59
-
void
LL_RTC_TIME_SetSecond
(
uint32_t
Seconds
)
-
Set Seconds in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR ST LL_RTC_TIME_SetSecond
RTC_TR SU LL_RTC_TIME_SetSecond
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Seconds from binary to BCD format
- Parameters :
-
Seconds – Value between Min_Data=0x00 and Max_Data=0x59
-
uint32_t
LL_RTC_TIME_GetSecond
(
void
)
-
Get Seconds in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR ST LL_RTC_TIME_GetSecond
RTC_TR SU LL_RTC_TIME_GetSecond
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
Read either RTC_SSR or RTC_TR locks the values in the higher-order calendar shadow registers until RTC_DR is read ( LL_RTC_READ_REG(DR) )
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Seconds from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x59
-
void
LL_RTC_TIME_Config
(
uint32_t
Format12_24
,
uint32_t
Hours
,
uint32_t
Minutes
,
uint32_t
Seconds
)
-
Set time (hour, minute and second) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR PM LL_RTC_TIME_Config
RTC_TR HT LL_RTC_TIME_Config
RTC_TR HU LL_RTC_TIME_Config
RTC_TR MNT LL_RTC_TIME_Config
RTC_TR MNU LL_RTC_TIME_Config
RTC_TR ST LL_RTC_TIME_Config
RTC_TR SU LL_RTC_TIME_Config
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
It can be written in initialization mode only ( LL_RTC_EnableInitMode function)
Note
TimeFormat and Hours must preferably follow the same format
- Parameters :
-
-
Format12_24 – This parameter can be one of the following values:
-
Hours – Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
Minutes – Value between Min_Data=0x00 and Max_Data=0x59
-
Seconds – Value between Min_Data=0x00 and Max_Data=0x59
-
-
uint32_t
LL_RTC_TIME_Get
(
void
)
-
Get time (hour, minute and second) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR HT LL_RTC_TIME_Get
RTC_TR HU LL_RTC_TIME_Get
RTC_TR MNT LL_RTC_TIME_Get
RTC_TR MNU LL_RTC_TIME_Get
RTC_TR ST LL_RTC_TIME_Get
RTC_TR SU LL_RTC_TIME_Get
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
Read either RTC_SSR or RTC_TR locks the values in the higher-order calendar shadow registers until RTC_DR is read ( LL_RTC_READ_REG(DR) )
Note
helper macros LL_RTC_GET_HOUR, LL_RTC_GET_MINUTE and LL_RTC_GET_SECOND are available to get independently each parameter
- Return values :
-
Combination – of hours, minutes and seconds (Format: 0x00HHMMSS)
-
uint32_t
LL_RTC_TIME_GetTimeAndFormat
(
void
)
-
Get time (hour, minute and second) in BCD format and time format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TR PM LL_RTC_TIME_GetTimeAndFormat
RTC_TR HT LL_RTC_TIME_GetTimeAndFormat
RTC_TR HU LL_RTC_TIME_GetTimeAndFormat
RTC_TR MNT LL_RTC_TIME_GetTimeAndFormat
RTC_TR MNU LL_RTC_TIME_GetTimeAndFormat
RTC_TR ST LL_RTC_TIME_GetTimeAndFormat
RTC_TR SU LL_RTC_TIME_GetTimeAndFormat
Note
helper macros LL_RTC_GET_FORMAT LL_RTC_GET_HOUR, LL_RTC_GET_MINUTE and LL_RTC_GET_SECOND are available to get independently each parameter
- Return values :
-
Combination – of format, hours, minutes and seconds (Format: 0x0FHHMMSS)
-
void
LL_RTC_TIME_EnableDayLightStore
(
void
)
-
Memorize whether the daylight saving time change has been performed.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR BKP LL_RTC_TIME_EnableDayLightStore
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_TIME_DisableDayLightStore
(
void
)
-
Disable memorization whether the daylight saving time change has been performed.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR BKP LL_RTC_TIME_DisableDayLightStore
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
uint32_t
LL_RTC_TIME_IsEnabledDayLightStore
(
void
)
-
Check if RTC Day Light Saving stored operation is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR BKP LL_RTC_TIME_IsEnabledDayLightStore
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_TIME_DecHour
(
void
)
-
Subtract 1 hour (winter time change)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR SUB1H LL_RTC_TIME_DecHour
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_TIME_IncHour
(
void
)
-
Add 1 hour (summer time change)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ADD1H LL_RTC_TIME_IncHour
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
uint32_t
LL_RTC_TIME_GetSubSecond
(
void
)
-
Get Sub second value in the synchronous prescaler counter.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SSR SS LL_RTC_TIME_GetSubSecond
Note
You can use both SubSeconds value and SecondFraction (PREDIV_S through LL_RTC_GetSynchPrescaler function) terms returned to convert Calendar SubSeconds value in second fraction ratio with time unit following generic formula: ==> Seconds fraction ratio * time_unit= [(SecondFraction-SubSeconds)/(SecondFraction+1)] * time_unit This conversion can be performed only if no shift operation is pending (ie. SHFP=0) when PREDIV_S >= SS
- Return values :
-
If – binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF
-
void
LL_RTC_TIME_Synchronize
(
uint32_t
ShiftSecond
,
uint32_t
Fraction
)
-
Synchronize to a remote clock with a high degree of precision.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SHIFTR ADD1S LL_RTC_TIME_Synchronize
RTC_SHIFTR SUBFS LL_RTC_TIME_Synchronize
Note
This operation effectively subtracts from (delays) or advance the clock of a fraction of a second
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
When REFCKON is set, firmware must not write to Shift control register
- Parameters :
-
-
ShiftSecond – This parameter can be one of the following values:
-
Fraction – Number of Seconds Fractions (any value from 0 to 0x7FFF)
-
-
void
LL_RTC_TIME_SetFormat
(
uint32_t
TimeFormat
)
Date ¶
- group RTC_LL_EF_Date
-
Functions
-
void
LL_RTC_DATE_SetYear
(
uint32_t
Year
)
¶
-
Set Year in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR YT LL_RTC_DATE_SetYear
RTC_DR YU LL_RTC_DATE_SetYear
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Year from binary to BCD format
- Parameters :
-
Year – Value between Min_Data=0x00 and Max_Data=0x99
-
uint32_t
LL_RTC_DATE_GetYear
(
void
)
¶
-
Get Year in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR YT LL_RTC_DATE_GetYear
RTC_DR YU LL_RTC_DATE_GetYear
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Year from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x99
-
void
LL_RTC_DATE_SetWeekDay
(
uint32_t
WeekDay
)
¶
-
Set Week day.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR WDU LL_RTC_DATE_SetWeekDay
- Parameters :
-
WeekDay – This parameter can be one of the following values:
-
uint32_t
LL_RTC_DATE_GetWeekDay
(
void
)
¶
-
Get Week day.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR WDU LL_RTC_DATE_GetWeekDay
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_DATE_SetMonth
(
uint32_t
Month
)
¶
-
Set Month in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR MT LL_RTC_DATE_SetMonth
RTC_DR MU LL_RTC_DATE_SetMonth
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Month from binary to BCD format
- Parameters :
-
Month – This parameter can be one of the following values:
-
uint32_t
LL_RTC_DATE_GetMonth
(
void
)
¶
-
Get Month in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR MT LL_RTC_DATE_GetMonth
RTC_DR MU LL_RTC_DATE_GetMonth
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Month from BCD to Binary format
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_DATE_SetDay
(
uint32_t
Day
)
¶
-
Set Day in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR DT LL_RTC_DATE_SetDay
RTC_DR DU LL_RTC_DATE_SetDay
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Day from binary to BCD format
- Parameters :
-
Day – Value between Min_Data=0x01 and Max_Data=0x31
-
uint32_t
LL_RTC_DATE_GetDay
(
void
)
¶
-
Get Day in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR DT LL_RTC_DATE_GetDay
RTC_DR DU LL_RTC_DATE_GetDay
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Day from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x01 and Max_Data=0x31
-
void
LL_RTC_DATE_Config
(
uint32_t
WeekDay
,
uint32_t
Day
,
uint32_t
Month
,
uint32_t
Year
)
¶
-
Set date (WeekDay, Day, Month and Year) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR WDU LL_RTC_DATE_Config
RTC_DR MT LL_RTC_DATE_Config
RTC_DR MU LL_RTC_DATE_Config
RTC_DR DT LL_RTC_DATE_Config
RTC_DR DU LL_RTC_DATE_Config
RTC_DR YT LL_RTC_DATE_Config
RTC_DR YU LL_RTC_DATE_Config
- Parameters :
-
-
WeekDay – This parameter can be one of the following values:
-
Day – Value between Min_Data=0x01 and Max_Data=0x31
-
Month – This parameter can be one of the following values:
-
Year – Value between Min_Data=0x00 and Max_Data=0x99
-
-
uint32_t
LL_RTC_DATE_Get
(
void
)
¶
-
Get date (WeekDay, Day, Month and Year) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR WDU LL_RTC_DATE_Get
RTC_DR MT LL_RTC_DATE_Get
RTC_DR MU LL_RTC_DATE_Get
RTC_DR DT LL_RTC_DATE_Get
RTC_DR DU LL_RTC_DATE_Get
RTC_DR YT LL_RTC_DATE_Get
RTC_DR YU LL_RTC_DATE_Get
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
helper macros LL_RTC_GET_WEEKDAY, LL_RTC_GET_YEAR, LL_RTC_GET_MONTH, and LL_RTC_GET_DAY are available to get independently each parameter
- Return values :
-
Combination – of WeekDay, Day, Month and Year (Format: 0xWWDDMMYY)
-
void
LL_RTC_DATE_SetYear
(
uint32_t
Year
)
¶
- group RTC_LL_EF_Date
-
Functions
-
void
LL_RTC_DATE_SetYear
(
uint32_t
Year
)
-
Set Year in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR YT LL_RTC_DATE_SetYear
RTC_DR YU LL_RTC_DATE_SetYear
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Year from binary to BCD format
- Parameters :
-
Year – Value between Min_Data=0x00 and Max_Data=0x99
-
uint32_t
LL_RTC_DATE_GetYear
(
void
)
-
Get Year in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR YT LL_RTC_DATE_GetYear
RTC_DR YU LL_RTC_DATE_GetYear
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Year from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x99
-
void
LL_RTC_DATE_SetWeekDay
(
uint32_t
WeekDay
)
-
Set Week day.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR WDU LL_RTC_DATE_SetWeekDay
- Parameters :
-
WeekDay – This parameter can be one of the following values:
-
uint32_t
LL_RTC_DATE_GetWeekDay
(
void
)
-
Get Week day.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR WDU LL_RTC_DATE_GetWeekDay
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_DATE_SetMonth
(
uint32_t
Month
)
-
Set Month in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR MT LL_RTC_DATE_SetMonth
RTC_DR MU LL_RTC_DATE_SetMonth
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Month from binary to BCD format
- Parameters :
-
Month – This parameter can be one of the following values:
-
uint32_t
LL_RTC_DATE_GetMonth
(
void
)
-
Get Month in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR MT LL_RTC_DATE_GetMonth
RTC_DR MU LL_RTC_DATE_GetMonth
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Month from BCD to Binary format
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_DATE_SetDay
(
uint32_t
Day
)
-
Set Day in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR DT LL_RTC_DATE_SetDay
RTC_DR DU LL_RTC_DATE_SetDay
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Day from binary to BCD format
- Parameters :
-
Day – Value between Min_Data=0x01 and Max_Data=0x31
-
uint32_t
LL_RTC_DATE_GetDay
(
void
)
-
Get Day in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR DT LL_RTC_DATE_GetDay
RTC_DR DU LL_RTC_DATE_GetDay
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Day from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x01 and Max_Data=0x31
-
void
LL_RTC_DATE_Config
(
uint32_t
WeekDay
,
uint32_t
Day
,
uint32_t
Month
,
uint32_t
Year
)
-
Set date (WeekDay, Day, Month and Year) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR WDU LL_RTC_DATE_Config
RTC_DR MT LL_RTC_DATE_Config
RTC_DR MU LL_RTC_DATE_Config
RTC_DR DT LL_RTC_DATE_Config
RTC_DR DU LL_RTC_DATE_Config
RTC_DR YT LL_RTC_DATE_Config
RTC_DR YU LL_RTC_DATE_Config
- Parameters :
-
-
WeekDay – This parameter can be one of the following values:
-
Day – Value between Min_Data=0x01 and Max_Data=0x31
-
Month – This parameter can be one of the following values:
-
Year – Value between Min_Data=0x00 and Max_Data=0x99
-
-
uint32_t
LL_RTC_DATE_Get
(
void
)
-
Get date (WeekDay, Day, Month and Year) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR WDU LL_RTC_DATE_Get
RTC_DR MT LL_RTC_DATE_Get
RTC_DR MU LL_RTC_DATE_Get
RTC_DR DT LL_RTC_DATE_Get
RTC_DR DU LL_RTC_DATE_Get
RTC_DR YT LL_RTC_DATE_Get
RTC_DR YU LL_RTC_DATE_Get
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
helper macros LL_RTC_GET_WEEKDAY, LL_RTC_GET_YEAR, LL_RTC_GET_MONTH, and LL_RTC_GET_DAY are available to get independently each parameter
- Return values :
-
Combination – of WeekDay, Day, Month and Year (Format: 0xWWDDMMYY)
-
void
LL_RTC_DATE_SetYear
(
uint32_t
Year
)
- group RTC_LL_EF_Date
-
Functions
-
void
LL_RTC_DATE_SetYear
(
uint32_t
Year
)
-
Set Year in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR YT LL_RTC_DATE_SetYear
RTC_DR YU LL_RTC_DATE_SetYear
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Year from binary to BCD format
- Parameters :
-
Year – Value between Min_Data=0x00 and Max_Data=0x99
-
uint32_t
LL_RTC_DATE_GetYear
(
void
)
-
Get Year in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR YT LL_RTC_DATE_GetYear
RTC_DR YU LL_RTC_DATE_GetYear
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Year from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x99
-
void
LL_RTC_DATE_SetWeekDay
(
uint32_t
WeekDay
)
-
Set Week day.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR WDU LL_RTC_DATE_SetWeekDay
- Parameters :
-
WeekDay – This parameter can be one of the following values:
-
uint32_t
LL_RTC_DATE_GetWeekDay
(
void
)
-
Get Week day.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR WDU LL_RTC_DATE_GetWeekDay
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_DATE_SetMonth
(
uint32_t
Month
)
-
Set Month in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR MT LL_RTC_DATE_SetMonth
RTC_DR MU LL_RTC_DATE_SetMonth
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Month from binary to BCD format
- Parameters :
-
Month – This parameter can be one of the following values:
-
uint32_t
LL_RTC_DATE_GetMonth
(
void
)
-
Get Month in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR MT LL_RTC_DATE_GetMonth
RTC_DR MU LL_RTC_DATE_GetMonth
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Month from BCD to Binary format
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_DATE_SetDay
(
uint32_t
Day
)
-
Set Day in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR DT LL_RTC_DATE_SetDay
RTC_DR DU LL_RTC_DATE_SetDay
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Day from binary to BCD format
- Parameters :
-
Day – Value between Min_Data=0x01 and Max_Data=0x31
-
uint32_t
LL_RTC_DATE_GetDay
(
void
)
-
Get Day in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR DT LL_RTC_DATE_GetDay
RTC_DR DU LL_RTC_DATE_GetDay
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Day from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x01 and Max_Data=0x31
-
void
LL_RTC_DATE_Config
(
uint32_t
WeekDay
,
uint32_t
Day
,
uint32_t
Month
,
uint32_t
Year
)
-
Set date (WeekDay, Day, Month and Year) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR WDU LL_RTC_DATE_Config
RTC_DR MT LL_RTC_DATE_Config
RTC_DR MU LL_RTC_DATE_Config
RTC_DR DT LL_RTC_DATE_Config
RTC_DR DU LL_RTC_DATE_Config
RTC_DR YT LL_RTC_DATE_Config
RTC_DR YU LL_RTC_DATE_Config
- Parameters :
-
-
WeekDay – This parameter can be one of the following values:
-
Day – Value between Min_Data=0x01 and Max_Data=0x31
-
Month – This parameter can be one of the following values:
-
Year – Value between Min_Data=0x00 and Max_Data=0x99
-
-
uint32_t
LL_RTC_DATE_Get
(
void
)
-
Get date (WeekDay, Day, Month and Year) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_DR WDU LL_RTC_DATE_Get
RTC_DR MT LL_RTC_DATE_Get
RTC_DR MU LL_RTC_DATE_Get
RTC_DR DT LL_RTC_DATE_Get
RTC_DR DU LL_RTC_DATE_Get
RTC_DR YT LL_RTC_DATE_Get
RTC_DR YU LL_RTC_DATE_Get
Note
if RTC shadow registers are not bypassed (BYPSHAD=0), need to check if RSF flag is set before reading this bit
Note
helper macros LL_RTC_GET_WEEKDAY, LL_RTC_GET_YEAR, LL_RTC_GET_MONTH, and LL_RTC_GET_DAY are available to get independently each parameter
- Return values :
-
Combination – of WeekDay, Day, Month and Year (Format: 0xWWDDMMYY)
-
void
LL_RTC_DATE_SetYear
(
uint32_t
Year
)
ALARMA ALARMB ¶
- group RTC_LL_EF_ALARM
-
Functions
-
void
LL_RTC_ALM_SetBinAutoClr
(
uint32_t
Alarm
,
uint32_t
BinaryAutoClr
)
¶
-
Set alarm A or B Binary mode auto clear.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR SSCLR LL_RTC_ALM_SetBinAutoClr
RTC_ALRMASSR SSCLR LL_RTC_ALM_SetBinAutoClr
Note
This register can be written only when ALRAE or ALRBE is reset in RTC_CR register, or in initialization mode
Note
SSCLR must be kept to 0 when BCD or mixed mode is used (BIN = 00, 10 or 11).
- Parameters :
-
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
BinaryAutoClr – This parameter can be one of the following values:
-
-
uint32_t
LL_RTC_ALM_GetBinAutoClr
(
const
uint32_t
Alarm
)
¶
-
Get alarm A or B Binary mode auto clear.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR SSCLR LL_RTC_ALM_GetBinAutoClr
RTC_ALRMASSR SSCLR LL_RTC_ALM_GetBinAutoClr
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
- Return values :
-
Returned – value can be can be one of the following values:
-
void
LL_RTC_ALM_SetFlagAutoClr
(
uint32_t
Alarm
,
uint32_t
AutoClr
)
¶
-
Set alarm A or B flag automatic clear.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBFCLR LL_RTC_ALM_SetFlagAutoClr
RTC_CR ALRAFCLR LL_RTC_ALM_SetFlagAutoClr
Note
This register can be written only when ALRAE or ALRBE is reset in RTC_CR register, or in initialization mode
- Parameters :
-
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
AutoClr – This parameter can be one of the following values:
-
-
uint32_t
LL_RTC_ALM_GetFlagAutoClr
(
const
uint32_t
Alarm
)
¶
-
Get alarm A or B flag automatic clear.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBFCLR LL_RTC_ALM_GetFlagAutoClr
RTC_CR ALRAFCLR LL_RTC_ALM_GetFlagAutoClr
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
- Return values :
-
Returned – value can be can be one of the following values:
-
void
LL_RTC_ALM_SetConfigDateTime
(
uint32_t
Alarm
,
uint32_t
Mask
,
uint32_t
DayWeekDaySelection
,
uint32_t
Day
,
uint32_t
Format12_24
,
uint32_t
Hours
,
uint32_t
Minutes
,
uint32_t
Seconds
)
¶
-
Set alarm A or B Time (hour, minute and second) in BCD format, time format, Day (Week day or day), Weekday or day selection and Masks.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR PM LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR HT LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR HU LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR MNT LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR MNU LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR ST LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR SU LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR MSK4 LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR MSK3 LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR MSK2 LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR MSK1 LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR WDSEL LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR DT LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR DU LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR PM LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR HT LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR HU LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR MNT LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR MNU LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR ST LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR SU LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR MSK4 LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR MSK3 LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR MSK2 LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR MSK1 LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR WDSEL LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR DT LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR DU LL_RTC_ALM_SetConfigDateTime
Note
This register can be written only when ALRAE or ALRBE is reset in RTC_CR register, or in initialization mode
- Parameters :
-
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
Mask – This parameter can be a combination of the following values:
-
DayWeekDaySelection – This parameter can be one of the following values:
-
Day – Value between Min_Data=0x01 and Max_Data=0x31 if the week day is not selected if week day is selected can be one of the following values:
-
Format12_24 – This parameter can be one of the following values:
-
Hours – Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
Minutes – Value between Min_Data=0x00 and Max_Data=0x59
-
Seconds – Value between Min_Data=0x00 and Max_Data=0x59
-
-
uint32_t
LL_RTC_ALM_GetConfigDateTime
(
const
uint32_t
Alarm
)
¶
-
Get alarm A or B Time (hour, minute and second) in BCD format, time format, Day (Week day or day), Weekday or day selection and Masks.
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
- Return values :
-
Content – of the RTC_ALRMAR or RTC_ALRMBR register
-
void
LL_RTC_ALM_SetConfigSubSecond
(
uint32_t
Alarm
,
uint32_t
Mask
,
uint32_t
Subsecond
)
¶
-
Set alarm A or B sub seconds mask and value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR MASKSS LL_RTC_ALM_SetConfigSubSecond
RTC_ALRMBSSR SS LL_RTC_ALM_SetConfigSubSecond
RTC_ALRMASSR MASKSS LL_RTC_ALM_SetConfigSubSecond
RTC_ALRMASSR SS LL_RTC_ALM_SetConfigSubSecond
Note
This register can be written only when ALRAE or ALRBE is reset in RTC_CR register, or in initialization mode
- Parameters :
-
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
Mask – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0xF else Value between Min_Data=0x0 and Max_Data=0x3F
-
Subsecond – Value between Min_Data=0x00 and Max_Data=0x7FFF
-
-
uint32_t
LL_RTC_ALM_GetConfigSubSecond
(
const
uint32_t
Alarm
)
¶
-
Get alarm A or B sub seconds mask and value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR MASKSS LL_RTC_ALM_GetConfigSubSecond
RTC_ALRMASSR SS LL_RTC_ALM_GetConfigSubSecond
RTC_ALRMBSSR MASKSS LL_RTC_ALM_GetConfigSubSecond
RTC_ALRMBSSR SS LL_RTC_ALM_GetConfigSubSecond
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
- Return values :
-
Mask – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0xF else Value between Min_Data=0x0 and Max_Data=0x3F Subsecond Value between Min_Data=0x00 and Max_Data=0x7FFF Result is given in the form 0x00MMSSSS
-
void
LL_RTC_ALM_Start
(
uint32_t
Alarm
,
uint32_t
Interruption
)
¶
-
Start alarm A or B.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBIE LL_RTC_ALM_Start
RTC_CR ALRBE LL_RTC_ALM_Start
RTC_CR ALRAIE LL_RTC_ALM_Start
RTC_CR ALRAE LL_RTC_ALM_Start
- Parameters :
-
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
Interruption – This parameter can be one of the following values:
-
-
void
LL_RTC_ALM_Stop
(
uint32_t
Alarm
)
¶
-
Stop alarm A or B.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBIE LL_RTC_ALM_Stop
RTC_CR ALRBE LL_RTC_ALM_Stop
RTC_CR ALRAIE LL_RTC_ALM_Stop
RTC_CR ALRAE LL_RTC_ALM_Stop
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
uint32_t
LL_RTC_ALM_IsStarted
(
const
uint32_t
Alarm
)
¶
-
Is alarm A or B Enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBIE LL_RTC_ALM_IsStarted
RTC_CR ALRBE LL_RTC_ALM_IsStarted
RTC_CR ALRAIE LL_RTC_ALM_IsStarted
RTC_CR ALRAIE LL_RTC_ALM_IsStarted
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_ALM_SetBinarySubSecond
(
uint32_t
Alarm
,
uint32_t
Subsecond
)
¶
-
Set alarm A or B Sub seconds value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRABINR SS LL_RTC_ALM_SetBinarySubSecond
RTC_ALRBBINR SS LL_RTC_ALM_SetBinarySubSecond
- Parameters :
-
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
Subsecond – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF
-
-
uint32_t
LL_RTC_ALM_GetBinarySubSecond
(
const
uint32_t
Alarm
)
¶
-
Get alarm A or B Sub seconds value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRABINR SS LL_RTC_ALM_GetBinarySubSecond
RTC_ALRBBINR SS LL_RTC_ALM_GetBinarySubSecond
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
- Return values :
-
If – binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF
-
void
LL_RTC_ALM_SetSubSecondMask
(
uint32_t
Alarm
,
uint32_t
Mask
)
¶
-
Set alarm A or B Sub seconds mask.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR MASKSS LL_RTC_ALM_SetSubSecondMask
RTC_ALRMBSSR MASKSS LL_RTC_ALM_SetSubSecondMask
Note
This register can be written only when ALRAE or ALRBE is reset in RTC_CR register, or in initialization mode
- Parameters :
-
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
Mask – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0xF else Value between Min_Data=0x0 and Max_Data=0x3F
-
-
uint32_t
LL_RTC_ALM_GetSubSecondMask
(
const
uint32_t
Alarm
)
¶
-
Get alarm A or B sub seconds mask.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR MASKSS LL_RTC_ALM_GetSubSecondMask
RTC_ALRMBSSR MASKSS LL_RTC_ALM_GetSubSecondMask
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
- Return values :
-
Mask – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0xF else Value between Min_Data=0x0 and Max_Data=0x3F
-
void
LL_RTC_ALM_SetBinAutoClr
(
uint32_t
Alarm
,
uint32_t
BinaryAutoClr
)
¶
- group RTC_LL_EF_ALARM
-
Functions
-
void
LL_RTC_ALM_SetBinAutoClr
(
uint32_t
Alarm
,
uint32_t
BinaryAutoClr
)
-
Set alarm A or B Binary mode auto clear.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR SSCLR LL_RTC_ALM_SetBinAutoClr
RTC_ALRMASSR SSCLR LL_RTC_ALM_SetBinAutoClr
Note
This register can be written only when ALRAE or ALRBE is reset in RTC_CR register, or in initialization mode
Note
SSCLR must be kept to 0 when BCD or mixed mode is used (BIN = 00, 10 or 11).
- Parameters :
-
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
BinaryAutoClr – This parameter can be one of the following values:
-
-
uint32_t
LL_RTC_ALM_GetBinAutoClr
(
const
uint32_t
Alarm
)
-
Get alarm A or B Binary mode auto clear.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR SSCLR LL_RTC_ALM_GetBinAutoClr
RTC_ALRMASSR SSCLR LL_RTC_ALM_GetBinAutoClr
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
- Return values :
-
Returned – value can be can be one of the following values:
-
void
LL_RTC_ALM_SetFlagAutoClr
(
uint32_t
Alarm
,
uint32_t
AutoClr
)
-
Set alarm A or B flag automatic clear.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBFCLR LL_RTC_ALM_SetFlagAutoClr
RTC_CR ALRAFCLR LL_RTC_ALM_SetFlagAutoClr
Note
This register can be written only when ALRAE or ALRBE is reset in RTC_CR register, or in initialization mode
- Parameters :
-
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
AutoClr – This parameter can be one of the following values:
-
-
uint32_t
LL_RTC_ALM_GetFlagAutoClr
(
const
uint32_t
Alarm
)
-
Get alarm A or B flag automatic clear.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBFCLR LL_RTC_ALM_GetFlagAutoClr
RTC_CR ALRAFCLR LL_RTC_ALM_GetFlagAutoClr
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
- Return values :
-
Returned – value can be can be one of the following values:
-
void
LL_RTC_ALM_SetConfigDateTime
(
uint32_t
Alarm
,
uint32_t
Mask
,
uint32_t
DayWeekDaySelection
,
uint32_t
Day
,
uint32_t
Format12_24
,
uint32_t
Hours
,
uint32_t
Minutes
,
uint32_t
Seconds
)
-
Set alarm A or B Time (hour, minute and second) in BCD format, time format, Day (Week day or day), Weekday or day selection and Masks.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR PM LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR HT LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR HU LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR MNT LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR MNU LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR ST LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR SU LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR MSK4 LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR MSK3 LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR MSK2 LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR MSK1 LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR WDSEL LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR DT LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR DU LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR PM LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR HT LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR HU LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR MNT LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR MNU LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR ST LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR SU LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR MSK4 LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR MSK3 LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR MSK2 LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR MSK1 LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR WDSEL LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR DT LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR DU LL_RTC_ALM_SetConfigDateTime
Note
This register can be written only when ALRAE or ALRBE is reset in RTC_CR register, or in initialization mode
- Parameters :
-
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
Mask – This parameter can be a combination of the following values:
-
DayWeekDaySelection – This parameter can be one of the following values:
-
Day – Value between Min_Data=0x01 and Max_Data=0x31 if the week day is not selected if week day is selected can be one of the following values:
-
Format12_24 – This parameter can be one of the following values:
-
Hours – Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
Minutes – Value between Min_Data=0x00 and Max_Data=0x59
-
Seconds – Value between Min_Data=0x00 and Max_Data=0x59
-
-
uint32_t
LL_RTC_ALM_GetConfigDateTime
(
const
uint32_t
Alarm
)
-
Get alarm A or B Time (hour, minute and second) in BCD format, time format, Day (Week day or day), Weekday or day selection and Masks.
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
- Return values :
-
Content – of the RTC_ALRMAR or RTC_ALRMBR register
-
void
LL_RTC_ALM_SetConfigSubSecond
(
uint32_t
Alarm
,
uint32_t
Mask
,
uint32_t
Subsecond
)
-
Set alarm A or B sub seconds mask and value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR MASKSS LL_RTC_ALM_SetConfigSubSecond
RTC_ALRMBSSR SS LL_RTC_ALM_SetConfigSubSecond
RTC_ALRMASSR MASKSS LL_RTC_ALM_SetConfigSubSecond
RTC_ALRMASSR SS LL_RTC_ALM_SetConfigSubSecond
Note
This register can be written only when ALRAE or ALRBE is reset in RTC_CR register, or in initialization mode
- Parameters :
-
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
Mask – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0xF else Value between Min_Data=0x0 and Max_Data=0x3F
-
Subsecond – Value between Min_Data=0x00 and Max_Data=0x7FFF
-
-
uint32_t
LL_RTC_ALM_GetConfigSubSecond
(
const
uint32_t
Alarm
)
-
Get alarm A or B sub seconds mask and value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR MASKSS LL_RTC_ALM_GetConfigSubSecond
RTC_ALRMASSR SS LL_RTC_ALM_GetConfigSubSecond
RTC_ALRMBSSR MASKSS LL_RTC_ALM_GetConfigSubSecond
RTC_ALRMBSSR SS LL_RTC_ALM_GetConfigSubSecond
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
- Return values :
-
Mask – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0xF else Value between Min_Data=0x0 and Max_Data=0x3F Subsecond Value between Min_Data=0x00 and Max_Data=0x7FFF Result is given in the form 0x00MMSSSS
-
void
LL_RTC_ALM_Start
(
uint32_t
Alarm
,
uint32_t
Interruption
)
-
Start alarm A or B.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBIE LL_RTC_ALM_Start
RTC_CR ALRBE LL_RTC_ALM_Start
RTC_CR ALRAIE LL_RTC_ALM_Start
RTC_CR ALRAE LL_RTC_ALM_Start
- Parameters :
-
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
Interruption – This parameter can be one of the following values:
-
-
void
LL_RTC_ALM_Stop
(
uint32_t
Alarm
)
-
Stop alarm A or B.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBIE LL_RTC_ALM_Stop
RTC_CR ALRBE LL_RTC_ALM_Stop
RTC_CR ALRAIE LL_RTC_ALM_Stop
RTC_CR ALRAE LL_RTC_ALM_Stop
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
uint32_t
LL_RTC_ALM_IsStarted
(
const
uint32_t
Alarm
)
-
Is alarm A or B Enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBIE LL_RTC_ALM_IsStarted
RTC_CR ALRBE LL_RTC_ALM_IsStarted
RTC_CR ALRAIE LL_RTC_ALM_IsStarted
RTC_CR ALRAIE LL_RTC_ALM_IsStarted
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_ALM_SetBinarySubSecond
(
uint32_t
Alarm
,
uint32_t
Subsecond
)
-
Set alarm A or B Sub seconds value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRABINR SS LL_RTC_ALM_SetBinarySubSecond
RTC_ALRBBINR SS LL_RTC_ALM_SetBinarySubSecond
- Parameters :
-
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
Subsecond – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF
-
-
uint32_t
LL_RTC_ALM_GetBinarySubSecond
(
const
uint32_t
Alarm
)
-
Get alarm A or B Sub seconds value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRABINR SS LL_RTC_ALM_GetBinarySubSecond
RTC_ALRBBINR SS LL_RTC_ALM_GetBinarySubSecond
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
- Return values :
-
If – binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF
-
void
LL_RTC_ALM_SetSubSecondMask
(
uint32_t
Alarm
,
uint32_t
Mask
)
-
Set alarm A or B Sub seconds mask.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR MASKSS LL_RTC_ALM_SetSubSecondMask
RTC_ALRMBSSR MASKSS LL_RTC_ALM_SetSubSecondMask
Note
This register can be written only when ALRAE or ALRBE is reset in RTC_CR register, or in initialization mode
- Parameters :
-
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
Mask – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0xF else Value between Min_Data=0x0 and Max_Data=0x3F
-
-
uint32_t
LL_RTC_ALM_GetSubSecondMask
(
const
uint32_t
Alarm
)
-
Get alarm A or B sub seconds mask.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR MASKSS LL_RTC_ALM_GetSubSecondMask
RTC_ALRMBSSR MASKSS LL_RTC_ALM_GetSubSecondMask
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
- Return values :
-
Mask – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0xF else Value between Min_Data=0x0 and Max_Data=0x3F
-
void
LL_RTC_ALM_SetBinAutoClr
(
uint32_t
Alarm
,
uint32_t
BinaryAutoClr
)
- group RTC_LL_EF_ALARM
-
Functions
-
void
LL_RTC_ALM_SetBinAutoClr
(
uint32_t
Alarm
,
uint32_t
BinaryAutoClr
)
-
Set alarm A or B Binary mode auto clear.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR SSCLR LL_RTC_ALM_SetBinAutoClr
RTC_ALRMASSR SSCLR LL_RTC_ALM_SetBinAutoClr
Note
This register can be written only when ALRAE or ALRBE is reset in RTC_CR register, or in initialization mode
Note
SSCLR must be kept to 0 when BCD or mixed mode is used (BIN = 00, 10 or 11).
- Parameters :
-
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
BinaryAutoClr – This parameter can be one of the following values:
-
-
uint32_t
LL_RTC_ALM_GetBinAutoClr
(
const
uint32_t
Alarm
)
-
Get alarm A or B Binary mode auto clear.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR SSCLR LL_RTC_ALM_GetBinAutoClr
RTC_ALRMASSR SSCLR LL_RTC_ALM_GetBinAutoClr
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
- Return values :
-
Returned – value can be can be one of the following values:
-
void
LL_RTC_ALM_SetFlagAutoClr
(
uint32_t
Alarm
,
uint32_t
AutoClr
)
-
Set alarm A or B flag automatic clear.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBFCLR LL_RTC_ALM_SetFlagAutoClr
RTC_CR ALRAFCLR LL_RTC_ALM_SetFlagAutoClr
Note
This register can be written only when ALRAE or ALRBE is reset in RTC_CR register, or in initialization mode
- Parameters :
-
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
AutoClr – This parameter can be one of the following values:
-
-
uint32_t
LL_RTC_ALM_GetFlagAutoClr
(
const
uint32_t
Alarm
)
-
Get alarm A or B flag automatic clear.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBFCLR LL_RTC_ALM_GetFlagAutoClr
RTC_CR ALRAFCLR LL_RTC_ALM_GetFlagAutoClr
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
- Return values :
-
Returned – value can be can be one of the following values:
-
void
LL_RTC_ALM_SetConfigDateTime
(
uint32_t
Alarm
,
uint32_t
Mask
,
uint32_t
DayWeekDaySelection
,
uint32_t
Day
,
uint32_t
Format12_24
,
uint32_t
Hours
,
uint32_t
Minutes
,
uint32_t
Seconds
)
-
Set alarm A or B Time (hour, minute and second) in BCD format, time format, Day (Week day or day), Weekday or day selection and Masks.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR PM LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR HT LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR HU LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR MNT LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR MNU LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR ST LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR SU LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR MSK4 LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR MSK3 LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR MSK2 LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR MSK1 LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR WDSEL LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR DT LL_RTC_ALM_SetConfigDateTime
RTC_ALRMBR DU LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR PM LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR HT LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR HU LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR MNT LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR MNU LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR ST LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR SU LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR MSK4 LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR MSK3 LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR MSK2 LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR MSK1 LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR WDSEL LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR DT LL_RTC_ALM_SetConfigDateTime
RTC_ALRMAR DU LL_RTC_ALM_SetConfigDateTime
Note
This register can be written only when ALRAE or ALRBE is reset in RTC_CR register, or in initialization mode
- Parameters :
-
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
Mask – This parameter can be a combination of the following values:
-
DayWeekDaySelection – This parameter can be one of the following values:
-
Day – Value between Min_Data=0x01 and Max_Data=0x31 if the week day is not selected if week day is selected can be one of the following values:
-
Format12_24 – This parameter can be one of the following values:
-
Hours – Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
Minutes – Value between Min_Data=0x00 and Max_Data=0x59
-
Seconds – Value between Min_Data=0x00 and Max_Data=0x59
-
-
uint32_t
LL_RTC_ALM_GetConfigDateTime
(
const
uint32_t
Alarm
)
-
Get alarm A or B Time (hour, minute and second) in BCD format, time format, Day (Week day or day), Weekday or day selection and Masks.
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
- Return values :
-
Content – of the RTC_ALRMAR or RTC_ALRMBR register
-
void
LL_RTC_ALM_SetConfigSubSecond
(
uint32_t
Alarm
,
uint32_t
Mask
,
uint32_t
Subsecond
)
-
Set alarm A or B sub seconds mask and value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR MASKSS LL_RTC_ALM_SetConfigSubSecond
RTC_ALRMBSSR SS LL_RTC_ALM_SetConfigSubSecond
RTC_ALRMASSR MASKSS LL_RTC_ALM_SetConfigSubSecond
RTC_ALRMASSR SS LL_RTC_ALM_SetConfigSubSecond
Note
This register can be written only when ALRAE or ALRBE is reset in RTC_CR register, or in initialization mode
- Parameters :
-
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
Mask – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0xF else Value between Min_Data=0x0 and Max_Data=0x3F
-
Subsecond – Value between Min_Data=0x00 and Max_Data=0x7FFF
-
-
uint32_t
LL_RTC_ALM_GetConfigSubSecond
(
const
uint32_t
Alarm
)
-
Get alarm A or B sub seconds mask and value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR MASKSS LL_RTC_ALM_GetConfigSubSecond
RTC_ALRMASSR SS LL_RTC_ALM_GetConfigSubSecond
RTC_ALRMBSSR MASKSS LL_RTC_ALM_GetConfigSubSecond
RTC_ALRMBSSR SS LL_RTC_ALM_GetConfigSubSecond
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
- Return values :
-
Mask – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0xF else Value between Min_Data=0x0 and Max_Data=0x3F Subsecond Value between Min_Data=0x00 and Max_Data=0x7FFF Result is given in the form 0x00MMSSSS
-
void
LL_RTC_ALM_Start
(
uint32_t
Alarm
,
uint32_t
Interruption
)
-
Start alarm A or B.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBIE LL_RTC_ALM_Start
RTC_CR ALRBE LL_RTC_ALM_Start
RTC_CR ALRAIE LL_RTC_ALM_Start
RTC_CR ALRAE LL_RTC_ALM_Start
- Parameters :
-
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
Interruption – This parameter can be one of the following values:
-
-
void
LL_RTC_ALM_Stop
(
uint32_t
Alarm
)
-
Stop alarm A or B.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBIE LL_RTC_ALM_Stop
RTC_CR ALRBE LL_RTC_ALM_Stop
RTC_CR ALRAIE LL_RTC_ALM_Stop
RTC_CR ALRAE LL_RTC_ALM_Stop
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
uint32_t
LL_RTC_ALM_IsStarted
(
const
uint32_t
Alarm
)
-
Is alarm A or B Enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBIE LL_RTC_ALM_IsStarted
RTC_CR ALRBE LL_RTC_ALM_IsStarted
RTC_CR ALRAIE LL_RTC_ALM_IsStarted
RTC_CR ALRAIE LL_RTC_ALM_IsStarted
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_ALM_SetBinarySubSecond
(
uint32_t
Alarm
,
uint32_t
Subsecond
)
-
Set alarm A or B Sub seconds value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRABINR SS LL_RTC_ALM_SetBinarySubSecond
RTC_ALRBBINR SS LL_RTC_ALM_SetBinarySubSecond
- Parameters :
-
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
Subsecond – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF
-
-
uint32_t
LL_RTC_ALM_GetBinarySubSecond
(
const
uint32_t
Alarm
)
-
Get alarm A or B Sub seconds value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRABINR SS LL_RTC_ALM_GetBinarySubSecond
RTC_ALRBBINR SS LL_RTC_ALM_GetBinarySubSecond
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
- Return values :
-
If – binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF
-
void
LL_RTC_ALM_SetSubSecondMask
(
uint32_t
Alarm
,
uint32_t
Mask
)
-
Set alarm A or B Sub seconds mask.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR MASKSS LL_RTC_ALM_SetSubSecondMask
RTC_ALRMBSSR MASKSS LL_RTC_ALM_SetSubSecondMask
Note
This register can be written only when ALRAE or ALRBE is reset in RTC_CR register, or in initialization mode
- Parameters :
-
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
Mask – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0xF else Value between Min_Data=0x0 and Max_Data=0x3F
-
-
uint32_t
LL_RTC_ALM_GetSubSecondMask
(
const
uint32_t
Alarm
)
-
Get alarm A or B sub seconds mask.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR MASKSS LL_RTC_ALM_GetSubSecondMask
RTC_ALRMBSSR MASKSS LL_RTC_ALM_GetSubSecondMask
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
- Return values :
-
Mask – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0xF else Value between Min_Data=0x0 and Max_Data=0x3F
-
void
LL_RTC_ALM_SetBinAutoClr
(
uint32_t
Alarm
,
uint32_t
BinaryAutoClr
)
ALARMA ¶
- group RTC_LL_EF_ALARMA
-
Functions
-
void
LL_RTC_ALMA_Enable
(
void
)
¶
-
Enable alarm A.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRAE LL_RTC_ALMA_Enable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_ALMA_Disable
(
void
)
¶
-
Disable alarm A.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRAE LL_RTC_ALMA_Disable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_ALMA_SetMask
(
uint32_t
Mask
)
¶
-
Specify the alarm A masks.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR MSK4 LL_RTC_ALMA_SetMask
RTC_ALRMAR MSK3 LL_RTC_ALMA_SetMask
RTC_ALRMAR MSK2 LL_RTC_ALMA_SetMask
RTC_ALRMAR MSK1 LL_RTC_ALMA_SetMask
- Parameters :
-
Mask – This parameter can be a combination of the following values:
-
uint32_t
LL_RTC_ALMA_GetMask
(
void
)
¶
-
Get the alarm A masks.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR MSK4 LL_RTC_ALMA_GetMask
RTC_ALRMAR MSK3 LL_RTC_ALMA_GetMask
RTC_ALRMAR MSK2 LL_RTC_ALMA_GetMask
RTC_ALRMAR MSK1 LL_RTC_ALMA_GetMask
- Return values :
-
Returned – value can be can be a combination of the following values:
-
void
LL_RTC_ALMA_EnableWeekday
(
void
)
¶
-
Enable alarm A Week day selection (DU[3:0] represents the week day. DT[1:0] is do not care)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR WDSEL LL_RTC_ALMA_EnableWeekday
-
void
LL_RTC_ALMA_DisableWeekday
(
void
)
¶
-
Disable alarm A Week day selection (DU[3:0] represents the date )
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR WDSEL LL_RTC_ALMA_DisableWeekday
-
uint32_t
LL_RTC_ALMA_IsEnabledWeekday
(
void
)
¶
-
Check if alarm A Week day selection is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR WDSEL LL_RTC_ALMA_IsEnabledWeekday
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_ALMA_SetDay
(
uint32_t
Day
)
¶
-
Set alarm A Day in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR DT LL_RTC_ALMA_SetDay
RTC_ALRMAR DU LL_RTC_ALMA_SetDay
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Day from binary to BCD format
- Parameters :
-
Day – Value between Min_Data=0x01 and Max_Data=0x31
-
uint32_t
LL_RTC_ALMA_GetDay
(
void
)
¶
-
Get alarm A Day in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR DT LL_RTC_ALMA_GetDay
RTC_ALRMAR DU LL_RTC_ALMA_GetDay
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Day from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x01 and Max_Data=0x31
-
void
LL_RTC_ALMA_SetWeekDay
(
uint32_t
WeekDay
)
¶
-
Set alarm A Weekday.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR DU LL_RTC_ALMA_SetWeekDay
Note
DU in week day mode only if WDSEL is enabled
- Parameters :
-
WeekDay – This parameter can be one of the following values:
-
uint32_t
LL_RTC_ALMA_GetWeekDay
(
void
)
¶
-
Get alarm A Weekday.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR DU LL_RTC_ALMA_GetWeekDay
Note
DU in week day mode only if WDSEL is enabled
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_ALMA_SetTimeFormat
(
uint32_t
TimeFormat
)
¶
-
Set alarm A time format (AM/24-hour or PM notation)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR PM LL_RTC_ALMA_SetTimeFormat
- Parameters :
-
TimeFormat – This parameter can be one of the following values:
-
uint32_t
LL_RTC_ALMA_GetTimeFormat
(
void
)
¶
-
Get alarm A time format (AM or PM notation)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR PM LL_RTC_ALMA_GetTimeFormat
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_ALMA_SetHour
(
uint32_t
Hours
)
¶
-
Set alarm A Hours in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR HT LL_RTC_ALMA_SetHour
RTC_ALRMAR HU LL_RTC_ALMA_SetHour
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Hours from binary to BCD format
- Parameters :
-
Hours – Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
uint32_t
LL_RTC_ALMA_GetHour
(
void
)
¶
-
Get alarm A Hours in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR HT LL_RTC_ALMA_GetHour
RTC_ALRMAR HU LL_RTC_ALMA_GetHour
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Hours from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
void
LL_RTC_ALMA_SetMinute
(
uint32_t
Minutes
)
¶
-
Set alarm A Minutes in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR MNT LL_RTC_ALMA_SetMinute
RTC_ALRMAR MNU LL_RTC_ALMA_SetMinute
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Minutes from binary to BCD format
- Parameters :
-
Minutes – Value between Min_Data=0x00 and Max_Data=0x59
-
uint32_t
LL_RTC_ALMA_GetMinute
(
void
)
¶
-
Get alarm A Minutes in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR MNT LL_RTC_ALMA_GetMinute
RTC_ALRMAR MNU LL_RTC_ALMA_GetMinute
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Minutes from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x59
-
void
LL_RTC_ALMA_SetSecond
(
uint32_t
Seconds
)
¶
-
Set alarm A Seconds in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR ST LL_RTC_ALMA_SetSecond
RTC_ALRMAR SU LL_RTC_ALMA_SetSecond
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Seconds from binary to BCD format
- Parameters :
-
Seconds – Value between Min_Data=0x00 and Max_Data=0x59
-
uint32_t
LL_RTC_ALMA_GetSecond
(
void
)
¶
-
Get alarm A Seconds in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR ST LL_RTC_ALMA_GetSecond
RTC_ALRMAR SU LL_RTC_ALMA_GetSecond
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Seconds from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x59
-
void
LL_RTC_ALMA_ConfigTime
(
uint32_t
Format12_24
,
uint32_t
Hours
,
uint32_t
Minutes
,
uint32_t
Seconds
)
¶
-
Set alarm A Time (hour, minute and second) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR PM LL_RTC_ALMA_ConfigTime
RTC_ALRMAR HT LL_RTC_ALMA_ConfigTime
RTC_ALRMAR HU LL_RTC_ALMA_ConfigTime
RTC_ALRMAR MNT LL_RTC_ALMA_ConfigTime
RTC_ALRMAR MNU LL_RTC_ALMA_ConfigTime
RTC_ALRMAR ST LL_RTC_ALMA_ConfigTime
RTC_ALRMAR SU LL_RTC_ALMA_ConfigTime
- Parameters :
-
-
Format12_24 – This parameter can be one of the following values:
-
Hours – Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
Minutes – Value between Min_Data=0x00 and Max_Data=0x59
-
Seconds – Value between Min_Data=0x00 and Max_Data=0x59
-
-
uint32_t
LL_RTC_ALMA_GetTime
(
void
)
¶
-
Get alarm A Time (hour, minute and second) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR HT LL_RTC_ALMA_GetTime
RTC_ALRMAR HU LL_RTC_ALMA_GetTime
RTC_ALRMAR MNT LL_RTC_ALMA_GetTime
RTC_ALRMAR MNU LL_RTC_ALMA_GetTime
RTC_ALRMAR ST LL_RTC_ALMA_GetTime
RTC_ALRMAR SU LL_RTC_ALMA_GetTime
Note
helper macros LL_RTC_GET_HOUR, LL_RTC_GET_MINUTE and LL_RTC_GET_SECOND are available to get independently each parameter
- Return values :
-
Combination – of hours, minutes and seconds
-
void
LL_RTC_ALMA_SetSubSecondMask
(
uint32_t
Mask
)
¶
-
Set alarm A Mask the most-significant bits starting at this bit.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR MASKSS LL_RTC_ALMA_SetSubSecondMask
Note
This register can be written only when ALRAE is reset in RTC_CR register, or in initialization mode
- Parameters :
-
Mask – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0xF else Value between Min_Data=0x0 and Max_Data=0x3F
-
uint32_t
LL_RTC_ALMA_GetSubSecondMask
(
void
)
¶
-
Get alarm A Mask the most-significant bits starting at this bit.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR MASKSS LL_RTC_ALMA_GetSubSecondMask
- Return values :
-
If – binary mode is none, Value between Min_Data=0x0 and Max_Data=0xF else Value between Min_Data=0x0 and Max_Data=0x3F
-
void
LL_RTC_ALMA_SetBinAutoClr
(
uint32_t
BinaryAutoClr
)
¶
-
Set alarm A Binary mode auto clear.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR SSCLR LL_RTC_ALMA_SetBinAutoClr
Note
This register can be written only when ALRAE is reset in RTC_CR register, or in initialization mode
Note
SSCLR must be kept to 0 when BCD or mixed mode is used (BIN = 00, 10 or 11).
- Parameters :
-
BinaryAutoClr – This parameter can be one of the following values:
-
uint32_t
LL_RTC_ALMA_GetBinAutoClr
(
void
)
¶
-
Get alarm A Binary mode auto clear.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR SSCLR LL_RTC_ALMA_GetBinAutoClr
- Return values :
-
It – can be one of the following values:
-
void
LL_RTC_ALMA_SetSubSecond
(
uint32_t
Subsecond
)
¶
-
Set alarm A Sub seconds value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR SS LL_RTC_ALMA_SetSubSecond
- Parameters :
-
Subsecond – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF
-
uint32_t
LL_RTC_ALMA_GetSubSecond
(
void
)
¶
-
Get alarm A Sub seconds value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR SS LL_RTC_ALMA_GetSubSecond
- Return values :
-
If – binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF
-
void
LL_RTC_ALMA_Enable
(
void
)
¶
- group RTC_LL_EF_ALARMA
-
Functions
-
void
LL_RTC_ALMA_Enable
(
void
)
-
Enable alarm A.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRAE LL_RTC_ALMA_Enable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_ALMA_Disable
(
void
)
-
Disable alarm A.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRAE LL_RTC_ALMA_Disable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_ALMA_SetMask
(
uint32_t
Mask
)
-
Specify the alarm A masks.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR MSK4 LL_RTC_ALMA_SetMask
RTC_ALRMAR MSK3 LL_RTC_ALMA_SetMask
RTC_ALRMAR MSK2 LL_RTC_ALMA_SetMask
RTC_ALRMAR MSK1 LL_RTC_ALMA_SetMask
- Parameters :
-
Mask – This parameter can be a combination of the following values:
-
uint32_t
LL_RTC_ALMA_GetMask
(
void
)
-
Get the alarm A masks.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR MSK4 LL_RTC_ALMA_GetMask
RTC_ALRMAR MSK3 LL_RTC_ALMA_GetMask
RTC_ALRMAR MSK2 LL_RTC_ALMA_GetMask
RTC_ALRMAR MSK1 LL_RTC_ALMA_GetMask
- Return values :
-
Returned – value can be can be a combination of the following values:
-
void
LL_RTC_ALMA_EnableWeekday
(
void
)
-
Enable alarm A Week day selection (DU[3:0] represents the week day. DT[1:0] is do not care)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR WDSEL LL_RTC_ALMA_EnableWeekday
-
void
LL_RTC_ALMA_DisableWeekday
(
void
)
-
Disable alarm A Week day selection (DU[3:0] represents the date )
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR WDSEL LL_RTC_ALMA_DisableWeekday
-
uint32_t
LL_RTC_ALMA_IsEnabledWeekday
(
void
)
-
Check if alarm A Week day selection is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR WDSEL LL_RTC_ALMA_IsEnabledWeekday
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_ALMA_SetDay
(
uint32_t
Day
)
-
Set alarm A Day in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR DT LL_RTC_ALMA_SetDay
RTC_ALRMAR DU LL_RTC_ALMA_SetDay
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Day from binary to BCD format
- Parameters :
-
Day – Value between Min_Data=0x01 and Max_Data=0x31
-
uint32_t
LL_RTC_ALMA_GetDay
(
void
)
-
Get alarm A Day in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR DT LL_RTC_ALMA_GetDay
RTC_ALRMAR DU LL_RTC_ALMA_GetDay
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Day from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x01 and Max_Data=0x31
-
void
LL_RTC_ALMA_SetWeekDay
(
uint32_t
WeekDay
)
-
Set alarm A Weekday.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR DU LL_RTC_ALMA_SetWeekDay
Note
DU in week day mode only if WDSEL is enabled
- Parameters :
-
WeekDay – This parameter can be one of the following values:
-
uint32_t
LL_RTC_ALMA_GetWeekDay
(
void
)
-
Get alarm A Weekday.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR DU LL_RTC_ALMA_GetWeekDay
Note
DU in week day mode only if WDSEL is enabled
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_ALMA_SetTimeFormat
(
uint32_t
TimeFormat
)
-
Set alarm A time format (AM/24-hour or PM notation)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR PM LL_RTC_ALMA_SetTimeFormat
- Parameters :
-
TimeFormat – This parameter can be one of the following values:
-
uint32_t
LL_RTC_ALMA_GetTimeFormat
(
void
)
-
Get alarm A time format (AM or PM notation)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR PM LL_RTC_ALMA_GetTimeFormat
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_ALMA_SetHour
(
uint32_t
Hours
)
-
Set alarm A Hours in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR HT LL_RTC_ALMA_SetHour
RTC_ALRMAR HU LL_RTC_ALMA_SetHour
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Hours from binary to BCD format
- Parameters :
-
Hours – Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
uint32_t
LL_RTC_ALMA_GetHour
(
void
)
-
Get alarm A Hours in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR HT LL_RTC_ALMA_GetHour
RTC_ALRMAR HU LL_RTC_ALMA_GetHour
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Hours from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
void
LL_RTC_ALMA_SetMinute
(
uint32_t
Minutes
)
-
Set alarm A Minutes in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR MNT LL_RTC_ALMA_SetMinute
RTC_ALRMAR MNU LL_RTC_ALMA_SetMinute
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Minutes from binary to BCD format
- Parameters :
-
Minutes – Value between Min_Data=0x00 and Max_Data=0x59
-
uint32_t
LL_RTC_ALMA_GetMinute
(
void
)
-
Get alarm A Minutes in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR MNT LL_RTC_ALMA_GetMinute
RTC_ALRMAR MNU LL_RTC_ALMA_GetMinute
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Minutes from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x59
-
void
LL_RTC_ALMA_SetSecond
(
uint32_t
Seconds
)
-
Set alarm A Seconds in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR ST LL_RTC_ALMA_SetSecond
RTC_ALRMAR SU LL_RTC_ALMA_SetSecond
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Seconds from binary to BCD format
- Parameters :
-
Seconds – Value between Min_Data=0x00 and Max_Data=0x59
-
uint32_t
LL_RTC_ALMA_GetSecond
(
void
)
-
Get alarm A Seconds in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR ST LL_RTC_ALMA_GetSecond
RTC_ALRMAR SU LL_RTC_ALMA_GetSecond
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Seconds from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x59
-
void
LL_RTC_ALMA_ConfigTime
(
uint32_t
Format12_24
,
uint32_t
Hours
,
uint32_t
Minutes
,
uint32_t
Seconds
)
-
Set alarm A Time (hour, minute and second) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR PM LL_RTC_ALMA_ConfigTime
RTC_ALRMAR HT LL_RTC_ALMA_ConfigTime
RTC_ALRMAR HU LL_RTC_ALMA_ConfigTime
RTC_ALRMAR MNT LL_RTC_ALMA_ConfigTime
RTC_ALRMAR MNU LL_RTC_ALMA_ConfigTime
RTC_ALRMAR ST LL_RTC_ALMA_ConfigTime
RTC_ALRMAR SU LL_RTC_ALMA_ConfigTime
- Parameters :
-
-
Format12_24 – This parameter can be one of the following values:
-
Hours – Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
Minutes – Value between Min_Data=0x00 and Max_Data=0x59
-
Seconds – Value between Min_Data=0x00 and Max_Data=0x59
-
-
uint32_t
LL_RTC_ALMA_GetTime
(
void
)
-
Get alarm A Time (hour, minute and second) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR HT LL_RTC_ALMA_GetTime
RTC_ALRMAR HU LL_RTC_ALMA_GetTime
RTC_ALRMAR MNT LL_RTC_ALMA_GetTime
RTC_ALRMAR MNU LL_RTC_ALMA_GetTime
RTC_ALRMAR ST LL_RTC_ALMA_GetTime
RTC_ALRMAR SU LL_RTC_ALMA_GetTime
Note
helper macros LL_RTC_GET_HOUR, LL_RTC_GET_MINUTE and LL_RTC_GET_SECOND are available to get independently each parameter
- Return values :
-
Combination – of hours, minutes and seconds
-
void
LL_RTC_ALMA_SetSubSecondMask
(
uint32_t
Mask
)
-
Set alarm A Mask the most-significant bits starting at this bit.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR MASKSS LL_RTC_ALMA_SetSubSecondMask
Note
This register can be written only when ALRAE is reset in RTC_CR register, or in initialization mode
- Parameters :
-
Mask – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0xF else Value between Min_Data=0x0 and Max_Data=0x3F
-
uint32_t
LL_RTC_ALMA_GetSubSecondMask
(
void
)
-
Get alarm A Mask the most-significant bits starting at this bit.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR MASKSS LL_RTC_ALMA_GetSubSecondMask
- Return values :
-
If – binary mode is none, Value between Min_Data=0x0 and Max_Data=0xF else Value between Min_Data=0x0 and Max_Data=0x3F
-
void
LL_RTC_ALMA_SetBinAutoClr
(
uint32_t
BinaryAutoClr
)
-
Set alarm A Binary mode auto clear.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR SSCLR LL_RTC_ALMA_SetBinAutoClr
Note
This register can be written only when ALRAE is reset in RTC_CR register, or in initialization mode
Note
SSCLR must be kept to 0 when BCD or mixed mode is used (BIN = 00, 10 or 11).
- Parameters :
-
BinaryAutoClr – This parameter can be one of the following values:
-
uint32_t
LL_RTC_ALMA_GetBinAutoClr
(
void
)
-
Get alarm A Binary mode auto clear.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR SSCLR LL_RTC_ALMA_GetBinAutoClr
- Return values :
-
It – can be one of the following values:
-
void
LL_RTC_ALMA_SetSubSecond
(
uint32_t
Subsecond
)
-
Set alarm A Sub seconds value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR SS LL_RTC_ALMA_SetSubSecond
- Parameters :
-
Subsecond – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF
-
uint32_t
LL_RTC_ALMA_GetSubSecond
(
void
)
-
Get alarm A Sub seconds value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR SS LL_RTC_ALMA_GetSubSecond
- Return values :
-
If – binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF
-
void
LL_RTC_ALMA_Enable
(
void
)
- group RTC_LL_EF_ALARMA
-
Functions
-
void
LL_RTC_ALMA_Enable
(
void
)
-
Enable alarm A.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRAE LL_RTC_ALMA_Enable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_ALMA_Disable
(
void
)
-
Disable alarm A.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRAE LL_RTC_ALMA_Disable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_ALMA_SetMask
(
uint32_t
Mask
)
-
Specify the alarm A masks.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR MSK4 LL_RTC_ALMA_SetMask
RTC_ALRMAR MSK3 LL_RTC_ALMA_SetMask
RTC_ALRMAR MSK2 LL_RTC_ALMA_SetMask
RTC_ALRMAR MSK1 LL_RTC_ALMA_SetMask
- Parameters :
-
Mask – This parameter can be a combination of the following values:
-
uint32_t
LL_RTC_ALMA_GetMask
(
void
)
-
Get the alarm A masks.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR MSK4 LL_RTC_ALMA_GetMask
RTC_ALRMAR MSK3 LL_RTC_ALMA_GetMask
RTC_ALRMAR MSK2 LL_RTC_ALMA_GetMask
RTC_ALRMAR MSK1 LL_RTC_ALMA_GetMask
- Return values :
-
Returned – value can be can be a combination of the following values:
-
void
LL_RTC_ALMA_EnableWeekday
(
void
)
-
Enable alarm A Week day selection (DU[3:0] represents the week day. DT[1:0] is do not care)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR WDSEL LL_RTC_ALMA_EnableWeekday
-
void
LL_RTC_ALMA_DisableWeekday
(
void
)
-
Disable alarm A Week day selection (DU[3:0] represents the date )
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR WDSEL LL_RTC_ALMA_DisableWeekday
-
uint32_t
LL_RTC_ALMA_IsEnabledWeekday
(
void
)
-
Check if alarm A Week day selection is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR WDSEL LL_RTC_ALMA_IsEnabledWeekday
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_ALMA_SetDay
(
uint32_t
Day
)
-
Set alarm A Day in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR DT LL_RTC_ALMA_SetDay
RTC_ALRMAR DU LL_RTC_ALMA_SetDay
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Day from binary to BCD format
- Parameters :
-
Day – Value between Min_Data=0x01 and Max_Data=0x31
-
uint32_t
LL_RTC_ALMA_GetDay
(
void
)
-
Get alarm A Day in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR DT LL_RTC_ALMA_GetDay
RTC_ALRMAR DU LL_RTC_ALMA_GetDay
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Day from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x01 and Max_Data=0x31
-
void
LL_RTC_ALMA_SetWeekDay
(
uint32_t
WeekDay
)
-
Set alarm A Weekday.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR DU LL_RTC_ALMA_SetWeekDay
Note
DU in week day mode only if WDSEL is enabled
- Parameters :
-
WeekDay – This parameter can be one of the following values:
-
uint32_t
LL_RTC_ALMA_GetWeekDay
(
void
)
-
Get alarm A Weekday.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR DU LL_RTC_ALMA_GetWeekDay
Note
DU in week day mode only if WDSEL is enabled
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_ALMA_SetTimeFormat
(
uint32_t
TimeFormat
)
-
Set alarm A time format (AM/24-hour or PM notation)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR PM LL_RTC_ALMA_SetTimeFormat
- Parameters :
-
TimeFormat – This parameter can be one of the following values:
-
uint32_t
LL_RTC_ALMA_GetTimeFormat
(
void
)
-
Get alarm A time format (AM or PM notation)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR PM LL_RTC_ALMA_GetTimeFormat
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_ALMA_SetHour
(
uint32_t
Hours
)
-
Set alarm A Hours in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR HT LL_RTC_ALMA_SetHour
RTC_ALRMAR HU LL_RTC_ALMA_SetHour
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Hours from binary to BCD format
- Parameters :
-
Hours – Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
uint32_t
LL_RTC_ALMA_GetHour
(
void
)
-
Get alarm A Hours in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR HT LL_RTC_ALMA_GetHour
RTC_ALRMAR HU LL_RTC_ALMA_GetHour
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Hours from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
void
LL_RTC_ALMA_SetMinute
(
uint32_t
Minutes
)
-
Set alarm A Minutes in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR MNT LL_RTC_ALMA_SetMinute
RTC_ALRMAR MNU LL_RTC_ALMA_SetMinute
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Minutes from binary to BCD format
- Parameters :
-
Minutes – Value between Min_Data=0x00 and Max_Data=0x59
-
uint32_t
LL_RTC_ALMA_GetMinute
(
void
)
-
Get alarm A Minutes in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR MNT LL_RTC_ALMA_GetMinute
RTC_ALRMAR MNU LL_RTC_ALMA_GetMinute
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Minutes from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x59
-
void
LL_RTC_ALMA_SetSecond
(
uint32_t
Seconds
)
-
Set alarm A Seconds in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR ST LL_RTC_ALMA_SetSecond
RTC_ALRMAR SU LL_RTC_ALMA_SetSecond
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Seconds from binary to BCD format
- Parameters :
-
Seconds – Value between Min_Data=0x00 and Max_Data=0x59
-
uint32_t
LL_RTC_ALMA_GetSecond
(
void
)
-
Get alarm A Seconds in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR ST LL_RTC_ALMA_GetSecond
RTC_ALRMAR SU LL_RTC_ALMA_GetSecond
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Seconds from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x59
-
void
LL_RTC_ALMA_ConfigTime
(
uint32_t
Format12_24
,
uint32_t
Hours
,
uint32_t
Minutes
,
uint32_t
Seconds
)
-
Set alarm A Time (hour, minute and second) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR PM LL_RTC_ALMA_ConfigTime
RTC_ALRMAR HT LL_RTC_ALMA_ConfigTime
RTC_ALRMAR HU LL_RTC_ALMA_ConfigTime
RTC_ALRMAR MNT LL_RTC_ALMA_ConfigTime
RTC_ALRMAR MNU LL_RTC_ALMA_ConfigTime
RTC_ALRMAR ST LL_RTC_ALMA_ConfigTime
RTC_ALRMAR SU LL_RTC_ALMA_ConfigTime
- Parameters :
-
-
Format12_24 – This parameter can be one of the following values:
-
Hours – Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
Minutes – Value between Min_Data=0x00 and Max_Data=0x59
-
Seconds – Value between Min_Data=0x00 and Max_Data=0x59
-
-
uint32_t
LL_RTC_ALMA_GetTime
(
void
)
-
Get alarm A Time (hour, minute and second) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMAR HT LL_RTC_ALMA_GetTime
RTC_ALRMAR HU LL_RTC_ALMA_GetTime
RTC_ALRMAR MNT LL_RTC_ALMA_GetTime
RTC_ALRMAR MNU LL_RTC_ALMA_GetTime
RTC_ALRMAR ST LL_RTC_ALMA_GetTime
RTC_ALRMAR SU LL_RTC_ALMA_GetTime
Note
helper macros LL_RTC_GET_HOUR, LL_RTC_GET_MINUTE and LL_RTC_GET_SECOND are available to get independently each parameter
- Return values :
-
Combination – of hours, minutes and seconds
-
void
LL_RTC_ALMA_SetSubSecondMask
(
uint32_t
Mask
)
-
Set alarm A Mask the most-significant bits starting at this bit.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR MASKSS LL_RTC_ALMA_SetSubSecondMask
Note
This register can be written only when ALRAE is reset in RTC_CR register, or in initialization mode
- Parameters :
-
Mask – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0xF else Value between Min_Data=0x0 and Max_Data=0x3F
-
uint32_t
LL_RTC_ALMA_GetSubSecondMask
(
void
)
-
Get alarm A Mask the most-significant bits starting at this bit.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR MASKSS LL_RTC_ALMA_GetSubSecondMask
- Return values :
-
If – binary mode is none, Value between Min_Data=0x0 and Max_Data=0xF else Value between Min_Data=0x0 and Max_Data=0x3F
-
void
LL_RTC_ALMA_SetBinAutoClr
(
uint32_t
BinaryAutoClr
)
-
Set alarm A Binary mode auto clear.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR SSCLR LL_RTC_ALMA_SetBinAutoClr
Note
This register can be written only when ALRAE is reset in RTC_CR register, or in initialization mode
Note
SSCLR must be kept to 0 when BCD or mixed mode is used (BIN = 00, 10 or 11).
- Parameters :
-
BinaryAutoClr – This parameter can be one of the following values:
-
uint32_t
LL_RTC_ALMA_GetBinAutoClr
(
void
)
-
Get alarm A Binary mode auto clear.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR SSCLR LL_RTC_ALMA_GetBinAutoClr
- Return values :
-
It – can be one of the following values:
-
void
LL_RTC_ALMA_SetSubSecond
(
uint32_t
Subsecond
)
-
Set alarm A Sub seconds value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR SS LL_RTC_ALMA_SetSubSecond
- Parameters :
-
Subsecond – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF
-
uint32_t
LL_RTC_ALMA_GetSubSecond
(
void
)
-
Get alarm A Sub seconds value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMASSR SS LL_RTC_ALMA_GetSubSecond
- Return values :
-
If – binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF
-
void
LL_RTC_ALMA_Enable
(
void
)
ALARMB ¶
- group RTC_LL_EF_ALARMB
-
Functions
-
void
LL_RTC_ALMB_Enable
(
void
)
¶
-
Enable alarm B.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBE LL_RTC_ALMB_Enable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_ALMB_Disable
(
void
)
¶
-
Disable alarm B.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBE LL_RTC_ALMB_Disable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_ALMB_SetMask
(
uint32_t
Mask
)
¶
-
Specify the alarm B masks.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR MSK4 LL_RTC_ALMB_SetMask
RTC_ALRMBR MSK3 LL_RTC_ALMB_SetMask
RTC_ALRMBR MSK2 LL_RTC_ALMB_SetMask
RTC_ALRMBR MSK1 LL_RTC_ALMB_SetMask
- Parameters :
-
Mask – This parameter can be a combination of the following values:
-
uint32_t
LL_RTC_ALMB_GetMask
(
void
)
¶
-
Get the alarm B masks.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR MSK4 LL_RTC_ALMB_GetMask
RTC_ALRMBR MSK3 LL_RTC_ALMB_GetMask
RTC_ALRMBR MSK2 LL_RTC_ALMB_GetMask
RTC_ALRMBR MSK1 LL_RTC_ALMB_GetMask
- Return values :
-
Returned – value can be can be a combination of the following values:
-
void
LL_RTC_ALMB_EnableWeekday
(
void
)
¶
-
Enable alarm B Week day selection (DU[3:0] represents the week day. DT[1:0] is do not care)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR WDSEL LL_RTC_ALMB_EnableWeekday
-
void
LL_RTC_ALMB_DisableWeekday
(
void
)
¶
-
Disable alarm B Week day selection (DU[3:0] represents the date )
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR WDSEL LL_RTC_ALMB_DisableWeekday
-
uint32_t
LL_RTC_ALMB_IsEnabledWeekday
(
void
)
¶
-
Check if alarm B Week day selection is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR WDSEL LL_RTC_ALMB_IsEnabledWeekday
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_ALMB_SetDay
(
uint32_t
Day
)
¶
-
Set alarm B Day in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR DT LL_RTC_ALMB_SetDay
RTC_ALRMBR DU LL_RTC_ALMB_SetDay
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Day from binary to BCD format
- Parameters :
-
Day – Value between Min_Data=0x01 and Max_Data=0x31
-
uint32_t
LL_RTC_ALMB_GetDay
(
void
)
¶
-
Get alarm B Day in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR DT LL_RTC_ALMB_GetDay
RTC_ALRMBR DU LL_RTC_ALMB_GetDay
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Day from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x01 and Max_Data=0x31
-
void
LL_RTC_ALMB_SetWeekDay
(
uint32_t
WeekDay
)
¶
-
Set alarm B Weekday.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR DU LL_RTC_ALMB_SetWeekDay
- Parameters :
-
WeekDay – This parameter can be one of the following values:
-
uint32_t
LL_RTC_ALMB_GetWeekDay
(
void
)
¶
-
Get alarm B Weekday.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR DU LL_RTC_ALMB_GetWeekDay
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_ALMB_SetTimeFormat
(
uint32_t
TimeFormat
)
¶
-
Set alarm B time format (AM/24-hour or PM notation)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR PM LL_RTC_ALMB_SetTimeFormat
- Parameters :
-
TimeFormat – This parameter can be one of the following values:
-
uint32_t
LL_RTC_ALMB_GetTimeFormat
(
void
)
¶
-
Get alarm B time format (AM/24-hour or PM notation)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR PM LL_RTC_ALMB_GetTimeFormat
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_ALMB_SetHour
(
uint32_t
Hours
)
¶
-
Set alarm B Hours in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR HT LL_RTC_ALMB_SetHour
RTC_ALRMBR HU LL_RTC_ALMB_SetHour
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Hours from binary to BCD format
- Parameters :
-
Hours – Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
uint32_t
LL_RTC_ALMB_GetHour
(
void
)
¶
-
Get alarm B Hours in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR HT LL_RTC_ALMB_GetHour
RTC_ALRMBR HU LL_RTC_ALMB_GetHour
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Hours from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
void
LL_RTC_ALMB_SetMinute
(
uint32_t
Minutes
)
¶
-
Set alarm B Minutes in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR MNT LL_RTC_ALMB_SetMinute
RTC_ALRMBR MNU LL_RTC_ALMB_SetMinute
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Minutes from binary to BCD format
- Parameters :
-
Minutes – between Min_Data=0x00 and Max_Data=0x59
-
uint32_t
LL_RTC_ALMB_GetMinute
(
void
)
¶
-
Get alarm B Minutes in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR MNT LL_RTC_ALMB_GetMinute
RTC_ALRMBR MNU LL_RTC_ALMB_GetMinute
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Minutes from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x59
-
void
LL_RTC_ALMB_SetSecond
(
uint32_t
Seconds
)
¶
-
Set alarm B Seconds in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR ST LL_RTC_ALMB_SetSecond
RTC_ALRMBR SU LL_RTC_ALMB_SetSecond
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Seconds from binary to BCD format
- Parameters :
-
Seconds – Value between Min_Data=0x00 and Max_Data=0x59
-
uint32_t
LL_RTC_ALMB_GetSecond
(
void
)
¶
-
Get alarm B Seconds in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR ST LL_RTC_ALMB_GetSecond
RTC_ALRMBR SU LL_RTC_ALMB_GetSecond
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Seconds from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x59
-
void
LL_RTC_ALMB_ConfigTime
(
uint32_t
Format12_24
,
uint32_t
Hours
,
uint32_t
Minutes
,
uint32_t
Seconds
)
¶
-
Set alarm B Time (hour, minute and second) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR PM LL_RTC_ALMB_ConfigTime
RTC_ALRMBR HT LL_RTC_ALMB_ConfigTime
RTC_ALRMBR HU LL_RTC_ALMB_ConfigTime
RTC_ALRMBR MNT LL_RTC_ALMB_ConfigTime
RTC_ALRMBR MNU LL_RTC_ALMB_ConfigTime
RTC_ALRMBR ST LL_RTC_ALMB_ConfigTime
RTC_ALRMBR SU LL_RTC_ALMB_ConfigTime
- Parameters :
-
-
Format12_24 – This parameter can be one of the following values:
-
Hours – Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
Minutes – Value between Min_Data=0x00 and Max_Data=0x59
-
Seconds – Value between Min_Data=0x00 and Max_Data=0x59
-
-
uint32_t
LL_RTC_ALMB_GetTime
(
void
)
¶
-
Get alarm B Time (hour, minute and second) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR HT LL_RTC_ALMB_GetTime
RTC_ALRMBR HU LL_RTC_ALMB_GetTime
RTC_ALRMBR MNT LL_RTC_ALMB_GetTime
RTC_ALRMBR MNU LL_RTC_ALMB_GetTime
RTC_ALRMBR ST LL_RTC_ALMB_GetTime
RTC_ALRMBR SU LL_RTC_ALMB_GetTime
Note
helper macros LL_RTC_GET_HOUR, LL_RTC_GET_MINUTE and LL_RTC_GET_SECOND are available to get independently each parameter
- Return values :
-
Combination – of hours, minutes and seconds
-
void
LL_RTC_ALMB_SetSubSecondMask
(
uint32_t
Mask
)
¶
-
Set alarm B Mask the most-significant bits starting at this bit.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR MASKSS LL_RTC_ALMB_SetSubSecondMask
Note
This register can be written only when ALRBE is reset in RTC_CR register, or in initialization mode
- Parameters :
-
Mask – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0xF else Value between Min_Data=0x0 and Max_Data=0x3F
-
uint32_t
LL_RTC_ALMB_GetSubSecondMask
(
void
)
¶
-
Get alarm B Mask the most-significant bits starting at this bit.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR MASKSS LL_RTC_ALMB_GetSubSecondMask
- Return values :
-
If – binary mode is none, Value between Min_Data=0x0 and Max_Data=0xF else Value between Min_Data=0x0 and Max_Data=0x3F
-
void
LL_RTC_ALMB_SetBinAutoClr
(
uint32_t
BinaryAutoClr
)
¶
-
Set alarm B Binary mode auto clear.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR SSCLR LL_RTC_ALMB_SetBinAutoClr
Note
This register can be written only when ALRBE is reset in RTC_CR register, or in initialization mode
Note
SSCLR must be kept to 0 when BCD or mixed mode is used (BIN = 00, 10 or 11).
- Parameters :
-
BinaryAutoClr – This parameter can be one of the following values:
-
uint32_t
LL_RTC_ALMB_GetBinAutoClr
(
void
)
¶
-
Get alarm B Binary mode auto clear.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR SSCLR LL_RTC_ALMB_GetBinAutoClr
- Return values :
-
It – can be one of the following values:
-
void
LL_RTC_ALMB_SetSubSecond
(
uint32_t
Subsecond
)
¶
-
Set alarm B Sub seconds value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR SS LL_RTC_ALMB_SetSubSecond
- Parameters :
-
Subsecond – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF
-
uint32_t
LL_RTC_ALMB_GetSubSecond
(
void
)
¶
-
Get alarm B Sub seconds value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR SS LL_RTC_ALMB_GetSubSecond
- Return values :
-
If – binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF
-
void
LL_RTC_ALMB_Enable
(
void
)
¶
- group RTC_LL_EF_ALARMB
-
Functions
-
void
LL_RTC_ALMB_Enable
(
void
)
-
Enable alarm B.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBE LL_RTC_ALMB_Enable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_ALMB_Disable
(
void
)
-
Disable alarm B.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBE LL_RTC_ALMB_Disable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_ALMB_SetMask
(
uint32_t
Mask
)
-
Specify the alarm B masks.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR MSK4 LL_RTC_ALMB_SetMask
RTC_ALRMBR MSK3 LL_RTC_ALMB_SetMask
RTC_ALRMBR MSK2 LL_RTC_ALMB_SetMask
RTC_ALRMBR MSK1 LL_RTC_ALMB_SetMask
- Parameters :
-
Mask – This parameter can be a combination of the following values:
-
uint32_t
LL_RTC_ALMB_GetMask
(
void
)
-
Get the alarm B masks.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR MSK4 LL_RTC_ALMB_GetMask
RTC_ALRMBR MSK3 LL_RTC_ALMB_GetMask
RTC_ALRMBR MSK2 LL_RTC_ALMB_GetMask
RTC_ALRMBR MSK1 LL_RTC_ALMB_GetMask
- Return values :
-
Returned – value can be can be a combination of the following values:
-
void
LL_RTC_ALMB_EnableWeekday
(
void
)
-
Enable alarm B Week day selection (DU[3:0] represents the week day. DT[1:0] is do not care)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR WDSEL LL_RTC_ALMB_EnableWeekday
-
void
LL_RTC_ALMB_DisableWeekday
(
void
)
-
Disable alarm B Week day selection (DU[3:0] represents the date )
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR WDSEL LL_RTC_ALMB_DisableWeekday
-
uint32_t
LL_RTC_ALMB_IsEnabledWeekday
(
void
)
-
Check if alarm B Week day selection is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR WDSEL LL_RTC_ALMB_IsEnabledWeekday
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_ALMB_SetDay
(
uint32_t
Day
)
-
Set alarm B Day in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR DT LL_RTC_ALMB_SetDay
RTC_ALRMBR DU LL_RTC_ALMB_SetDay
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Day from binary to BCD format
- Parameters :
-
Day – Value between Min_Data=0x01 and Max_Data=0x31
-
uint32_t
LL_RTC_ALMB_GetDay
(
void
)
-
Get alarm B Day in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR DT LL_RTC_ALMB_GetDay
RTC_ALRMBR DU LL_RTC_ALMB_GetDay
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Day from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x01 and Max_Data=0x31
-
void
LL_RTC_ALMB_SetWeekDay
(
uint32_t
WeekDay
)
-
Set alarm B Weekday.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR DU LL_RTC_ALMB_SetWeekDay
- Parameters :
-
WeekDay – This parameter can be one of the following values:
-
uint32_t
LL_RTC_ALMB_GetWeekDay
(
void
)
-
Get alarm B Weekday.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR DU LL_RTC_ALMB_GetWeekDay
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_ALMB_SetTimeFormat
(
uint32_t
TimeFormat
)
-
Set alarm B time format (AM/24-hour or PM notation)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR PM LL_RTC_ALMB_SetTimeFormat
- Parameters :
-
TimeFormat – This parameter can be one of the following values:
-
uint32_t
LL_RTC_ALMB_GetTimeFormat
(
void
)
-
Get alarm B time format (AM/24-hour or PM notation)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR PM LL_RTC_ALMB_GetTimeFormat
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_ALMB_SetHour
(
uint32_t
Hours
)
-
Set alarm B Hours in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR HT LL_RTC_ALMB_SetHour
RTC_ALRMBR HU LL_RTC_ALMB_SetHour
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Hours from binary to BCD format
- Parameters :
-
Hours – Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
uint32_t
LL_RTC_ALMB_GetHour
(
void
)
-
Get alarm B Hours in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR HT LL_RTC_ALMB_GetHour
RTC_ALRMBR HU LL_RTC_ALMB_GetHour
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Hours from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
void
LL_RTC_ALMB_SetMinute
(
uint32_t
Minutes
)
-
Set alarm B Minutes in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR MNT LL_RTC_ALMB_SetMinute
RTC_ALRMBR MNU LL_RTC_ALMB_SetMinute
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Minutes from binary to BCD format
- Parameters :
-
Minutes – between Min_Data=0x00 and Max_Data=0x59
-
uint32_t
LL_RTC_ALMB_GetMinute
(
void
)
-
Get alarm B Minutes in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR MNT LL_RTC_ALMB_GetMinute
RTC_ALRMBR MNU LL_RTC_ALMB_GetMinute
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Minutes from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x59
-
void
LL_RTC_ALMB_SetSecond
(
uint32_t
Seconds
)
-
Set alarm B Seconds in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR ST LL_RTC_ALMB_SetSecond
RTC_ALRMBR SU LL_RTC_ALMB_SetSecond
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Seconds from binary to BCD format
- Parameters :
-
Seconds – Value between Min_Data=0x00 and Max_Data=0x59
-
uint32_t
LL_RTC_ALMB_GetSecond
(
void
)
-
Get alarm B Seconds in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR ST LL_RTC_ALMB_GetSecond
RTC_ALRMBR SU LL_RTC_ALMB_GetSecond
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Seconds from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x59
-
void
LL_RTC_ALMB_ConfigTime
(
uint32_t
Format12_24
,
uint32_t
Hours
,
uint32_t
Minutes
,
uint32_t
Seconds
)
-
Set alarm B Time (hour, minute and second) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR PM LL_RTC_ALMB_ConfigTime
RTC_ALRMBR HT LL_RTC_ALMB_ConfigTime
RTC_ALRMBR HU LL_RTC_ALMB_ConfigTime
RTC_ALRMBR MNT LL_RTC_ALMB_ConfigTime
RTC_ALRMBR MNU LL_RTC_ALMB_ConfigTime
RTC_ALRMBR ST LL_RTC_ALMB_ConfigTime
RTC_ALRMBR SU LL_RTC_ALMB_ConfigTime
- Parameters :
-
-
Format12_24 – This parameter can be one of the following values:
-
Hours – Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
Minutes – Value between Min_Data=0x00 and Max_Data=0x59
-
Seconds – Value between Min_Data=0x00 and Max_Data=0x59
-
-
uint32_t
LL_RTC_ALMB_GetTime
(
void
)
-
Get alarm B Time (hour, minute and second) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR HT LL_RTC_ALMB_GetTime
RTC_ALRMBR HU LL_RTC_ALMB_GetTime
RTC_ALRMBR MNT LL_RTC_ALMB_GetTime
RTC_ALRMBR MNU LL_RTC_ALMB_GetTime
RTC_ALRMBR ST LL_RTC_ALMB_GetTime
RTC_ALRMBR SU LL_RTC_ALMB_GetTime
Note
helper macros LL_RTC_GET_HOUR, LL_RTC_GET_MINUTE and LL_RTC_GET_SECOND are available to get independently each parameter
- Return values :
-
Combination – of hours, minutes and seconds
-
void
LL_RTC_ALMB_SetSubSecondMask
(
uint32_t
Mask
)
-
Set alarm B Mask the most-significant bits starting at this bit.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR MASKSS LL_RTC_ALMB_SetSubSecondMask
Note
This register can be written only when ALRBE is reset in RTC_CR register, or in initialization mode
- Parameters :
-
Mask – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0xF else Value between Min_Data=0x0 and Max_Data=0x3F
-
uint32_t
LL_RTC_ALMB_GetSubSecondMask
(
void
)
-
Get alarm B Mask the most-significant bits starting at this bit.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR MASKSS LL_RTC_ALMB_GetSubSecondMask
- Return values :
-
If – binary mode is none, Value between Min_Data=0x0 and Max_Data=0xF else Value between Min_Data=0x0 and Max_Data=0x3F
-
void
LL_RTC_ALMB_SetBinAutoClr
(
uint32_t
BinaryAutoClr
)
-
Set alarm B Binary mode auto clear.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR SSCLR LL_RTC_ALMB_SetBinAutoClr
Note
This register can be written only when ALRBE is reset in RTC_CR register, or in initialization mode
Note
SSCLR must be kept to 0 when BCD or mixed mode is used (BIN = 00, 10 or 11).
- Parameters :
-
BinaryAutoClr – This parameter can be one of the following values:
-
uint32_t
LL_RTC_ALMB_GetBinAutoClr
(
void
)
-
Get alarm B Binary mode auto clear.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR SSCLR LL_RTC_ALMB_GetBinAutoClr
- Return values :
-
It – can be one of the following values:
-
void
LL_RTC_ALMB_SetSubSecond
(
uint32_t
Subsecond
)
-
Set alarm B Sub seconds value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR SS LL_RTC_ALMB_SetSubSecond
- Parameters :
-
Subsecond – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF
-
uint32_t
LL_RTC_ALMB_GetSubSecond
(
void
)
-
Get alarm B Sub seconds value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR SS LL_RTC_ALMB_GetSubSecond
- Return values :
-
If – binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF
-
void
LL_RTC_ALMB_Enable
(
void
)
- group RTC_LL_EF_ALARMB
-
Functions
-
void
LL_RTC_ALMB_Enable
(
void
)
-
Enable alarm B.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBE LL_RTC_ALMB_Enable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_ALMB_Disable
(
void
)
-
Disable alarm B.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBE LL_RTC_ALMB_Disable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_ALMB_SetMask
(
uint32_t
Mask
)
-
Specify the alarm B masks.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR MSK4 LL_RTC_ALMB_SetMask
RTC_ALRMBR MSK3 LL_RTC_ALMB_SetMask
RTC_ALRMBR MSK2 LL_RTC_ALMB_SetMask
RTC_ALRMBR MSK1 LL_RTC_ALMB_SetMask
- Parameters :
-
Mask – This parameter can be a combination of the following values:
-
uint32_t
LL_RTC_ALMB_GetMask
(
void
)
-
Get the alarm B masks.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR MSK4 LL_RTC_ALMB_GetMask
RTC_ALRMBR MSK3 LL_RTC_ALMB_GetMask
RTC_ALRMBR MSK2 LL_RTC_ALMB_GetMask
RTC_ALRMBR MSK1 LL_RTC_ALMB_GetMask
- Return values :
-
Returned – value can be can be a combination of the following values:
-
void
LL_RTC_ALMB_EnableWeekday
(
void
)
-
Enable alarm B Week day selection (DU[3:0] represents the week day. DT[1:0] is do not care)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR WDSEL LL_RTC_ALMB_EnableWeekday
-
void
LL_RTC_ALMB_DisableWeekday
(
void
)
-
Disable alarm B Week day selection (DU[3:0] represents the date )
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR WDSEL LL_RTC_ALMB_DisableWeekday
-
uint32_t
LL_RTC_ALMB_IsEnabledWeekday
(
void
)
-
Check if alarm B Week day selection is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR WDSEL LL_RTC_ALMB_IsEnabledWeekday
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_ALMB_SetDay
(
uint32_t
Day
)
-
Set alarm B Day in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR DT LL_RTC_ALMB_SetDay
RTC_ALRMBR DU LL_RTC_ALMB_SetDay
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Day from binary to BCD format
- Parameters :
-
Day – Value between Min_Data=0x01 and Max_Data=0x31
-
uint32_t
LL_RTC_ALMB_GetDay
(
void
)
-
Get alarm B Day in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR DT LL_RTC_ALMB_GetDay
RTC_ALRMBR DU LL_RTC_ALMB_GetDay
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Day from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x01 and Max_Data=0x31
-
void
LL_RTC_ALMB_SetWeekDay
(
uint32_t
WeekDay
)
-
Set alarm B Weekday.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR DU LL_RTC_ALMB_SetWeekDay
- Parameters :
-
WeekDay – This parameter can be one of the following values:
-
uint32_t
LL_RTC_ALMB_GetWeekDay
(
void
)
-
Get alarm B Weekday.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR DU LL_RTC_ALMB_GetWeekDay
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_ALMB_SetTimeFormat
(
uint32_t
TimeFormat
)
-
Set alarm B time format (AM/24-hour or PM notation)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR PM LL_RTC_ALMB_SetTimeFormat
- Parameters :
-
TimeFormat – This parameter can be one of the following values:
-
uint32_t
LL_RTC_ALMB_GetTimeFormat
(
void
)
-
Get alarm B time format (AM/24-hour or PM notation)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR PM LL_RTC_ALMB_GetTimeFormat
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_ALMB_SetHour
(
uint32_t
Hours
)
-
Set alarm B Hours in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR HT LL_RTC_ALMB_SetHour
RTC_ALRMBR HU LL_RTC_ALMB_SetHour
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Hours from binary to BCD format
- Parameters :
-
Hours – Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
uint32_t
LL_RTC_ALMB_GetHour
(
void
)
-
Get alarm B Hours in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR HT LL_RTC_ALMB_GetHour
RTC_ALRMBR HU LL_RTC_ALMB_GetHour
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Hours from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
void
LL_RTC_ALMB_SetMinute
(
uint32_t
Minutes
)
-
Set alarm B Minutes in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR MNT LL_RTC_ALMB_SetMinute
RTC_ALRMBR MNU LL_RTC_ALMB_SetMinute
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Minutes from binary to BCD format
- Parameters :
-
Minutes – between Min_Data=0x00 and Max_Data=0x59
-
uint32_t
LL_RTC_ALMB_GetMinute
(
void
)
-
Get alarm B Minutes in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR MNT LL_RTC_ALMB_GetMinute
RTC_ALRMBR MNU LL_RTC_ALMB_GetMinute
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Minutes from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x59
-
void
LL_RTC_ALMB_SetSecond
(
uint32_t
Seconds
)
-
Set alarm B Seconds in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR ST LL_RTC_ALMB_SetSecond
RTC_ALRMBR SU LL_RTC_ALMB_SetSecond
Note
helper macro LL_RTC_CONVERT_BIN2BCD is available to convert Seconds from binary to BCD format
- Parameters :
-
Seconds – Value between Min_Data=0x00 and Max_Data=0x59
-
uint32_t
LL_RTC_ALMB_GetSecond
(
void
)
-
Get alarm B Seconds in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR ST LL_RTC_ALMB_GetSecond
RTC_ALRMBR SU LL_RTC_ALMB_GetSecond
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Seconds from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x59
-
void
LL_RTC_ALMB_ConfigTime
(
uint32_t
Format12_24
,
uint32_t
Hours
,
uint32_t
Minutes
,
uint32_t
Seconds
)
-
Set alarm B Time (hour, minute and second) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR PM LL_RTC_ALMB_ConfigTime
RTC_ALRMBR HT LL_RTC_ALMB_ConfigTime
RTC_ALRMBR HU LL_RTC_ALMB_ConfigTime
RTC_ALRMBR MNT LL_RTC_ALMB_ConfigTime
RTC_ALRMBR MNU LL_RTC_ALMB_ConfigTime
RTC_ALRMBR ST LL_RTC_ALMB_ConfigTime
RTC_ALRMBR SU LL_RTC_ALMB_ConfigTime
- Parameters :
-
-
Format12_24 – This parameter can be one of the following values:
-
Hours – Value between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
Minutes – Value between Min_Data=0x00 and Max_Data=0x59
-
Seconds – Value between Min_Data=0x00 and Max_Data=0x59
-
-
uint32_t
LL_RTC_ALMB_GetTime
(
void
)
-
Get alarm B Time (hour, minute and second) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBR HT LL_RTC_ALMB_GetTime
RTC_ALRMBR HU LL_RTC_ALMB_GetTime
RTC_ALRMBR MNT LL_RTC_ALMB_GetTime
RTC_ALRMBR MNU LL_RTC_ALMB_GetTime
RTC_ALRMBR ST LL_RTC_ALMB_GetTime
RTC_ALRMBR SU LL_RTC_ALMB_GetTime
Note
helper macros LL_RTC_GET_HOUR, LL_RTC_GET_MINUTE and LL_RTC_GET_SECOND are available to get independently each parameter
- Return values :
-
Combination – of hours, minutes and seconds
-
void
LL_RTC_ALMB_SetSubSecondMask
(
uint32_t
Mask
)
-
Set alarm B Mask the most-significant bits starting at this bit.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR MASKSS LL_RTC_ALMB_SetSubSecondMask
Note
This register can be written only when ALRBE is reset in RTC_CR register, or in initialization mode
- Parameters :
-
Mask – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0xF else Value between Min_Data=0x0 and Max_Data=0x3F
-
uint32_t
LL_RTC_ALMB_GetSubSecondMask
(
void
)
-
Get alarm B Mask the most-significant bits starting at this bit.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR MASKSS LL_RTC_ALMB_GetSubSecondMask
- Return values :
-
If – binary mode is none, Value between Min_Data=0x0 and Max_Data=0xF else Value between Min_Data=0x0 and Max_Data=0x3F
-
void
LL_RTC_ALMB_SetBinAutoClr
(
uint32_t
BinaryAutoClr
)
-
Set alarm B Binary mode auto clear.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR SSCLR LL_RTC_ALMB_SetBinAutoClr
Note
This register can be written only when ALRBE is reset in RTC_CR register, or in initialization mode
Note
SSCLR must be kept to 0 when BCD or mixed mode is used (BIN = 00, 10 or 11).
- Parameters :
-
BinaryAutoClr – This parameter can be one of the following values:
-
uint32_t
LL_RTC_ALMB_GetBinAutoClr
(
void
)
-
Get alarm B Binary mode auto clear.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR SSCLR LL_RTC_ALMB_GetBinAutoClr
- Return values :
-
It – can be one of the following values:
-
void
LL_RTC_ALMB_SetSubSecond
(
uint32_t
Subsecond
)
-
Set alarm B Sub seconds value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR SS LL_RTC_ALMB_SetSubSecond
- Parameters :
-
Subsecond – If binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF
-
uint32_t
LL_RTC_ALMB_GetSubSecond
(
void
)
-
Get alarm B Sub seconds value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ALRMBSSR SS LL_RTC_ALMB_GetSubSecond
- Return values :
-
If – binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF
-
void
LL_RTC_ALMB_Enable
(
void
)
Timestamp ¶
- group RTC_LL_EF_Timestamp
-
Functions
-
void
LL_RTC_TS_EnableInternalEvent
(
void
)
¶
-
Enable internal event timestamp.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ITSE LL_RTC_TS_EnableInternalEvent
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_TS_DisableInternalEvent
(
void
)
¶
-
Disable internal event timestamp.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ITSE LL_RTC_TS_DisableInternalEvent
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
uint32_t
LL_RTC_TS_IsEnabledInternalEvent
(
void
)
¶
-
Check if internal event timestamp is enable or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR RTC_CR_ITSE LL_RTC_TS_IsEnabled
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_TS_Enable
(
void
)
¶
-
Enable Timestamp.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSE LL_RTC_TS_Enable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_TS_Disable
(
void
)
¶
-
Disable Timestamp.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSE LL_RTC_TS_Disable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
uint32_t
LL_RTC_TS_IsEnabled
(
void
)
¶
-
Check if timestamp is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSE LL_RTC_TS_IsEnabled
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_TS_SetActiveEdge
(
uint32_t
Edge
)
¶
-
Set Timestamp event active edge.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSEDGE LL_RTC_TS_SetActiveEdge
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
TSE must be reset when TSEDGE is changed to avoid unwanted TSF setting
- Parameters :
-
Edge – This parameter can be one of the following values:
-
uint32_t
LL_RTC_TS_GetActiveEdge
(
void
)
¶
-
Get Timestamp event active edge.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSEDGE LL_RTC_TS_GetActiveEdge
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
- Return values :
-
Returned – value can be one of the following values:
-
uint32_t
LL_RTC_TS_GetTimeFormat
(
void
)
¶
-
Get Timestamp AM/PM notation (AM or 24-hour format)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSTR PM LL_RTC_TS_GetTimeFormat
- Return values :
-
Returned – value can be one of the following values:
-
uint32_t
LL_RTC_TS_GetHour
(
void
)
¶
-
Get Timestamp Hours in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSTR HT LL_RTC_TS_GetHour
RTC_TSTR HU LL_RTC_TS_GetHour
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Hours from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
uint32_t
LL_RTC_TS_GetMinute
(
void
)
¶
-
Get Timestamp Minutes in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSTR MNT LL_RTC_TS_GetMinute
RTC_TSTR MNU LL_RTC_TS_GetMinute
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Minutes from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x59
-
uint32_t
LL_RTC_TS_GetSecond
(
void
)
¶
-
Get Timestamp Seconds in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSTR ST LL_RTC_TS_GetSecond
RTC_TSTR SU LL_RTC_TS_GetSecond
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Seconds from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x59
-
uint32_t
LL_RTC_TS_GetTime
(
void
)
¶
-
Get Timestamp time (hour, minute and second) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSTR HT LL_RTC_TS_GetTime
RTC_TSTR HU LL_RTC_TS_GetTime
RTC_TSTR MNT LL_RTC_TS_GetTime
RTC_TSTR MNU LL_RTC_TS_GetTime
RTC_TSTR ST LL_RTC_TS_GetTime
RTC_TSTR SU LL_RTC_TS_GetTime
Note
helper macros LL_RTC_GET_HOUR, LL_RTC_GET_MINUTE and LL_RTC_GET_SECOND are available to get independently each parameter
- Return values :
-
Combination – of hours, minutes and seconds
-
uint32_t
LL_RTC_TS_GetTimeAndFormat
(
void
)
¶
-
Get Timestamp time (hour, minute and second) in BCD format and time format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSTR PM LL_RTC_TS_GetTimeAndFormat
RTC_TSTR HT LL_RTC_TS_GetTimeAndFormat
RTC_TSTR HU LL_RTC_TS_GetTimeAndFormat
RTC_TSTR MNT LL_RTC_TS_GetTimeAndFormat
RTC_TSTR MNU LL_RTC_TS_GetTimeAndFormat
RTC_TSTR ST LL_RTC_TS_GetTimeAndFormat
RTC_TSTR SU LL_RTC_TS_GetTimeAndFormat
Note
helper macros LL_RTC_GET_FORMAT LL_RTC_GET_HOUR, LL_RTC_GET_MINUTE and LL_RTC_GET_SECOND are available to get independently each parameter
- Return values :
-
Combination – of format, hours, minutes and seconds (Format: 0x0FHHMMSS)
-
uint32_t
LL_RTC_TS_GetWeekDay
(
void
)
¶
-
Get Timestamp Week day.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSDR WDU LL_RTC_TS_GetWeekDay
- Return values :
-
Returned – value can be one of the following values:
-
uint32_t
LL_RTC_TS_GetMonth
(
void
)
¶
-
Get Timestamp Month in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSDR MT LL_RTC_TS_GetMonth
RTC_TSDR MU LL_RTC_TS_GetMonth
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Month from BCD to Binary format
- Return values :
-
Returned – value can be one of the following values:
-
uint32_t
LL_RTC_TS_GetDay
(
void
)
¶
-
Get Timestamp Day in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSDR DT LL_RTC_TS_GetDay
RTC_TSDR DU LL_RTC_TS_GetDay
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Day from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x01 and Max_Data=0x31
-
uint32_t
LL_RTC_TS_GetDate
(
void
)
¶
-
Get Timestamp date (WeekDay, Day and Month) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSDR WDU LL_RTC_TS_GetDate
RTC_TSDR MT LL_RTC_TS_GetDate
RTC_TSDR MU LL_RTC_TS_GetDate
RTC_TSDR DT LL_RTC_TS_GetDate
RTC_TSDR DU LL_RTC_TS_GetDate
Note
helper macros LL_RTC_GET_WEEKDAY, LL_RTC_GET_MONTH, and LL_RTC_GET_DAY are available to get independently each parameter
- Return values :
-
Combination – of Weekday, Day and Month
-
uint32_t
LL_RTC_TS_GetSubSecond
(
void
)
¶
-
Get time-stamp sub second value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSSSR SS LL_RTC_TS_GetSubSecond
- Return values :
-
If – binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF
-
void
LL_RTC_TS_EnableOnTamper
(
void
)
¶
-
Enable timestamp on tamper detection event.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPTS LL_RTC_TS_EnableOnTamper
-
void
LL_RTC_TS_DisableOnTamper
(
void
)
¶
-
Disable timestamp on tamper detection event.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPTS LL_RTC_TS_DisableOnTamper
-
uint32_t
LL_RTC_TS_IsEnabledOnTamper
(
void
)
¶
-
Check if timestamp on tamper detection is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSE LL_RTC_TS_IsEnabledOnTamper
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_TS_EnableInternalEvent
(
void
)
¶
- group RTC_LL_EF_Timestamp
-
Functions
-
void
LL_RTC_TS_EnableInternalEvent
(
void
)
-
Enable internal event timestamp.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ITSE LL_RTC_TS_EnableInternalEvent
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_TS_DisableInternalEvent
(
void
)
-
Disable internal event timestamp.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ITSE LL_RTC_TS_DisableInternalEvent
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
uint32_t
LL_RTC_TS_IsEnabledInternalEvent
(
void
)
-
Check if internal event timestamp is enable or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR RTC_CR_ITSE LL_RTC_TS_IsEnabled
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_TS_Enable
(
void
)
-
Enable Timestamp.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSE LL_RTC_TS_Enable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_TS_Disable
(
void
)
-
Disable Timestamp.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSE LL_RTC_TS_Disable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
uint32_t
LL_RTC_TS_IsEnabled
(
void
)
-
Check if timestamp is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSE LL_RTC_TS_IsEnabled
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_TS_SetActiveEdge
(
uint32_t
Edge
)
-
Set Timestamp event active edge.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSEDGE LL_RTC_TS_SetActiveEdge
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
TSE must be reset when TSEDGE is changed to avoid unwanted TSF setting
- Parameters :
-
Edge – This parameter can be one of the following values:
-
uint32_t
LL_RTC_TS_GetActiveEdge
(
void
)
-
Get Timestamp event active edge.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSEDGE LL_RTC_TS_GetActiveEdge
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
- Return values :
-
Returned – value can be one of the following values:
-
uint32_t
LL_RTC_TS_GetTimeFormat
(
void
)
-
Get Timestamp AM/PM notation (AM or 24-hour format)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSTR PM LL_RTC_TS_GetTimeFormat
- Return values :
-
Returned – value can be one of the following values:
-
uint32_t
LL_RTC_TS_GetHour
(
void
)
-
Get Timestamp Hours in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSTR HT LL_RTC_TS_GetHour
RTC_TSTR HU LL_RTC_TS_GetHour
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Hours from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
uint32_t
LL_RTC_TS_GetMinute
(
void
)
-
Get Timestamp Minutes in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSTR MNT LL_RTC_TS_GetMinute
RTC_TSTR MNU LL_RTC_TS_GetMinute
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Minutes from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x59
-
uint32_t
LL_RTC_TS_GetSecond
(
void
)
-
Get Timestamp Seconds in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSTR ST LL_RTC_TS_GetSecond
RTC_TSTR SU LL_RTC_TS_GetSecond
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Seconds from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x59
-
uint32_t
LL_RTC_TS_GetTime
(
void
)
-
Get Timestamp time (hour, minute and second) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSTR HT LL_RTC_TS_GetTime
RTC_TSTR HU LL_RTC_TS_GetTime
RTC_TSTR MNT LL_RTC_TS_GetTime
RTC_TSTR MNU LL_RTC_TS_GetTime
RTC_TSTR ST LL_RTC_TS_GetTime
RTC_TSTR SU LL_RTC_TS_GetTime
Note
helper macros LL_RTC_GET_HOUR, LL_RTC_GET_MINUTE and LL_RTC_GET_SECOND are available to get independently each parameter
- Return values :
-
Combination – of hours, minutes and seconds
-
uint32_t
LL_RTC_TS_GetTimeAndFormat
(
void
)
-
Get Timestamp time (hour, minute and second) in BCD format and time format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSTR PM LL_RTC_TS_GetTimeAndFormat
RTC_TSTR HT LL_RTC_TS_GetTimeAndFormat
RTC_TSTR HU LL_RTC_TS_GetTimeAndFormat
RTC_TSTR MNT LL_RTC_TS_GetTimeAndFormat
RTC_TSTR MNU LL_RTC_TS_GetTimeAndFormat
RTC_TSTR ST LL_RTC_TS_GetTimeAndFormat
RTC_TSTR SU LL_RTC_TS_GetTimeAndFormat
Note
helper macros LL_RTC_GET_FORMAT LL_RTC_GET_HOUR, LL_RTC_GET_MINUTE and LL_RTC_GET_SECOND are available to get independently each parameter
- Return values :
-
Combination – of format, hours, minutes and seconds (Format: 0x0FHHMMSS)
-
uint32_t
LL_RTC_TS_GetWeekDay
(
void
)
-
Get Timestamp Week day.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSDR WDU LL_RTC_TS_GetWeekDay
- Return values :
-
Returned – value can be one of the following values:
-
uint32_t
LL_RTC_TS_GetMonth
(
void
)
-
Get Timestamp Month in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSDR MT LL_RTC_TS_GetMonth
RTC_TSDR MU LL_RTC_TS_GetMonth
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Month from BCD to Binary format
- Return values :
-
Returned – value can be one of the following values:
-
uint32_t
LL_RTC_TS_GetDay
(
void
)
-
Get Timestamp Day in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSDR DT LL_RTC_TS_GetDay
RTC_TSDR DU LL_RTC_TS_GetDay
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Day from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x01 and Max_Data=0x31
-
uint32_t
LL_RTC_TS_GetDate
(
void
)
-
Get Timestamp date (WeekDay, Day and Month) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSDR WDU LL_RTC_TS_GetDate
RTC_TSDR MT LL_RTC_TS_GetDate
RTC_TSDR MU LL_RTC_TS_GetDate
RTC_TSDR DT LL_RTC_TS_GetDate
RTC_TSDR DU LL_RTC_TS_GetDate
Note
helper macros LL_RTC_GET_WEEKDAY, LL_RTC_GET_MONTH, and LL_RTC_GET_DAY are available to get independently each parameter
- Return values :
-
Combination – of Weekday, Day and Month
-
uint32_t
LL_RTC_TS_GetSubSecond
(
void
)
-
Get time-stamp sub second value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSSSR SS LL_RTC_TS_GetSubSecond
- Return values :
-
If – binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF
-
void
LL_RTC_TS_EnableOnTamper
(
void
)
-
Enable timestamp on tamper detection event.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPTS LL_RTC_TS_EnableOnTamper
-
void
LL_RTC_TS_DisableOnTamper
(
void
)
-
Disable timestamp on tamper detection event.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPTS LL_RTC_TS_DisableOnTamper
-
uint32_t
LL_RTC_TS_IsEnabledOnTamper
(
void
)
-
Check if timestamp on tamper detection is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSE LL_RTC_TS_IsEnabledOnTamper
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_TS_EnableInternalEvent
(
void
)
- group RTC_LL_EF_Timestamp
-
Functions
-
void
LL_RTC_TS_EnableInternalEvent
(
void
)
-
Enable internal event timestamp.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ITSE LL_RTC_TS_EnableInternalEvent
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_TS_DisableInternalEvent
(
void
)
-
Disable internal event timestamp.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ITSE LL_RTC_TS_DisableInternalEvent
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
uint32_t
LL_RTC_TS_IsEnabledInternalEvent
(
void
)
-
Check if internal event timestamp is enable or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR RTC_CR_ITSE LL_RTC_TS_IsEnabled
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_TS_Enable
(
void
)
-
Enable Timestamp.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSE LL_RTC_TS_Enable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_TS_Disable
(
void
)
-
Disable Timestamp.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSE LL_RTC_TS_Disable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
uint32_t
LL_RTC_TS_IsEnabled
(
void
)
-
Check if timestamp is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSE LL_RTC_TS_IsEnabled
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_TS_SetActiveEdge
(
uint32_t
Edge
)
-
Set Timestamp event active edge.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSEDGE LL_RTC_TS_SetActiveEdge
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
TSE must be reset when TSEDGE is changed to avoid unwanted TSF setting
- Parameters :
-
Edge – This parameter can be one of the following values:
-
uint32_t
LL_RTC_TS_GetActiveEdge
(
void
)
-
Get Timestamp event active edge.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSEDGE LL_RTC_TS_GetActiveEdge
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
- Return values :
-
Returned – value can be one of the following values:
-
uint32_t
LL_RTC_TS_GetTimeFormat
(
void
)
-
Get Timestamp AM/PM notation (AM or 24-hour format)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSTR PM LL_RTC_TS_GetTimeFormat
- Return values :
-
Returned – value can be one of the following values:
-
uint32_t
LL_RTC_TS_GetHour
(
void
)
-
Get Timestamp Hours in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSTR HT LL_RTC_TS_GetHour
RTC_TSTR HU LL_RTC_TS_GetHour
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Hours from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x01 and Max_Data=0x12 or between Min_Data=0x00 and Max_Data=0x23
-
uint32_t
LL_RTC_TS_GetMinute
(
void
)
-
Get Timestamp Minutes in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSTR MNT LL_RTC_TS_GetMinute
RTC_TSTR MNU LL_RTC_TS_GetMinute
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Minutes from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x59
-
uint32_t
LL_RTC_TS_GetSecond
(
void
)
-
Get Timestamp Seconds in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSTR ST LL_RTC_TS_GetSecond
RTC_TSTR SU LL_RTC_TS_GetSecond
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Seconds from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0x59
-
uint32_t
LL_RTC_TS_GetTime
(
void
)
-
Get Timestamp time (hour, minute and second) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSTR HT LL_RTC_TS_GetTime
RTC_TSTR HU LL_RTC_TS_GetTime
RTC_TSTR MNT LL_RTC_TS_GetTime
RTC_TSTR MNU LL_RTC_TS_GetTime
RTC_TSTR ST LL_RTC_TS_GetTime
RTC_TSTR SU LL_RTC_TS_GetTime
Note
helper macros LL_RTC_GET_HOUR, LL_RTC_GET_MINUTE and LL_RTC_GET_SECOND are available to get independently each parameter
- Return values :
-
Combination – of hours, minutes and seconds
-
uint32_t
LL_RTC_TS_GetTimeAndFormat
(
void
)
-
Get Timestamp time (hour, minute and second) in BCD format and time format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSTR PM LL_RTC_TS_GetTimeAndFormat
RTC_TSTR HT LL_RTC_TS_GetTimeAndFormat
RTC_TSTR HU LL_RTC_TS_GetTimeAndFormat
RTC_TSTR MNT LL_RTC_TS_GetTimeAndFormat
RTC_TSTR MNU LL_RTC_TS_GetTimeAndFormat
RTC_TSTR ST LL_RTC_TS_GetTimeAndFormat
RTC_TSTR SU LL_RTC_TS_GetTimeAndFormat
Note
helper macros LL_RTC_GET_FORMAT LL_RTC_GET_HOUR, LL_RTC_GET_MINUTE and LL_RTC_GET_SECOND are available to get independently each parameter
- Return values :
-
Combination – of format, hours, minutes and seconds (Format: 0x0FHHMMSS)
-
uint32_t
LL_RTC_TS_GetWeekDay
(
void
)
-
Get Timestamp Week day.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSDR WDU LL_RTC_TS_GetWeekDay
- Return values :
-
Returned – value can be one of the following values:
-
uint32_t
LL_RTC_TS_GetMonth
(
void
)
-
Get Timestamp Month in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSDR MT LL_RTC_TS_GetMonth
RTC_TSDR MU LL_RTC_TS_GetMonth
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Month from BCD to Binary format
- Return values :
-
Returned – value can be one of the following values:
-
uint32_t
LL_RTC_TS_GetDay
(
void
)
-
Get Timestamp Day in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSDR DT LL_RTC_TS_GetDay
RTC_TSDR DU LL_RTC_TS_GetDay
Note
helper macro LL_RTC_CONVERT_BCD2BIN is available to convert Day from BCD to Binary format
- Return values :
-
Value – between Min_Data=0x01 and Max_Data=0x31
-
uint32_t
LL_RTC_TS_GetDate
(
void
)
-
Get Timestamp date (WeekDay, Day and Month) in BCD format.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSDR WDU LL_RTC_TS_GetDate
RTC_TSDR MT LL_RTC_TS_GetDate
RTC_TSDR MU LL_RTC_TS_GetDate
RTC_TSDR DT LL_RTC_TS_GetDate
RTC_TSDR DU LL_RTC_TS_GetDate
Note
helper macros LL_RTC_GET_WEEKDAY, LL_RTC_GET_MONTH, and LL_RTC_GET_DAY are available to get independently each parameter
- Return values :
-
Combination – of Weekday, Day and Month
-
uint32_t
LL_RTC_TS_GetSubSecond
(
void
)
-
Get time-stamp sub second value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_TSSSR SS LL_RTC_TS_GetSubSecond
- Return values :
-
If – binary mode is none, Value between Min_Data=0x0 and Max_Data=0x7FFF else Value between Min_Data=0x0 and Max_Data=0xFFFFFFFF
-
void
LL_RTC_TS_EnableOnTamper
(
void
)
-
Enable timestamp on tamper detection event.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPTS LL_RTC_TS_EnableOnTamper
-
void
LL_RTC_TS_DisableOnTamper
(
void
)
-
Disable timestamp on tamper detection event.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TAMPTS LL_RTC_TS_DisableOnTamper
-
uint32_t
LL_RTC_TS_IsEnabledOnTamper
(
void
)
-
Check if timestamp on tamper detection is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSE LL_RTC_TS_IsEnabledOnTamper
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_TS_EnableInternalEvent
(
void
)
Wakeup ¶
- group RTC_LL_EF_Wakeup
-
Functions
-
void
LL_RTC_WAKEUP_Enable
(
void
)
¶
-
Enable Wakeup timer.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUTE LL_RTC_WAKEUP_Enable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_WAKEUP_Disable
(
void
)
¶
-
Disable Wakeup timer.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUTE LL_RTC_WAKEUP_Disable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
uint32_t
LL_RTC_WAKEUP_IsEnabled
(
void
)
¶
-
Check if Wakeup timer is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUTE LL_RTC_WAKEUP_IsEnabled
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_WAKEUP_Start
(
uint32_t
Interruption
)
¶
-
Start Wakeup timer in interruption or polling mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUTE LL_RTC_WAKEUP_Start
RTC_CR WUTIE LL_RTC_WAKEUP_Start
- Parameters :
-
Interruption – This parameter can be one of the following values:
-
void
LL_RTC_WAKEUP_Stop
(
void
)
¶
-
Stop Wakeup timer.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUTE LL_RTC_WAKEUP_Stop
RTC_CR WUTIE LL_RTC_WAKEUP_Stop
-
void
LL_RTC_WAKEUP_SetClock
(
uint32_t
WakeupClock
)
¶
-
Select Wakeup clock.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUCKSEL LL_RTC_WAKEUP_SetClock
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
Bit can be written only when RTC_CR WUTE bit = 0 and RTC_ICSR WUTWF bit = 1
- Parameters :
-
WakeupClock – This parameter can be one of the following values:
-
uint32_t
LL_RTC_WAKEUP_GetClock
(
void
)
¶
-
Get Wakeup clock.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUCKSEL LL_RTC_WAKEUP_GetClock
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_WAKEUP_SetAutoReload
(
uint32_t
Value
)
¶
-
Set Wakeup auto-reload value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_WUTR WUT LL_RTC_WAKEUP_SetAutoReload
Note
Bit can be written only when WUTWF is set to 1 in RTC_ICSR
- Parameters :
-
Value – Value between Min_Data=0x00 and Max_Data=0xFFFF
-
uint32_t
LL_RTC_WAKEUP_GetAutoReload
(
void
)
¶
-
Get Wakeup auto-reload value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_WUTR WUT LL_RTC_WAKEUP_GetAutoReload
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0xFFFF
-
void
LL_RTC_WAKEUP_SetAutoClear
(
uint32_t
Value
)
¶
-
Set Wakeup auto-reload clear value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_WUTR WUTOCLR LL_RTC_WAKEUP_SetAutoClear
Note
Bit can be written only when WUTWF is set to 1 in RTC_ICSR
- Parameters :
-
Value – Value between Min_Data=0x00 and Max_Data=0xFFFF
-
uint32_t
LL_RTC_WAKEUP_GetAutoClear
(
void
)
¶
-
Get Wakeup auto-reload clear value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_WUTR WUTOCLR LL_RTC_WAKEUP_GetAutoClear
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0xFFFF
-
void
LL_RTC_WAKEUP_Config
(
uint32_t
Reload
,
uint32_t
Clear
)
¶
-
Set Wakeup auto-reload and auto-reload clear values.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_WUTR WUTOCLR LL_RTC_WAKEUP_Config
RTC_WUTR WUT LL_RTC_WAKEUP_Config
Note
Bit can be written only when WUTWF is set to 1 in RTC_ICSR
- Parameters :
-
-
Reload – Value between Min_Data=0x00 and Max_Data=0xFFFF
-
Clear – Value between Min_Data=0x00 and Max_Data=0xFFFF
-
-
void
LL_RTC_WAKEUP_Enable
(
void
)
¶
- group RTC_LL_EF_Wakeup
-
Functions
-
void
LL_RTC_WAKEUP_Enable
(
void
)
-
Enable Wakeup timer.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUTE LL_RTC_WAKEUP_Enable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_WAKEUP_Disable
(
void
)
-
Disable Wakeup timer.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUTE LL_RTC_WAKEUP_Disable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
uint32_t
LL_RTC_WAKEUP_IsEnabled
(
void
)
-
Check if Wakeup timer is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUTE LL_RTC_WAKEUP_IsEnabled
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_WAKEUP_Start
(
uint32_t
Interruption
)
-
Start Wakeup timer in interruption or polling mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUTE LL_RTC_WAKEUP_Start
RTC_CR WUTIE LL_RTC_WAKEUP_Start
- Parameters :
-
Interruption – This parameter can be one of the following values:
-
void
LL_RTC_WAKEUP_Stop
(
void
)
-
Stop Wakeup timer.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUTE LL_RTC_WAKEUP_Stop
RTC_CR WUTIE LL_RTC_WAKEUP_Stop
-
void
LL_RTC_WAKEUP_SetClock
(
uint32_t
WakeupClock
)
-
Select Wakeup clock.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUCKSEL LL_RTC_WAKEUP_SetClock
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
Bit can be written only when RTC_CR WUTE bit = 0 and RTC_ICSR WUTWF bit = 1
- Parameters :
-
WakeupClock – This parameter can be one of the following values:
-
uint32_t
LL_RTC_WAKEUP_GetClock
(
void
)
-
Get Wakeup clock.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUCKSEL LL_RTC_WAKEUP_GetClock
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_WAKEUP_SetAutoReload
(
uint32_t
Value
)
-
Set Wakeup auto-reload value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_WUTR WUT LL_RTC_WAKEUP_SetAutoReload
Note
Bit can be written only when WUTWF is set to 1 in RTC_ICSR
- Parameters :
-
Value – Value between Min_Data=0x00 and Max_Data=0xFFFF
-
uint32_t
LL_RTC_WAKEUP_GetAutoReload
(
void
)
-
Get Wakeup auto-reload value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_WUTR WUT LL_RTC_WAKEUP_GetAutoReload
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0xFFFF
-
void
LL_RTC_WAKEUP_SetAutoClear
(
uint32_t
Value
)
-
Set Wakeup auto-reload clear value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_WUTR WUTOCLR LL_RTC_WAKEUP_SetAutoClear
Note
Bit can be written only when WUTWF is set to 1 in RTC_ICSR
- Parameters :
-
Value – Value between Min_Data=0x00 and Max_Data=0xFFFF
-
uint32_t
LL_RTC_WAKEUP_GetAutoClear
(
void
)
-
Get Wakeup auto-reload clear value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_WUTR WUTOCLR LL_RTC_WAKEUP_GetAutoClear
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0xFFFF
-
void
LL_RTC_WAKEUP_Config
(
uint32_t
Reload
,
uint32_t
Clear
)
-
Set Wakeup auto-reload and auto-reload clear values.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_WUTR WUTOCLR LL_RTC_WAKEUP_Config
RTC_WUTR WUT LL_RTC_WAKEUP_Config
Note
Bit can be written only when WUTWF is set to 1 in RTC_ICSR
- Parameters :
-
-
Reload – Value between Min_Data=0x00 and Max_Data=0xFFFF
-
Clear – Value between Min_Data=0x00 and Max_Data=0xFFFF
-
-
void
LL_RTC_WAKEUP_Enable
(
void
)
- group RTC_LL_EF_Wakeup
-
Functions
-
void
LL_RTC_WAKEUP_Enable
(
void
)
-
Enable Wakeup timer.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUTE LL_RTC_WAKEUP_Enable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_WAKEUP_Disable
(
void
)
-
Disable Wakeup timer.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUTE LL_RTC_WAKEUP_Disable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
uint32_t
LL_RTC_WAKEUP_IsEnabled
(
void
)
-
Check if Wakeup timer is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUTE LL_RTC_WAKEUP_IsEnabled
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_WAKEUP_Start
(
uint32_t
Interruption
)
-
Start Wakeup timer in interruption or polling mode.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUTE LL_RTC_WAKEUP_Start
RTC_CR WUTIE LL_RTC_WAKEUP_Start
- Parameters :
-
Interruption – This parameter can be one of the following values:
-
void
LL_RTC_WAKEUP_Stop
(
void
)
-
Stop Wakeup timer.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUTE LL_RTC_WAKEUP_Stop
RTC_CR WUTIE LL_RTC_WAKEUP_Stop
-
void
LL_RTC_WAKEUP_SetClock
(
uint32_t
WakeupClock
)
-
Select Wakeup clock.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUCKSEL LL_RTC_WAKEUP_SetClock
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
Bit can be written only when RTC_CR WUTE bit = 0 and RTC_ICSR WUTWF bit = 1
- Parameters :
-
WakeupClock – This parameter can be one of the following values:
-
uint32_t
LL_RTC_WAKEUP_GetClock
(
void
)
-
Get Wakeup clock.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUCKSEL LL_RTC_WAKEUP_GetClock
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_WAKEUP_SetAutoReload
(
uint32_t
Value
)
-
Set Wakeup auto-reload value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_WUTR WUT LL_RTC_WAKEUP_SetAutoReload
Note
Bit can be written only when WUTWF is set to 1 in RTC_ICSR
- Parameters :
-
Value – Value between Min_Data=0x00 and Max_Data=0xFFFF
-
uint32_t
LL_RTC_WAKEUP_GetAutoReload
(
void
)
-
Get Wakeup auto-reload value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_WUTR WUT LL_RTC_WAKEUP_GetAutoReload
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0xFFFF
-
void
LL_RTC_WAKEUP_SetAutoClear
(
uint32_t
Value
)
-
Set Wakeup auto-reload clear value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_WUTR WUTOCLR LL_RTC_WAKEUP_SetAutoClear
Note
Bit can be written only when WUTWF is set to 1 in RTC_ICSR
- Parameters :
-
Value – Value between Min_Data=0x00 and Max_Data=0xFFFF
-
uint32_t
LL_RTC_WAKEUP_GetAutoClear
(
void
)
-
Get Wakeup auto-reload clear value.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_WUTR WUTOCLR LL_RTC_WAKEUP_GetAutoClear
- Return values :
-
Value – between Min_Data=0x00 and Max_Data=0xFFFF
-
void
LL_RTC_WAKEUP_Config
(
uint32_t
Reload
,
uint32_t
Clear
)
-
Set Wakeup auto-reload and auto-reload clear values.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_WUTR WUTOCLR LL_RTC_WAKEUP_Config
RTC_WUTR WUT LL_RTC_WAKEUP_Config
Note
Bit can be written only when WUTWF is set to 1 in RTC_ICSR
- Parameters :
-
-
Reload – Value between Min_Data=0x00 and Max_Data=0xFFFF
-
Clear – Value between Min_Data=0x00 and Max_Data=0xFFFF
-
-
void
LL_RTC_WAKEUP_Enable
(
void
)
Calibration ¶
- group RTC_LL_EF_Calibration
-
Functions
-
void
LL_RTC_CAL_SetOutputFreq
(
uint32_t
Frequency
)
¶
-
Set Calibration output frequency (1 Hz or 512 Hz)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR COE LL_RTC_CAL_SetOutputFreq
RTC_CR COSEL LL_RTC_CAL_SetOutputFreq
Note
Bits are write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
- Parameters :
-
Frequency – This parameter can be one of the following values:
-
uint32_t
LL_RTC_CAL_GetOutputFreq
(
void
)
¶
-
Get Calibration output frequency (1 Hz or 512 Hz)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR COE LL_RTC_CAL_GetOutputFreq
RTC_CR COSEL LL_RTC_CAL_GetOutputFreq
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_CAL_SetPulse
(
uint32_t
Pulse
)
¶
-
Insert or not One RTCCLK pulse every 2exp11 pulses (frequency increased by 488.5 ppm)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR CALP LL_RTC_CAL_SetPulse
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
Bit can be written only when RECALPF is set to 0 in RTC_ICSR
- Parameters :
-
Pulse – This parameter can be one of the following values:
-
uint32_t
LL_RTC_CAL_IsPulseInserted
(
void
)
¶
-
Check if one RTCCLK has been inserted or not every 2exp11 pulses (frequency increased by 488.5 ppm)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR CALP LL_RTC_CAL_IsPulseInserted
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_CAL_SetPeriod
(
uint32_t
Period
)
¶
-
Set the calibration cycle period.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR CALW8 LL_RTC_CAL_SetPeriod
RTC_CALR CALW16 LL_RTC_CAL_SetPeriod
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
Bit can be written only when RECALPF is set to 0 in RTC_ICSR
- Parameters :
-
Period – This parameter can be one of the following values:
-
uint32_t
LL_RTC_CAL_GetPeriod
(
void
)
¶
-
Get the calibration cycle period.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR CALW8 LL_RTC_CAL_GetPeriod
RTC_CALR CALW16 LL_RTC_CAL_GetPeriod
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_CAL_SetMinus
(
uint32_t
CalibMinus
)
¶
-
Set Calibration minus.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR CALM LL_RTC_CAL_SetMinus
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
Bit can be written only when RECALPF is set to 0 in RTC_ICSR
- Parameters :
-
CalibMinus – Value between Min_Data=0x00 and Max_Data=0x1FF
-
uint32_t
LL_RTC_CAL_GetMinus
(
void
)
¶
-
Get Calibration minus.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR CALM LL_RTC_CAL_GetMinus
- Return values :
-
Value – between Min_Data=0x00 and Max_Data= 0x1FF
-
void
LL_RTC_CAL_SetSmoothCalibration
(
uint32_t
SmoothCalibPeriod
,
uint32_t
SmoothCalibPlusPulses
,
uint32_t
SmoothCalibMinusPulsesValue
)
¶
-
Set smooth calibration.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR CALP LL_RTC_CAL_SetSmoothCalibration
RTC_CALR CALW8 LL_RTC_CAL_SetSmoothCalibration
RTC_CALR CALW16 LL_RTC_CAL_SetSmoothCalibration
RTC_CALR CALM LL_RTC_CAL_SetSmoothCalibration
- Parameters :
-
-
SmoothCalibPeriod – This parameter can be one of the following values:
-
SmoothCalibPlusPulses – This parameter can be one of the following values:
-
SmoothCalibMinusPulsesValue – Value between Min_Data=0x00 and Max_Data= 0x1FF
-
-
uint32_t
LL_RTC_CAL_IsEnabledSmoothCalibration
(
void
)
¶
-
Check if the smooth calibration is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR CALP LL_RTC_CAL_IsEnabledSmoothCalibration
RTC_CALR CALM LL_RTC_CAL_IsEnabledSmoothCalibration
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_CAL_LowPower_Enable
(
void
)
¶
-
Enable Calibration Low Power.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR LPCAL LL_RTC_CAL_LowPower_Enable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
Bit can be written only when RECALPF is set to 0
-
void
LL_RTC_CAL_LowPower_Disable
(
void
)
¶
-
Disable Calibration Low Power.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR LPCAL LL_RTC_CAL_LowPower_Disable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
Bit can be written only when RECALPF is set to 0
-
uint32_t
LL_RTC_CAL_LowPower_IsEnabled
(
void
)
¶
-
Check if Calibration Low Power is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR LPCAL LL_RTC_CAL_LowPower_IsEnabled
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_CAL_SetOutputFreq
(
uint32_t
Frequency
)
¶
- group RTC_LL_EF_Calibration
-
Functions
-
void
LL_RTC_CAL_SetOutputFreq
(
uint32_t
Frequency
)
-
Set Calibration output frequency (1 Hz or 512 Hz)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR COE LL_RTC_CAL_SetOutputFreq
RTC_CR COSEL LL_RTC_CAL_SetOutputFreq
Note
Bits are write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
- Parameters :
-
Frequency – This parameter can be one of the following values:
-
uint32_t
LL_RTC_CAL_GetOutputFreq
(
void
)
-
Get Calibration output frequency (1 Hz or 512 Hz)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR COE LL_RTC_CAL_GetOutputFreq
RTC_CR COSEL LL_RTC_CAL_GetOutputFreq
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_CAL_SetPulse
(
uint32_t
Pulse
)
-
Insert or not One RTCCLK pulse every 2exp11 pulses (frequency increased by 488.5 ppm)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR CALP LL_RTC_CAL_SetPulse
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
Bit can be written only when RECALPF is set to 0 in RTC_ICSR
- Parameters :
-
Pulse – This parameter can be one of the following values:
-
uint32_t
LL_RTC_CAL_IsPulseInserted
(
void
)
-
Check if one RTCCLK has been inserted or not every 2exp11 pulses (frequency increased by 488.5 ppm)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR CALP LL_RTC_CAL_IsPulseInserted
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_CAL_SetPeriod
(
uint32_t
Period
)
-
Set the calibration cycle period.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR CALW8 LL_RTC_CAL_SetPeriod
RTC_CALR CALW16 LL_RTC_CAL_SetPeriod
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
Bit can be written only when RECALPF is set to 0 in RTC_ICSR
- Parameters :
-
Period – This parameter can be one of the following values:
-
uint32_t
LL_RTC_CAL_GetPeriod
(
void
)
-
Get the calibration cycle period.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR CALW8 LL_RTC_CAL_GetPeriod
RTC_CALR CALW16 LL_RTC_CAL_GetPeriod
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_CAL_SetMinus
(
uint32_t
CalibMinus
)
-
Set Calibration minus.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR CALM LL_RTC_CAL_SetMinus
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
Bit can be written only when RECALPF is set to 0 in RTC_ICSR
- Parameters :
-
CalibMinus – Value between Min_Data=0x00 and Max_Data=0x1FF
-
uint32_t
LL_RTC_CAL_GetMinus
(
void
)
-
Get Calibration minus.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR CALM LL_RTC_CAL_GetMinus
- Return values :
-
Value – between Min_Data=0x00 and Max_Data= 0x1FF
-
void
LL_RTC_CAL_SetSmoothCalibration
(
uint32_t
SmoothCalibPeriod
,
uint32_t
SmoothCalibPlusPulses
,
uint32_t
SmoothCalibMinusPulsesValue
)
-
Set smooth calibration.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR CALP LL_RTC_CAL_SetSmoothCalibration
RTC_CALR CALW8 LL_RTC_CAL_SetSmoothCalibration
RTC_CALR CALW16 LL_RTC_CAL_SetSmoothCalibration
RTC_CALR CALM LL_RTC_CAL_SetSmoothCalibration
- Parameters :
-
-
SmoothCalibPeriod – This parameter can be one of the following values:
-
SmoothCalibPlusPulses – This parameter can be one of the following values:
-
SmoothCalibMinusPulsesValue – Value between Min_Data=0x00 and Max_Data= 0x1FF
-
-
uint32_t
LL_RTC_CAL_IsEnabledSmoothCalibration
(
void
)
-
Check if the smooth calibration is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR CALP LL_RTC_CAL_IsEnabledSmoothCalibration
RTC_CALR CALM LL_RTC_CAL_IsEnabledSmoothCalibration
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_CAL_LowPower_Enable
(
void
)
-
Enable Calibration Low Power.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR LPCAL LL_RTC_CAL_LowPower_Enable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
Bit can be written only when RECALPF is set to 0
-
void
LL_RTC_CAL_LowPower_Disable
(
void
)
-
Disable Calibration Low Power.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR LPCAL LL_RTC_CAL_LowPower_Disable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
Bit can be written only when RECALPF is set to 0
-
uint32_t
LL_RTC_CAL_LowPower_IsEnabled
(
void
)
-
Check if Calibration Low Power is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR LPCAL LL_RTC_CAL_LowPower_IsEnabled
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_CAL_SetOutputFreq
(
uint32_t
Frequency
)
- group RTC_LL_EF_Calibration
-
Functions
-
void
LL_RTC_CAL_SetOutputFreq
(
uint32_t
Frequency
)
-
Set Calibration output frequency (1 Hz or 512 Hz)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR COE LL_RTC_CAL_SetOutputFreq
RTC_CR COSEL LL_RTC_CAL_SetOutputFreq
Note
Bits are write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
- Parameters :
-
Frequency – This parameter can be one of the following values:
-
uint32_t
LL_RTC_CAL_GetOutputFreq
(
void
)
-
Get Calibration output frequency (1 Hz or 512 Hz)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR COE LL_RTC_CAL_GetOutputFreq
RTC_CR COSEL LL_RTC_CAL_GetOutputFreq
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_CAL_SetPulse
(
uint32_t
Pulse
)
-
Insert or not One RTCCLK pulse every 2exp11 pulses (frequency increased by 488.5 ppm)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR CALP LL_RTC_CAL_SetPulse
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
Bit can be written only when RECALPF is set to 0 in RTC_ICSR
- Parameters :
-
Pulse – This parameter can be one of the following values:
-
uint32_t
LL_RTC_CAL_IsPulseInserted
(
void
)
-
Check if one RTCCLK has been inserted or not every 2exp11 pulses (frequency increased by 488.5 ppm)
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR CALP LL_RTC_CAL_IsPulseInserted
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_CAL_SetPeriod
(
uint32_t
Period
)
-
Set the calibration cycle period.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR CALW8 LL_RTC_CAL_SetPeriod
RTC_CALR CALW16 LL_RTC_CAL_SetPeriod
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
Bit can be written only when RECALPF is set to 0 in RTC_ICSR
- Parameters :
-
Period – This parameter can be one of the following values:
-
uint32_t
LL_RTC_CAL_GetPeriod
(
void
)
-
Get the calibration cycle period.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR CALW8 LL_RTC_CAL_GetPeriod
RTC_CALR CALW16 LL_RTC_CAL_GetPeriod
- Return values :
-
Returned – value can be one of the following values:
-
void
LL_RTC_CAL_SetMinus
(
uint32_t
CalibMinus
)
-
Set Calibration minus.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR CALM LL_RTC_CAL_SetMinus
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
Bit can be written only when RECALPF is set to 0 in RTC_ICSR
- Parameters :
-
CalibMinus – Value between Min_Data=0x00 and Max_Data=0x1FF
-
uint32_t
LL_RTC_CAL_GetMinus
(
void
)
-
Get Calibration minus.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR CALM LL_RTC_CAL_GetMinus
- Return values :
-
Value – between Min_Data=0x00 and Max_Data= 0x1FF
-
void
LL_RTC_CAL_SetSmoothCalibration
(
uint32_t
SmoothCalibPeriod
,
uint32_t
SmoothCalibPlusPulses
,
uint32_t
SmoothCalibMinusPulsesValue
)
-
Set smooth calibration.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR CALP LL_RTC_CAL_SetSmoothCalibration
RTC_CALR CALW8 LL_RTC_CAL_SetSmoothCalibration
RTC_CALR CALW16 LL_RTC_CAL_SetSmoothCalibration
RTC_CALR CALM LL_RTC_CAL_SetSmoothCalibration
- Parameters :
-
-
SmoothCalibPeriod – This parameter can be one of the following values:
-
SmoothCalibPlusPulses – This parameter can be one of the following values:
-
SmoothCalibMinusPulsesValue – Value between Min_Data=0x00 and Max_Data= 0x1FF
-
-
uint32_t
LL_RTC_CAL_IsEnabledSmoothCalibration
(
void
)
-
Check if the smooth calibration is enabled.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR CALP LL_RTC_CAL_IsEnabledSmoothCalibration
RTC_CALR CALM LL_RTC_CAL_IsEnabledSmoothCalibration
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_CAL_LowPower_Enable
(
void
)
-
Enable Calibration Low Power.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR LPCAL LL_RTC_CAL_LowPower_Enable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
Bit can be written only when RECALPF is set to 0
-
void
LL_RTC_CAL_LowPower_Disable
(
void
)
-
Disable Calibration Low Power.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR LPCAL LL_RTC_CAL_LowPower_Disable
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
Note
Bit can be written only when RECALPF is set to 0
-
uint32_t
LL_RTC_CAL_LowPower_IsEnabled
(
void
)
-
Check if Calibration Low Power is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CALR LPCAL LL_RTC_CAL_LowPower_IsEnabled
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_CAL_SetOutputFreq
(
uint32_t
Frequency
)
FLAG_Management ¶
- group RTC_LL_EF_FLAG_Management
-
Functions
-
uint32_t
LL_RTC_IsActiveFlag_RECALP
(
void
)
¶
-
Get Recalibration pending flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR RECALPF LL_RTC_IsActiveFlag_RECALP
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_TS
(
void
)
¶
-
Get Timestamp flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR TSF LL_RTC_IsActiveFlag_TS
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_TSOV
(
void
)
¶
-
Get Timestamp overflow flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR TSOVF LL_RTC_IsActiveFlag_TSOV
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_ITS
(
void
)
¶
-
Get Internal Timestamp flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR ITSF LL_RTC_IsActiveFlag_ITS
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_WUT
(
void
)
¶
-
Get Wakeup timer flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR WUTF LL_RTC_IsActiveFlag_WUT
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_ALRA
(
void
)
¶
-
Get alarm A flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR ALRAF LL_RTC_IsActiveFlag_ALRA
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_ALRB
(
void
)
¶
-
Get alarm B flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR ALRBF LL_RTC_IsActiveFlag_ALRB
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_ALR
(
const
uint32_t
Alarm
)
¶
-
Get selected alarm flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR ALRBF LL_RTC_IsActiveFlag_ALR
RTC_SR ALRAF LL_RTC_IsActiveFlag_ALR
- Parameters :
-
Alarm – This parameter can be one of the following values:
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_SSRU
(
void
)
¶
-
Get SSR Underflow flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR SSRUF LL_RTC_IsActiveFlag_SSRU
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_ClearFlag_TS
(
void
)
¶
-
Clear Timestamp flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR CTSF LL_RTC_ClearFlag_TS
-
void
LL_RTC_ClearFlag_TSOV
(
void
)
¶
-
Clear Timestamp overflow flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SCR CTSOVF LL_RTC_ClearFlag_TSOV
-
void
LL_RTC_ClearFlag_ITS
(
void
)
¶
-
Clear Internal Timestamp flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SCR CITSF LL_RTC_ClearFlag_ITS
-
void
LL_RTC_ClearFlag_WUT
(
void
)
¶
-
Clear Wakeup timer flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SCR CWUTF LL_RTC_ClearFlag_WUT
-
void
LL_RTC_ClearFlag_ALRA
(
void
)
¶
-
Clear alarm A flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SCR CALRAF LL_RTC_ClearFlag_ALRA
-
void
LL_RTC_ClearFlag_ALRB
(
void
)
¶
-
Clear alarm B flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SCR CALRBF LL_RTC_ClearFlag_ALRB
-
void
LL_RTC_ClearFlag_ALR
(
uint32_t
Alarm
)
¶
-
Clear the selected alarm flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SCR CALRBF LL_RTC_ClearFlag_ALR
RTC_SCR CALRAF LL_RTC_ClearFlag_ALR
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
void
LL_RTC_ClearFlag_SSRU
(
void
)
¶
-
Clear SSR Underflow flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SCR CSSRUF LL_RTC_ClearFlag_SSRU
-
uint32_t
LL_RTC_IsActiveFlag_INIT
(
void
)
¶
-
Get Initialization flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR INITF LL_RTC_IsActiveFlag_INIT
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_RS
(
void
)
¶
-
Get Registers synchronization flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR RSF LL_RTC_IsActiveFlag_RS
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_ClearFlag_RS
(
void
)
¶
-
Clear Registers synchronization flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR RSF LL_RTC_ClearFlag_RS
-
uint32_t
LL_RTC_IsActiveFlag_INITS
(
void
)
¶
-
Get Initialization status flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR INITS LL_RTC_IsActiveFlag_INITS
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_SHP
(
void
)
¶
-
Get Shift operation pending flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR SHPF LL_RTC_IsActiveFlag_SHP
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_WUTW
(
void
)
¶
-
Get Wakeup timer write flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR WUTWF LL_RTC_IsActiveFlag_WUTW
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_ALRAM
(
void
)
¶
-
Get alarm A masked flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_MISR ALRAMF LL_RTC_IsActiveFlag_ALRAM
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_SSRUM
(
void
)
¶
-
Get SSR Underflow masked flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_MISR SSRUMF LL_RTC_IsActiveFlag_SSRUM
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_ALRBM
(
void
)
¶
-
Get alarm B masked flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_MISR ALRBMF LL_RTC_IsActiveFlag_ALRBM
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_WUTM
(
void
)
¶
-
Get Wakeup timer masked flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_MISR WUTMF LL_RTC_IsActiveFlag_WUTM
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_TSM
(
void
)
¶
-
Get Timestamp masked flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_MISR TSMF LL_RTC_IsActiveFlag_TSM
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_TSOVM
(
void
)
¶
-
Get Timestamp overflow masked flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_MISR TSOVMF LL_RTC_IsActiveFlag_TSOVM
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_ITSM
(
void
)
¶
-
Get Internal Timestamp masked flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_MISR ITSMF LL_RTC_IsActiveFlag_ITSM
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_RECALP
(
void
)
¶
- group RTC_LL_EF_FLAG_Management
-
Functions
-
uint32_t
LL_RTC_IsActiveFlag_RECALP
(
void
)
-
Get Recalibration pending flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR RECALPF LL_RTC_IsActiveFlag_RECALP
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_TS
(
void
)
-
Get Timestamp flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR TSF LL_RTC_IsActiveFlag_TS
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_TSOV
(
void
)
-
Get Timestamp overflow flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR TSOVF LL_RTC_IsActiveFlag_TSOV
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_ITS
(
void
)
-
Get Internal Timestamp flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR ITSF LL_RTC_IsActiveFlag_ITS
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_WUT
(
void
)
-
Get Wakeup timer flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR WUTF LL_RTC_IsActiveFlag_WUT
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_ALRA
(
void
)
-
Get alarm A flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR ALRAF LL_RTC_IsActiveFlag_ALRA
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_ALRB
(
void
)
-
Get alarm B flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR ALRBF LL_RTC_IsActiveFlag_ALRB
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_ALR
(
const
uint32_t
Alarm
)
-
Get selected alarm flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR ALRBF LL_RTC_IsActiveFlag_ALR
RTC_SR ALRAF LL_RTC_IsActiveFlag_ALR
- Parameters :
-
Alarm – This parameter can be one of the following values:
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_SSRU
(
void
)
-
Get SSR Underflow flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR SSRUF LL_RTC_IsActiveFlag_SSRU
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_ClearFlag_TS
(
void
)
-
Clear Timestamp flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR CTSF LL_RTC_ClearFlag_TS
-
void
LL_RTC_ClearFlag_TSOV
(
void
)
-
Clear Timestamp overflow flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SCR CTSOVF LL_RTC_ClearFlag_TSOV
-
void
LL_RTC_ClearFlag_ITS
(
void
)
-
Clear Internal Timestamp flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SCR CITSF LL_RTC_ClearFlag_ITS
-
void
LL_RTC_ClearFlag_WUT
(
void
)
-
Clear Wakeup timer flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SCR CWUTF LL_RTC_ClearFlag_WUT
-
void
LL_RTC_ClearFlag_ALRA
(
void
)
-
Clear alarm A flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SCR CALRAF LL_RTC_ClearFlag_ALRA
-
void
LL_RTC_ClearFlag_ALRB
(
void
)
-
Clear alarm B flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SCR CALRBF LL_RTC_ClearFlag_ALRB
-
void
LL_RTC_ClearFlag_ALR
(
uint32_t
Alarm
)
-
Clear the selected alarm flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SCR CALRBF LL_RTC_ClearFlag_ALR
RTC_SCR CALRAF LL_RTC_ClearFlag_ALR
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
void
LL_RTC_ClearFlag_SSRU
(
void
)
-
Clear SSR Underflow flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SCR CSSRUF LL_RTC_ClearFlag_SSRU
-
uint32_t
LL_RTC_IsActiveFlag_INIT
(
void
)
-
Get Initialization flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR INITF LL_RTC_IsActiveFlag_INIT
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_RS
(
void
)
-
Get Registers synchronization flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR RSF LL_RTC_IsActiveFlag_RS
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_ClearFlag_RS
(
void
)
-
Clear Registers synchronization flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR RSF LL_RTC_ClearFlag_RS
-
uint32_t
LL_RTC_IsActiveFlag_INITS
(
void
)
-
Get Initialization status flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR INITS LL_RTC_IsActiveFlag_INITS
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_SHP
(
void
)
-
Get Shift operation pending flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR SHPF LL_RTC_IsActiveFlag_SHP
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_WUTW
(
void
)
-
Get Wakeup timer write flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR WUTWF LL_RTC_IsActiveFlag_WUTW
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_ALRAM
(
void
)
-
Get alarm A masked flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_MISR ALRAMF LL_RTC_IsActiveFlag_ALRAM
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_SSRUM
(
void
)
-
Get SSR Underflow masked flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_MISR SSRUMF LL_RTC_IsActiveFlag_SSRUM
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_ALRBM
(
void
)
-
Get alarm B masked flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_MISR ALRBMF LL_RTC_IsActiveFlag_ALRBM
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_WUTM
(
void
)
-
Get Wakeup timer masked flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_MISR WUTMF LL_RTC_IsActiveFlag_WUTM
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_TSM
(
void
)
-
Get Timestamp masked flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_MISR TSMF LL_RTC_IsActiveFlag_TSM
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_TSOVM
(
void
)
-
Get Timestamp overflow masked flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_MISR TSOVMF LL_RTC_IsActiveFlag_TSOVM
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_ITSM
(
void
)
-
Get Internal Timestamp masked flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_MISR ITSMF LL_RTC_IsActiveFlag_ITSM
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_RECALP
(
void
)
- group RTC_LL_EF_FLAG_Management
-
Functions
-
uint32_t
LL_RTC_IsActiveFlag_RECALP
(
void
)
-
Get Recalibration pending flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR RECALPF LL_RTC_IsActiveFlag_RECALP
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_TS
(
void
)
-
Get Timestamp flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR TSF LL_RTC_IsActiveFlag_TS
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_TSOV
(
void
)
-
Get Timestamp overflow flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR TSOVF LL_RTC_IsActiveFlag_TSOV
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_ITS
(
void
)
-
Get Internal Timestamp flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR ITSF LL_RTC_IsActiveFlag_ITS
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_WUT
(
void
)
-
Get Wakeup timer flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR WUTF LL_RTC_IsActiveFlag_WUT
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_ALRA
(
void
)
-
Get alarm A flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR ALRAF LL_RTC_IsActiveFlag_ALRA
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_ALRB
(
void
)
-
Get alarm B flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR ALRBF LL_RTC_IsActiveFlag_ALRB
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_ALR
(
const
uint32_t
Alarm
)
-
Get selected alarm flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR ALRBF LL_RTC_IsActiveFlag_ALR
RTC_SR ALRAF LL_RTC_IsActiveFlag_ALR
- Parameters :
-
Alarm – This parameter can be one of the following values:
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_SSRU
(
void
)
-
Get SSR Underflow flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR SSRUF LL_RTC_IsActiveFlag_SSRU
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_ClearFlag_TS
(
void
)
-
Clear Timestamp flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SR CTSF LL_RTC_ClearFlag_TS
-
void
LL_RTC_ClearFlag_TSOV
(
void
)
-
Clear Timestamp overflow flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SCR CTSOVF LL_RTC_ClearFlag_TSOV
-
void
LL_RTC_ClearFlag_ITS
(
void
)
-
Clear Internal Timestamp flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SCR CITSF LL_RTC_ClearFlag_ITS
-
void
LL_RTC_ClearFlag_WUT
(
void
)
-
Clear Wakeup timer flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SCR CWUTF LL_RTC_ClearFlag_WUT
-
void
LL_RTC_ClearFlag_ALRA
(
void
)
-
Clear alarm A flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SCR CALRAF LL_RTC_ClearFlag_ALRA
-
void
LL_RTC_ClearFlag_ALRB
(
void
)
-
Clear alarm B flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SCR CALRBF LL_RTC_ClearFlag_ALRB
-
void
LL_RTC_ClearFlag_ALR
(
uint32_t
Alarm
)
-
Clear the selected alarm flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SCR CALRBF LL_RTC_ClearFlag_ALR
RTC_SCR CALRAF LL_RTC_ClearFlag_ALR
- Parameters :
-
Alarm – This parameter can be one of the following values:
-
LL_RTC_ALARM_A Alarm A
-
LL_RTC_ALARM_B Alarm B
-
-
void
LL_RTC_ClearFlag_SSRU
(
void
)
-
Clear SSR Underflow flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SCR CSSRUF LL_RTC_ClearFlag_SSRU
-
uint32_t
LL_RTC_IsActiveFlag_INIT
(
void
)
-
Get Initialization flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR INITF LL_RTC_IsActiveFlag_INIT
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_RS
(
void
)
-
Get Registers synchronization flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR RSF LL_RTC_IsActiveFlag_RS
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_ClearFlag_RS
(
void
)
-
Clear Registers synchronization flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR RSF LL_RTC_ClearFlag_RS
-
uint32_t
LL_RTC_IsActiveFlag_INITS
(
void
)
-
Get Initialization status flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR INITS LL_RTC_IsActiveFlag_INITS
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_SHP
(
void
)
-
Get Shift operation pending flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR SHPF LL_RTC_IsActiveFlag_SHP
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_WUTW
(
void
)
-
Get Wakeup timer write flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_ICSR WUTWF LL_RTC_IsActiveFlag_WUTW
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_ALRAM
(
void
)
-
Get alarm A masked flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_MISR ALRAMF LL_RTC_IsActiveFlag_ALRAM
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_SSRUM
(
void
)
-
Get SSR Underflow masked flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_MISR SSRUMF LL_RTC_IsActiveFlag_SSRUM
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_ALRBM
(
void
)
-
Get alarm B masked flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_MISR ALRBMF LL_RTC_IsActiveFlag_ALRBM
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_WUTM
(
void
)
-
Get Wakeup timer masked flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_MISR WUTMF LL_RTC_IsActiveFlag_WUTM
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_TSM
(
void
)
-
Get Timestamp masked flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_MISR TSMF LL_RTC_IsActiveFlag_TSM
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_TSOVM
(
void
)
-
Get Timestamp overflow masked flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_MISR TSOVMF LL_RTC_IsActiveFlag_TSOVM
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_ITSM
(
void
)
-
Get Internal Timestamp masked flag.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_MISR ITSMF LL_RTC_IsActiveFlag_ITSM
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsActiveFlag_RECALP
(
void
)
SECURITY_Management ¶
- group RTC_LL_EF_SECURITY
-
Functions
-
void
LL_RTC_ConfigSecure
(
uint32_t
attribute
)
¶
-
Set RTC secure level.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SECCFGR SEC LL_RTC_ConfigSecure
RTC_SECCFGR INITSEC LL_RTC_ConfigSecure
RTC_SECCFGR CALSEC LL_RTC_ConfigSecure
RTC_SECCFGR TSSEC LL_RTC_ConfigSecure
RTC_SECCFGR WUTSEC LL_RTC_ConfigSecure
RTC_SECCFGR ALRASEC LL_RTC_ConfigSecure
RTC_SECCFGR ALRBSEC LL_RTC_ConfigSecure
Note
secure features are relevant if LL_RTC_SECURE_FULL_NO
- Parameters :
-
attribute – This parameter can be a combination of the following values:
-
uint32_t
LL_RTC_GetConfigSecure
(
void
)
¶
-
Get RTC secure level.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SECCFGR SEC LL_RTC_ConfigSecure
RTC_SECCFGR INISEC LL_RTC_ConfigSecure
RTC_SECCFGR CALSEC LL_RTC_ConfigSecure
RTC_SECCFGR TSSEC LL_RTC_ConfigSecure
RTC_SECCFGR WUTSEC LL_RTC_ConfigSecure
RTC_SECCFGR ALRASEC LL_RTC_ConfigSecure
RTC_SECCFGR ALRBSEC LL_RTC_ConfigSecure
Note
Secure features is relevant if LL_RTC_SECURE_FULL_YES
- Return values :
-
Combination – of the following values:
-
void
LL_RTC_ConfigSecure
(
uint32_t
attribute
)
¶
- group RTC_LL_EF_SECURITY
-
Functions
-
void
LL_RTC_ConfigSecure
(
uint32_t
attribute
)
-
Set RTC secure level.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SECCFGR SEC LL_RTC_ConfigSecure
RTC_SECCFGR INITSEC LL_RTC_ConfigSecure
RTC_SECCFGR CALSEC LL_RTC_ConfigSecure
RTC_SECCFGR TSSEC LL_RTC_ConfigSecure
RTC_SECCFGR WUTSEC LL_RTC_ConfigSecure
RTC_SECCFGR ALRASEC LL_RTC_ConfigSecure
RTC_SECCFGR ALRBSEC LL_RTC_ConfigSecure
Note
secure features are relevant if LL_RTC_SECURE_FULL_NO
- Parameters :
-
attribute – This parameter can be a combination of the following values:
-
uint32_t
LL_RTC_GetConfigSecure
(
void
)
-
Get RTC secure level.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SECCFGR SEC LL_RTC_ConfigSecure
RTC_SECCFGR INISEC LL_RTC_ConfigSecure
RTC_SECCFGR CALSEC LL_RTC_ConfigSecure
RTC_SECCFGR TSSEC LL_RTC_ConfigSecure
RTC_SECCFGR WUTSEC LL_RTC_ConfigSecure
RTC_SECCFGR ALRASEC LL_RTC_ConfigSecure
RTC_SECCFGR ALRBSEC LL_RTC_ConfigSecure
Note
Secure features is relevant if LL_RTC_SECURE_FULL_YES
- Return values :
-
Combination – of the following values:
-
void
LL_RTC_ConfigSecure
(
uint32_t
attribute
)
- group RTC_LL_EF_SECURITY
-
Functions
-
void
LL_RTC_ConfigSecure
(
uint32_t
attribute
)
-
Set RTC secure level.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SECCFGR SEC LL_RTC_ConfigSecure
RTC_SECCFGR INITSEC LL_RTC_ConfigSecure
RTC_SECCFGR CALSEC LL_RTC_ConfigSecure
RTC_SECCFGR TSSEC LL_RTC_ConfigSecure
RTC_SECCFGR WUTSEC LL_RTC_ConfigSecure
RTC_SECCFGR ALRASEC LL_RTC_ConfigSecure
RTC_SECCFGR ALRBSEC LL_RTC_ConfigSecure
Note
secure features are relevant if LL_RTC_SECURE_FULL_NO
- Parameters :
-
attribute – This parameter can be a combination of the following values:
-
uint32_t
LL_RTC_GetConfigSecure
(
void
)
-
Get RTC secure level.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_SECCFGR SEC LL_RTC_ConfigSecure
RTC_SECCFGR INISEC LL_RTC_ConfigSecure
RTC_SECCFGR CALSEC LL_RTC_ConfigSecure
RTC_SECCFGR TSSEC LL_RTC_ConfigSecure
RTC_SECCFGR WUTSEC LL_RTC_ConfigSecure
RTC_SECCFGR ALRASEC LL_RTC_ConfigSecure
RTC_SECCFGR ALRBSEC LL_RTC_ConfigSecure
Note
Secure features is relevant if LL_RTC_SECURE_FULL_YES
- Return values :
-
Combination – of the following values:
-
void
LL_RTC_ConfigSecure
(
uint32_t
attribute
)
PRIVILEGE_Management ¶
- group RTC_LL_EF_PRIVILEGE
-
Functions
-
void
LL_RTC_ConfigPrivilege
(
uint32_t
attribute
)
¶
-
Set RTC privilege level.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_PRIVCFGR PRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR INITPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR CALPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR TSPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR WUTPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR ALRAPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR ALRBPRIV LL_RTC_ConfigPrivilege
Note
Privilege features are relevant if LL_RTC_PRIVILEGE_FULL_NO
- Parameters :
-
attribute – This parameter can be a combination of the following values:
-
uint32_t
LL_RTC_GetConfigPrivilege
(
void
)
¶
-
Get RTC privilege level.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_PRIVCFGR PRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR INITPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR CALPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR TSPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR WUTPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR ALRAPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR ALRBPRIV LL_RTC_ConfigPrivilege
Note
Privilege features are relevant if LL_RTC_PRIVILEGE_FULL_NO
- Return values :
-
Combination – of the following values:
-
void
LL_RTC_ConfigPrivilege
(
uint32_t
attribute
)
¶
- group RTC_LL_EF_PRIVILEGE
-
Functions
-
void
LL_RTC_ConfigPrivilege
(
uint32_t
attribute
)
-
Set RTC privilege level.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_PRIVCFGR PRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR INITPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR CALPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR TSPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR WUTPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR ALRAPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR ALRBPRIV LL_RTC_ConfigPrivilege
Note
Privilege features are relevant if LL_RTC_PRIVILEGE_FULL_NO
- Parameters :
-
attribute – This parameter can be a combination of the following values:
-
uint32_t
LL_RTC_GetConfigPrivilege
(
void
)
-
Get RTC privilege level.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_PRIVCFGR PRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR INITPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR CALPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR TSPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR WUTPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR ALRAPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR ALRBPRIV LL_RTC_ConfigPrivilege
Note
Privilege features are relevant if LL_RTC_PRIVILEGE_FULL_NO
- Return values :
-
Combination – of the following values:
-
void
LL_RTC_ConfigPrivilege
(
uint32_t
attribute
)
- group RTC_LL_EF_PRIVILEGE
-
Functions
-
void
LL_RTC_ConfigPrivilege
(
uint32_t
attribute
)
-
Set RTC privilege level.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_PRIVCFGR PRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR INITPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR CALPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR TSPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR WUTPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR ALRAPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR ALRBPRIV LL_RTC_ConfigPrivilege
Note
Privilege features are relevant if LL_RTC_PRIVILEGE_FULL_NO
- Parameters :
-
attribute – This parameter can be a combination of the following values:
-
uint32_t
LL_RTC_GetConfigPrivilege
(
void
)
-
Get RTC privilege level.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_PRIVCFGR PRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR INITPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR CALPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR TSPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR WUTPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR ALRAPRIV LL_RTC_ConfigPrivilege
RTC_PRIVCFGR ALRBPRIV LL_RTC_ConfigPrivilege
Note
Privilege features are relevant if LL_RTC_PRIVILEGE_FULL_NO
- Return values :
-
Combination – of the following values:
-
void
LL_RTC_ConfigPrivilege
(
uint32_t
attribute
)
IT_Management ¶
- group RTC_LL_EF_IT_Management
-
Functions
-
void
LL_RTC_EnableIT_TS
(
void
)
¶
-
Enable Timestamp interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSIE LL_RTC_EnableIT_TS
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_DisableIT_TS
(
void
)
¶
-
Disable Timestamp interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSIE LL_RTC_DisableIT_TS
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_EnableIT_WUT
(
void
)
¶
-
Enable Wakeup timer interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUTIE LL_RTC_EnableIT_WUT
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_DisableIT_WUT
(
void
)
¶
-
Disable Wakeup timer interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUTIE LL_RTC_DisableIT_WUT
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_EnableIT_ALRB
(
void
)
¶
-
Enable Alarm B interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBIE LL_RTC_EnableIT_ALRB
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_DisableIT_ALRB
(
void
)
¶
-
Disable alarm B interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBIE LL_RTC_DisableIT_ALRB
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_EnableIT_ALRA
(
void
)
¶
-
Enable alarm A interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRAIE LL_RTC_EnableIT_ALRA
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_DisableIT_ALRA
(
void
)
¶
-
Disable alarm A interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRAIE LL_RTC_DisableIT_ALRA
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_EnableIT_SSRU
(
void
)
¶
-
Enable SSR Underflow interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR SSRUIE LL_RTC_EnableIT_SSRU
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_DisableIT_SSRU
(
void
)
¶
-
Disable SSR Underflow interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR SSRUIE LL_RTC_DisableIT_SSRU
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
uint32_t
LL_RTC_IsEnabledIT_TS
(
void
)
¶
-
Check if Timestamp interrupt is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSIE LL_RTC_IsEnabledIT_TS
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsEnabledIT_WUT
(
void
)
¶
-
Check if Wakeup timer interrupt is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUTIE LL_RTC_IsEnabledIT_WUT
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsEnabledIT_ALRA
(
void
)
¶
-
Check if alarm A interrupt is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRAIE LL_RTC_IsEnabledIT_ALRA
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsEnabledIT_ALRB
(
void
)
¶
-
Check if alarm B interrupt is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBIE LL_RTC_IsEnabledIT_ALRB
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsEnabledIT_SSRU
(
void
)
¶
-
Check if SSR Underflow interrupt is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR SSRUIE LL_RTC_IsEnabledIT_SSRU
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_EnableIT_TS
(
void
)
¶
- group RTC_LL_EF_IT_Management
-
Functions
-
void
LL_RTC_EnableIT_TS
(
void
)
-
Enable Timestamp interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSIE LL_RTC_EnableIT_TS
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_DisableIT_TS
(
void
)
-
Disable Timestamp interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSIE LL_RTC_DisableIT_TS
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_EnableIT_WUT
(
void
)
-
Enable Wakeup timer interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUTIE LL_RTC_EnableIT_WUT
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_DisableIT_WUT
(
void
)
-
Disable Wakeup timer interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUTIE LL_RTC_DisableIT_WUT
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_EnableIT_ALRB
(
void
)
-
Enable Alarm B interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBIE LL_RTC_EnableIT_ALRB
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_DisableIT_ALRB
(
void
)
-
Disable alarm B interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBIE LL_RTC_DisableIT_ALRB
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_EnableIT_ALRA
(
void
)
-
Enable alarm A interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRAIE LL_RTC_EnableIT_ALRA
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_DisableIT_ALRA
(
void
)
-
Disable alarm A interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRAIE LL_RTC_DisableIT_ALRA
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_EnableIT_SSRU
(
void
)
-
Enable SSR Underflow interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR SSRUIE LL_RTC_EnableIT_SSRU
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_DisableIT_SSRU
(
void
)
-
Disable SSR Underflow interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR SSRUIE LL_RTC_DisableIT_SSRU
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
uint32_t
LL_RTC_IsEnabledIT_TS
(
void
)
-
Check if Timestamp interrupt is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSIE LL_RTC_IsEnabledIT_TS
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsEnabledIT_WUT
(
void
)
-
Check if Wakeup timer interrupt is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUTIE LL_RTC_IsEnabledIT_WUT
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsEnabledIT_ALRA
(
void
)
-
Check if alarm A interrupt is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRAIE LL_RTC_IsEnabledIT_ALRA
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsEnabledIT_ALRB
(
void
)
-
Check if alarm B interrupt is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBIE LL_RTC_IsEnabledIT_ALRB
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsEnabledIT_SSRU
(
void
)
-
Check if SSR Underflow interrupt is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR SSRUIE LL_RTC_IsEnabledIT_SSRU
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_EnableIT_TS
(
void
)
- group RTC_LL_EF_IT_Management
-
Functions
-
void
LL_RTC_EnableIT_TS
(
void
)
-
Enable Timestamp interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSIE LL_RTC_EnableIT_TS
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_DisableIT_TS
(
void
)
-
Disable Timestamp interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSIE LL_RTC_DisableIT_TS
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_EnableIT_WUT
(
void
)
-
Enable Wakeup timer interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUTIE LL_RTC_EnableIT_WUT
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_DisableIT_WUT
(
void
)
-
Disable Wakeup timer interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUTIE LL_RTC_DisableIT_WUT
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_EnableIT_ALRB
(
void
)
-
Enable Alarm B interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBIE LL_RTC_EnableIT_ALRB
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_DisableIT_ALRB
(
void
)
-
Disable alarm B interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBIE LL_RTC_DisableIT_ALRB
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_EnableIT_ALRA
(
void
)
-
Enable alarm A interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRAIE LL_RTC_EnableIT_ALRA
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_DisableIT_ALRA
(
void
)
-
Disable alarm A interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRAIE LL_RTC_DisableIT_ALRA
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_EnableIT_SSRU
(
void
)
-
Enable SSR Underflow interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR SSRUIE LL_RTC_EnableIT_SSRU
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
void
LL_RTC_DisableIT_SSRU
(
void
)
-
Disable SSR Underflow interrupt.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR SSRUIE LL_RTC_DisableIT_SSRU
Note
Bit is write-protected. LL_RTC_DisableWriteProtection function must preferably be called before
-
uint32_t
LL_RTC_IsEnabledIT_TS
(
void
)
-
Check if Timestamp interrupt is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR TSIE LL_RTC_IsEnabledIT_TS
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsEnabledIT_WUT
(
void
)
-
Check if Wakeup timer interrupt is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR WUTIE LL_RTC_IsEnabledIT_WUT
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsEnabledIT_ALRA
(
void
)
-
Check if alarm A interrupt is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRAIE LL_RTC_IsEnabledIT_ALRA
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsEnabledIT_ALRB
(
void
)
-
Check if alarm B interrupt is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR ALRBIE LL_RTC_IsEnabledIT_ALRB
- Return values :
-
State – of bit (1 or 0)
-
uint32_t
LL_RTC_IsEnabledIT_SSRU
(
void
)
-
Check if SSR Underflow interrupt is enabled or not.
- Reference Manual to LL API cross reference (Register Field Functions)
-
RTC_CR SSRUIE LL_RTC_IsEnabledIT_SSRU
- Return values :
-
State – of bit (1 or 0)
-
void
LL_RTC_EnableIT_TS
(
void
)