MTB CAT1 Peripheral driver library
Enumerated Types

General Description

Enumerations

enum  cy_en_rtc_status_t {
  CY_RTC_SUCCESS = 0x00U,
  CY_RTC_BAD_PARAM = CY_RTC_ID | CY_PDL_STATUS_ERROR | 0x01U,
  CY_RTC_TIMEOUT = CY_RTC_ID | CY_PDL_STATUS_ERROR | 0x02U,
  CY_RTC_INVALID_STATE = CY_RTC_ID | CY_PDL_STATUS_ERROR | 0x03U,
  CY_RTC_UNKNOWN = CY_RTC_ID | CY_PDL_STATUS_ERROR | 0xFFU
}
 RTC status enumeration. More...
 
enum  cy_en_rtc_clock_freq_t {
  CY_RTC_FREQ_WCO_32768_HZ,
  CY_RTC_FREQ_60_HZ,
  CY_RTC_FREQ_50_HZ
}
 This enumeration is used to set frequency by changing the it pre-scaler. More...
 
enum  cy_en_rtc_alarm_t {
  CY_RTC_ALARM_1,
  CY_RTC_ALARM_2
}
 This enumeration is used to set/get information for alarm 1 or alarm 2. More...
 
enum  cy_en_rtc_hours_format_t {
  CY_RTC_24_HOURS,
  CY_RTC_12_HOURS
}
 This enumeration is used to set/get hours format. More...
 
enum  cy_en_rtc_write_status_t {
  CY_RTC_WRITE_DISABLED,
  CY_RTC_WRITE_ENABLED
}
 Enumeration to configure the RTC Write register. More...
 
enum  cy_en_rtc_dst_format_t {
  CY_RTC_DST_RELATIVE,
  CY_RTC_DST_FIXED
}
 Enumeration used to set/get DST format. More...
 
enum  cy_en_rtc_am_pm_t {
  CY_RTC_AM,
  CY_RTC_PM
}
 Enumeration to indicate the AM/PM period of day. More...
 
enum  cy_en_rtc_alarm_enable_t {
  CY_RTC_ALARM_DISABLE,
  CY_RTC_ALARM_ENABLE
}
 Enumeration to enable/disable the RTC alarm on match with required value. More...
 
enum  cy_en_rtc_clk_select_sources_t {
  CY_RTC_CLK_SELECT_WCO = 0U,
  CY_RTC_CLK_SELECT_ALTBAK = 1U,
  CY_RTC_CLK_SELECT_ILO = 2U,
  CY_RTC_CLK_SELECT_LPECO_PRESCALER = 3U,
  CY_RTC_CLK_SELECT_PILO = 4U
}
 Enumeration to list all the clock sources for RTC. More...
 
enum  cy_en_rtc_calib_sign_t {
  CY_RTC_CALIB_SIGN_NEGATIVE = 0,
  CY_RTC_CALIB_SIGN_POSITIVE = 1
}
 Enumeration to select the sign of calibration for RTC. More...
 
enum  cy_en_rtc_calib_sel_t {
  CY_RTC_CAL_SEL_CAL512 = 0,
  CY_RTC_CAL_SEL_CAL2 = 2,
  CY_RTC_CAL_SEL_CAL1 = 3
}
 Enumeration to select the calibration wave output signal. More...
 

Enumeration Type Documentation

◆ cy_en_rtc_status_t

RTC status enumeration.

Enumerator
CY_RTC_SUCCESS 

Successful.

CY_RTC_BAD_PARAM 

One or more invalid parameters.

CY_RTC_TIMEOUT 

Time-out occurs.

CY_RTC_INVALID_STATE 

Operation not setup or is in an improper state.

CY_RTC_UNKNOWN 

Unknown failure.

◆ cy_en_rtc_clock_freq_t

This enumeration is used to set frequency by changing the it pre-scaler.

Enumerator
CY_RTC_FREQ_WCO_32768_HZ 

prescaler value for 32.768 kHz oscillator

CY_RTC_FREQ_60_HZ 

prescaler value for 60 Hz source

CY_RTC_FREQ_50_HZ 

prescaler value for 50 Hz source

◆ cy_en_rtc_alarm_t

This enumeration is used to set/get information for alarm 1 or alarm 2.

Enumerator
CY_RTC_ALARM_1 

Alarm 1 enum.

CY_RTC_ALARM_2 

Alarm 2 enum.

◆ cy_en_rtc_hours_format_t

This enumeration is used to set/get hours format.

Enumerator
CY_RTC_24_HOURS 

The 24 hour format.

CY_RTC_12_HOURS 

The 12 hour (AM/PM) format.

◆ cy_en_rtc_write_status_t

Enumeration to configure the RTC Write register.

Enumerator
CY_RTC_WRITE_DISABLED 

Writing the RTC is disabled.

CY_RTC_WRITE_ENABLED 

Writing the RTC is enabled.

◆ cy_en_rtc_dst_format_t

Enumeration used to set/get DST format.

Enumerator
CY_RTC_DST_RELATIVE 

Relative DST format.

CY_RTC_DST_FIXED 

Fixed DST format.

◆ cy_en_rtc_am_pm_t

Enumeration to indicate the AM/PM period of day.

Enumerator
CY_RTC_AM 

AM period of day.

CY_RTC_PM 

PM period of day.

◆ cy_en_rtc_alarm_enable_t

Enumeration to enable/disable the RTC alarm on match with required value.

Enumerator
CY_RTC_ALARM_DISABLE 

Disable alarm on match with required value.

CY_RTC_ALARM_ENABLE 

Enable alarm on match with required value.

◆ cy_en_rtc_clk_select_sources_t

Enumeration to list all the clock sources for RTC.

Enumerator
CY_RTC_CLK_SELECT_WCO 

Select WCO as input to RTC.

CY_RTC_CLK_SELECT_ALTBAK 

Select ALTBAK as input to RTC.

CY_RTC_CLK_SELECT_ILO 

Select ILO as input to RTC.

CY_RTC_CLK_SELECT_LPECO_PRESCALER 

Select LPECO_PRESCALER as input to RTC.

CY_RTC_CLK_SELECT_PILO 

Select PILO as input to RTC.

◆ cy_en_rtc_calib_sign_t

Enumeration to select the sign of calibration for RTC.

Enumerator
CY_RTC_CALIB_SIGN_NEGATIVE 

Negative sign: remove pulses.

CY_RTC_CALIB_SIGN_POSITIVE 

Positive sign: add pulses.

◆ cy_en_rtc_calib_sel_t

Enumeration to select the calibration wave output signal.

Enumerator
CY_RTC_CAL_SEL_CAL512 

512Hz wave, not affected by calibration setting, (not supported for 50/60Hz input clock: CTL.PRESCALER!=0)

CY_RTC_CAL_SEL_CAL2 

2Hz wave, includes the effect of the calibration setting, (not supported for 50/60Hz input clock: CTL.PRESCALER!=0)

CY_RTC_CAL_SEL_CAL1 

1Hz wave, includes the effect of the calibration setting (supported for all input clocks)