PSoC 6 Peripheral Driver Library
cy_stc_rtc_alarm_t Struct Reference

Description

Decimal data structure that is used to save the Alarms.

Data Fields

uint32_t sec
 Alarm seconds, range [0-59]. More...
 
cy_en_rtc_alarm_enable_t secEn
 Enable alarm on seconds matching, see cy_en_rtc_alarm_enable_t. More...
 
uint32_t min
 Alarm minutes, range [0-59]. More...
 
cy_en_rtc_alarm_enable_t minEn
 Enable alarm on minutes matching, see cy_en_rtc_alarm_enable_t. More...
 
uint32_t hour
 Alarm hours, range [0-23] The appropriate ALARMX interrupt is be asserted on matching with this value if hourEn is previous enabled (hourEn = 1)
 
cy_en_rtc_alarm_enable_t hourEn
 Enable alarm on hours matching, see cy_en_rtc_alarm_enable_t. More...
 
uint32_t dayOfWeek
 Alarm day of the week, range [1-7] The appropriate ALARMX interrupt is be asserted on matching with this value if dayOfWeek is previous enabled (dayOfWeekEn = 1)
 
cy_en_rtc_alarm_enable_t dayOfWeekEn
 Enable alarm on day of the week matching, see cy_en_rtc_alarm_enable_t.
 
uint32_t date
 Alarm date, range [1-31]. More...
 
cy_en_rtc_alarm_enable_t dateEn
 Enable alarm on date matching, see cy_en_rtc_alarm_enable_t. More...
 
uint32_t month
 Alarm Month, range [1-12]. More...
 
cy_en_rtc_alarm_enable_t monthEn
 Enable alarm on month matching, see cy_en_rtc_alarm_enable_t. More...
 
cy_en_rtc_alarm_enable_t almEn
 Enable Alarm for appropriate ALARMX, see cy_en_rtc_alarm_enable_t. More...
 

Field Documentation

◆ sec

uint32_t cy_stc_rtc_alarm_t::sec

Alarm seconds, range [0-59].

The appropriate ALARMX interrupt is be asserted on matching with this value if secEn is previous enabled (secEn = 1)

◆ secEn

cy_en_rtc_alarm_enable_t cy_stc_rtc_alarm_t::secEn

Enable alarm on seconds matching, see cy_en_rtc_alarm_enable_t.

◆ min

uint32_t cy_stc_rtc_alarm_t::min

Alarm minutes, range [0-59].

The appropriate ALARMX interrupt is be asserted on matching with this value if minEn is previous enabled (minEn = 1)

◆ minEn

cy_en_rtc_alarm_enable_t cy_stc_rtc_alarm_t::minEn

Enable alarm on minutes matching, see cy_en_rtc_alarm_enable_t.

◆ hourEn

cy_en_rtc_alarm_enable_t cy_stc_rtc_alarm_t::hourEn

Enable alarm on hours matching, see cy_en_rtc_alarm_enable_t.

◆ date

uint32_t cy_stc_rtc_alarm_t::date

Alarm date, range [1-31].

The appropriate ALARMX interrupt is be asserted on matching with this value if dateEn is previous enabled (dateEn = 1)

◆ dateEn

cy_en_rtc_alarm_enable_t cy_stc_rtc_alarm_t::dateEn

Enable alarm on date matching, see cy_en_rtc_alarm_enable_t.

◆ month

uint32_t cy_stc_rtc_alarm_t::month

Alarm Month, range [1-12].

The appropriate ALARMX interrupt is be asserted on matching with this value if dateEn is previous enabled (dateEn = 1)

◆ monthEn

cy_en_rtc_alarm_enable_t cy_stc_rtc_alarm_t::monthEn

Enable alarm on month matching, see cy_en_rtc_alarm_enable_t.

◆ almEn

cy_en_rtc_alarm_enable_t cy_stc_rtc_alarm_t::almEn

Enable Alarm for appropriate ALARMX, see cy_en_rtc_alarm_enable_t.

If all alarm structure elements are enabled (almEn = CY_RTC_ALARM_ENABLE) the alarm interrupt is be asserted every second.