PSoC 6 Peripheral Driver Library

General Description

Functions

cy_en_rtc_status_t Cy_RTC_EnableDstTime (cy_stc_rtc_dst_t const *dstTime, cy_stc_rtc_config_t const *timeDate)
 The function sets the DST time and configures the ALARM2 interrupt register with the appropriate DST time. More...
 

Function Documentation

◆ Cy_RTC_EnableDstTime()

cy_en_rtc_status_t Cy_RTC_EnableDstTime ( cy_stc_rtc_dst_t const *  dstTime,
cy_stc_rtc_config_t const *  timeDate 
)

The function sets the DST time and configures the ALARM2 interrupt register with the appropriate DST time.

This function sets the DST stop time if the current time is already in the DST period. The DST period is a period of time between the DST start time and DST stop time. The DST start time and DST stop time is presented in the DST configuration structure, see cy_stc_rtc_dst_t.

Parameters
dstTimeThe DST configuration structure, see cy_stc_rtc_dst_t.
timeDateThe time and date structure. The the appropriate DST time is set based on this time and date, see cy_stc_rtc_config_t.
Returns
cy_en_rtc_status_t A validation check result of RTC register update.