PSoC 6 Peripheral Driver Library
cy_stc_rtc_config_t Struct Reference

Description

This is the data structure that is used to configure the rtc time and date values.

Data Fields

uint32_t sec
 Seconds value, range [0-59].
 
uint32_t min
 Minutes value, range [0-59].
 
uint32_t hour
 Hour, range depends on hrFormat, if hrFormat = CY_RTC_24_HOURS, range [0-23]; If hrFormat = CY_RTC_12_HOURS, range [1-12] and appropriate AM/PM day period should be set (amPm)
 
cy_en_rtc_am_pm_t amPm
 AM/PM hour period, see cy_en_rtc_am_pm_t. More...
 
cy_en_rtc_hours_format_t hrFormat
 Hours format, see cy_en_rtc_hours_format_t.
 
uint32_t dayOfWeek
 Day of the week, range [1-7], see Day of the week definitions.
 
uint32_t date
 Date of month, range [1-31].
 
uint32_t month
 Month, range [1-12]. More...
 
uint32_t year
 Year, range [0-99].
 

Field Documentation

◆ amPm

cy_en_rtc_am_pm_t cy_stc_rtc_config_t::amPm

AM/PM hour period, see cy_en_rtc_am_pm_t.

This element is actual when hrFormat = CY_RTC_12_HOURS. The firmware ignores this element if hrFormat = CY_RTC_24_HOURS

◆ month

uint32_t cy_stc_rtc_config_t::month

Month, range [1-12].

See Month definitions