MTB CAT1 Peripheral driver library
Enumerated types

General Description

Enumerations

enum  cy_en_evtgen_status_t {
  CY_EVTGEN_SUCCESS = 0UL,
  CY_EVTGEN_BAD_PARAM
}
 Specifies return values meaning. More...
 
enum  cy_en_evtgen_counter_status_t {
  CY_EVTGEN_COUNTER_STATUS_INVALID = 0UL,
  CY_EVTGEN_COUNTER_STATUS_VALID = 1UL
}
 Returns the state of the Active Counter in the function Cy_EvtGen_GetCounterStatus.
 
enum  cy_en_evtgen_ratio_dynamic_mode_t {
  CY_EVTGEN_RATIO_DYNAMIC_MODE0 = 0UL,
  CY_EVTGEN_RATIO_DYNAMIC_MODE1 = 1UL,
  CY_EVTGEN_RATIO_DYNAMIC_MODE2 = 2UL,
  CY_EVTGEN_RATIO_DYNAMIC_MODE3 = 3UL,
  CY_EVTGEN_RATIO_DYNAMIC_MODE4 = 4UL,
  CY_EVTGEN_RATIO_DYNAMIC_MODE5 = 5UL,
  CY_EVTGEN_RATIO_DYNAMIC_MODE6 = 6UL,
  CY_EVTGEN_RATIO_DYNAMIC_MODE7 = 7UL
}
 Ratio Value Dynamic Mode. More...
 
enum  cy_en_evtgen_ratio_control_t {
  CY_EVTGEN_RATIO_CONTROL_SW = 0UL,
  CY_EVTGEN_RATIO_CONTROL_HW = 1UL
}
 Set Ratio Control Mode. More...
 
enum  cy_en_evtgen_struct_trigger_t {
  CY_EVTGEN_LEVEL_SENSITIVE = 0UL,
  CY_EVTGEN_EDGE_SENSITIVE
}
 Set Trigger Mode.
 
enum  cy_en_evtgen_struct_functionality_t {
  CY_EVTGEN_ACTIVE_FUNCTIONALITY = 0UL,
  CY_EVTGEN_DEEPSLEEP_FUNCTIONALITY
}
 Set Work Mode of Comparator Structure.
 

Enumeration Type Documentation

◆ cy_en_evtgen_status_t

Specifies return values meaning.

This enum has the return values of the Event generator driver

◆ cy_en_evtgen_ratio_dynamic_mode_t

Ratio Value Dynamic Mode.

Ratio calculation is based on a weighted average operation. This enum has the setting weight for calculation.

Note
Small weights coefficients respond more quickly to changes in the number of clk_ref_div cycles per clk_lf cycle than larger weights coefficients. Use the small dynamic ratio values in the cause low-precision of the low-frequency clock or in difficult operating conditions (eg high temperature).
Enumerator
CY_EVTGEN_RATIO_DYNAMIC_MODE0 

new RATIO value = (RATIO + measurement + 1) / 2.

CY_EVTGEN_RATIO_DYNAMIC_MODE1 

new RATIO value = (3*RATIO + measurement + 2) / 4.

CY_EVTGEN_RATIO_DYNAMIC_MODE2 

new RATIO value = (7*RATIO + measurement + 4) / 8.

CY_EVTGEN_RATIO_DYNAMIC_MODE3 

new RATIO value = (15*RATIO + measurement + 8) / 16.

CY_EVTGEN_RATIO_DYNAMIC_MODE4 

new RATIO value = (31*RATIO + measurement + 16) / 32.

CY_EVTGEN_RATIO_DYNAMIC_MODE5 

new RATIO value = (63*RATIO + measurement + 32) / 64.

CY_EVTGEN_RATIO_DYNAMIC_MODE6 

new RATIO value = (127*RATIO + measurement + 64) / 128.

CY_EVTGEN_RATIO_DYNAMIC_MODE7 

new RATIO value = (255*RATIO + measurement + 128) / 256.

◆ cy_en_evtgen_ratio_control_t

Set Ratio Control Mode.

Enumerator
CY_EVTGEN_RATIO_CONTROL_SW 

The ratio value is static and calculated during the initialization of the Event Generator.

CY_EVTGEN_RATIO_CONTROL_HW 

Autocalibration continuously measures the number of clk_ref_div cycles per clk_lf cycle and combines this new measurement with the current RATIO value to calculate the new RATIO value.