MTB CAT1 Peripheral driver library
cy_stc_rtc_dst_format_t Struct Reference

Description

This is DST structure for DST feature setting.

Structure is combined with the fixed format and the relative format. It is used to save the DST time and date fixed or relative time format.

Data Fields

cy_en_rtc_dst_format_t format
 DST format. More...
 
uint32_t hour
 Should be filled for both format types. More...
 
uint32_t dayOfMonth
 Day of Month, range[1-31]. More...
 
uint32_t weekOfMonth
 Week of month, range[1-6]. More...
 
uint32_t dayOfWeek
 Day of the week, this element should be filled in condition that format = CY_RTC_DST_RELATIVE. More...
 
uint32_t month
 Month value, range[1-12], see Month definitions. More...
 

Field Documentation

◆ format

cy_en_rtc_dst_format_t cy_stc_rtc_dst_format_t::format

DST format.

See /ref cy_en_rtc_dst_format_t. Based on this value other structure elements should be filled or could be ignored

◆ hour

uint32_t cy_stc_rtc_dst_format_t::hour

Should be filled for both format types.

Hour is always presented in 24hour format, range[0-23]

◆ dayOfMonth

uint32_t cy_stc_rtc_dst_format_t::dayOfMonth

Day of Month, range[1-31].

This element should be filled if format = CY_RTC_DST_FIXED. Firmware calculates this value in condition that format = CY_RTC_DST_RELATIVE is selected

◆ weekOfMonth

uint32_t cy_stc_rtc_dst_format_t::weekOfMonth

Week of month, range[1-6].

This element should be filled if format = CY_RTC_DST_RELATIVE. Firmware calculates dayOfMonth value based on weekOfMonth and dayOfWeek values

◆ dayOfWeek

uint32_t cy_stc_rtc_dst_format_t::dayOfWeek

Day of the week, this element should be filled in condition that format = CY_RTC_DST_RELATIVE.

Range[1- 7], see Day of the week definitions. Firmware calculates dayOfMonth value based on dayOfWeek and weekOfMonth values

◆ month

uint32_t cy_stc_rtc_dst_format_t::month

Month value, range[1-12], see Month definitions.

This value should be filled for both format types