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... | |
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.
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.
uint8_t cy_stc_wdc_config_t::counter2ToggleBit |
Counter 2 Period / Toggle Bit value.
Range: 0 - 31.
bool cy_stc_wdc_config_t::counter0ClearOnMatch |
Enable/Disable Counter 0 Clear On Match parameter.
bool cy_stc_wdc_config_t::counter1ClearOnMatch |
Enable/Disable Counter 1 Clear On Match parameter.
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.
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.