CAT2 Peripheral Driver Library
cy_stc_wdc_config_t Struct Reference

Description

The WDC component configuration structure.

Data Fields

uint16_t counter0Match
 Counter 0 match comparison value, used for interrupt generation. More...
 
uint16_t counter1Match
 Counter 1 match comparison value, used for interrupt generation. More...
 
uint8_t counter2ToggleBit
 Counter 2 Period / Toggle Bit value. More...
 
bool counter0Interrupt
 Enable/Disable interrupt from Counter 0.
 
bool counter1Interrupt
 Enable/Disable interrupt from Counter 1.
 
bool counter2Interrupt
 Enable/Disable interrupt from Counter 2.
 
bool counter0ClearOnMatch
 Enable/Disable Counter 0 Clear On Match parameter. More...
 
bool counter1ClearOnMatch
 Enable/Disable Counter 1 Clear On Match parameter. More...
 
uint32_t countersCascade
 Counters cascading configuration. More...
 
cy_en_wdc_clock_t clockSource
 The WDC clock source. More...
 

Field Documentation

◆ counter0Match

uint16_t cy_stc_wdc_config_t::counter0Match

Counter 0 match comparison value, used for interrupt generation.

Range: 0 - 65535 for counter0ClearOnMatch = 0 and 1 - 65535 for counter0ClearOnMatch = 1.

◆ counter1Match

uint16_t cy_stc_wdc_config_t::counter1Match

Counter 1 match comparison value, used for interrupt generation.

Range: 0 - 65535 for counter1ClearOnMatch = 0 and 1 - 65535 for counter1ClearOnMatch = 1.

◆ counter2ToggleBit

uint8_t cy_stc_wdc_config_t::counter2ToggleBit

Counter 2 Period / Toggle Bit value.

Range: 0 - 31.

◆ counter0ClearOnMatch

bool cy_stc_wdc_config_t::counter0ClearOnMatch

Enable/Disable Counter 0 Clear On Match parameter.

◆ counter1ClearOnMatch

bool cy_stc_wdc_config_t::counter1ClearOnMatch

Enable/Disable Counter 1 Clear On Match parameter.

◆ countersCascade

uint32_t cy_stc_wdc_config_t::countersCascade

Counters cascading configuration.

Refer to Cascading Masks Cascading defines clock source for counters 1 and 2. Possible options are WDC clock source or previous counter. When cascading all three counters, counter1ClearOnMatch must be enabled.

◆ clockSource

cy_en_wdc_clock_t cy_stc_wdc_config_t::clockSource

The WDC clock source.

It can have one of the following values: CY_WDC_CLOCK_ILO or CY_WDC_CLOCK_WCO.