MTB CAT1 Peripheral driver library
cy_stc_tcpwm_counter_config_t Struct Reference

Description

Counter Timer configuration structure.

Data Fields

uint32_t period
 Sets the period of the counter.
 
uint32_t clockPrescaler
 Sets the clock prescaler inside the TCWPM block. More...
 
uint32_t runMode
 Sets the run mode. More...
 
uint32_t countDirection
 Sets the counter direction. More...
 
uint32_t compareOrCapture
 The counter can either compare or capture a value. More...
 
uint32_t compare0
 Sets the value for Compare0.
 
uint32_t compare1
 Sets the value for Compare1.
 
bool enableCompareSwap
 If enabled, the compare values are swapped each time the comparison is true.
 
uint32_t interruptSources
 Enabled an interrupt on the terminal count, capture or compare. More...
 
uint32_t captureInputMode
 Configures how the capture input behaves. More...
 
uint32_t captureInput
 Selects which input the capture uses, the inputs are device-specific. More...
 
uint32_t reloadInputMode
 Configures how the reload input behaves. More...
 
uint32_t reloadInput
 Selects which input the reload uses, the inputs are device-specific. More...
 
uint32_t startInputMode
 Configures how the start input behaves. More...
 
uint32_t startInput
 Selects which input the start uses, the inputs are device-specific. More...
 
uint32_t stopInputMode
 Configures how the stop input behaves. More...
 
uint32_t stopInput
 Selects which input the stop uses, the inputs are device-specific. More...
 
uint32_t countInputMode
 Configures how the count input behaves. More...
 
uint32_t countInput
 Selects which input the count uses, the inputs are device-specific. More...
 
uint32_t capture1InputMode
 Configures how the capture1 input behaves. More...
 
uint32_t capture1Input
 Selects which input the capture1 uses, the inputs are device-specific. More...
 
bool enableCompare1Swap
 See TCPWM Input Selection. More...
 
uint32_t compare2
 Sets the value for Compare1.
 
uint32_t compare3
 Sets the value for the buffered Compare1.
 
uint32_t trigger0Event
 Configures which internal event generates on output trigger 0.
 
uint32_t trigger1Event
 Configures which internal event generates on output trigger 1.
 
bool buffer_swap_enable
 Configures swapping mechanism between CC0 and buffered CC0, CC1 and buffered CC1, PERIOD and buffered PERIOD, DT and buffered DT.
 
cy_en_counter_direction_t direction_mode
 Counter direction mode.
 
bool glitch_filter_enable
 Enables Glitch filter for input triggers. More...
 
cy_en_gf_depth_value_t gf_depth
 Glitch filter depth value. More...
 

Field Documentation

◆ clockPrescaler

uint32_t cy_stc_tcpwm_counter_config_t::clockPrescaler

Sets the clock prescaler inside the TCWPM block.

See Counter CLK Prescalers

◆ runMode

uint32_t cy_stc_tcpwm_counter_config_t::runMode

Sets the run mode.

See Counter Run Modes

◆ countDirection

uint32_t cy_stc_tcpwm_counter_config_t::countDirection

Sets the counter direction.

See Counter Direction

◆ compareOrCapture

uint32_t cy_stc_tcpwm_counter_config_t::compareOrCapture

The counter can either compare or capture a value.

See Counter Compare Capture

◆ interruptSources

uint32_t cy_stc_tcpwm_counter_config_t::interruptSources

Enabled an interrupt on the terminal count, capture or compare.

See Interrupt Sources

◆ captureInputMode

uint32_t cy_stc_tcpwm_counter_config_t::captureInputMode

Configures how the capture input behaves.

See Input Modes

◆ captureInput

uint32_t cy_stc_tcpwm_counter_config_t::captureInput

Selects which input the capture uses, the inputs are device-specific.

See TCPWM Input Selection

◆ reloadInputMode

uint32_t cy_stc_tcpwm_counter_config_t::reloadInputMode

Configures how the reload input behaves.

See Input Modes

◆ reloadInput

uint32_t cy_stc_tcpwm_counter_config_t::reloadInput

Selects which input the reload uses, the inputs are device-specific.

See TCPWM Input Selection

◆ startInputMode

uint32_t cy_stc_tcpwm_counter_config_t::startInputMode

Configures how the start input behaves.

See Input Modes

◆ startInput

uint32_t cy_stc_tcpwm_counter_config_t::startInput

Selects which input the start uses, the inputs are device-specific.

See TCPWM Input Selection

◆ stopInputMode

uint32_t cy_stc_tcpwm_counter_config_t::stopInputMode

Configures how the stop input behaves.

See Input Modes

◆ stopInput

uint32_t cy_stc_tcpwm_counter_config_t::stopInput

Selects which input the stop uses, the inputs are device-specific.

See TCPWM Input Selection

◆ countInputMode

uint32_t cy_stc_tcpwm_counter_config_t::countInputMode

Configures how the count input behaves.

See Input Modes

◆ countInput

uint32_t cy_stc_tcpwm_counter_config_t::countInput

Selects which input the count uses, the inputs are device-specific.

See TCPWM Input Selection

◆ capture1InputMode

uint32_t cy_stc_tcpwm_counter_config_t::capture1InputMode

Configures how the capture1 input behaves.

See Input Modes

◆ capture1Input

uint32_t cy_stc_tcpwm_counter_config_t::capture1Input

Selects which input the capture1 uses, the inputs are device-specific.

◆ enableCompare1Swap

bool cy_stc_tcpwm_counter_config_t::enableCompare1Swap

See TCPWM Input Selection.

If enabled, the compare1 values are swapped each time the comparison is true

◆ glitch_filter_enable

bool cy_stc_tcpwm_counter_config_t::glitch_filter_enable

Enables Glitch filter for input triggers.

◆ gf_depth

cy_en_gf_depth_value_t cy_stc_tcpwm_counter_config_t::gf_depth

Glitch filter depth value.