HAL
LL_RTC_ALMB_Init() is only used within HAL.
 
Symbols
loading...
Files
loading...

LL_RTC_ALMB_Init() function

Set the RTC Alarm B.

Syntax

ErrorStatus LL_RTC_ALMB_Init(RTC_TypeDef *RTCx,     uint32_t RTC_Format,     LL_RTC_AlarmTypeDef *RTC_AlarmStruct);
Implemented in stm32f4xx_ll_rtc.c:562

Arguments

RTCx

RTC Instance

RTC_Format

This parameter can be one of the following values: @arg LL_RTC_FORMAT_BIN @arg LL_RTC_FORMAT_BCD

RTC_AlarmStruct

pointer to a LL_RTC_AlarmTypeDef structure that contains the alarm configuration parameters.

Return value

An ErrorStatus enumeration value: - SUCCESS: ALARMB registers are configured - ERROR: ALARMB registers are not configured

Notes

The Alarm register can only be written when the corresponding Alarm is disabled (LL_RTC_ALMB_Disable function).