Data Structures¶
-
group
group_tcpwm_data_structures_counter
-
struct
cy_stc_tcpwm_counter_config_t
- #include <>
Counter Timer configuration structure.
Public Members
-
uint32_t
period
Sets the period of the counter.
-
uint32_t
clockPrescaler
Sets the clock prescaler inside the TCWPM block.
-
uint32_t
runMode
Sets the run mode.
-
uint32_t
countDirection
Sets the counter direction.
-
uint32_t
compareOrCapture
The counter can either compare or capture a value.
-
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.
-
uint32_t
captureInputMode
Configures how the capture input behaves.
See Input Modes
-
uint32_t
captureInput
Selects which input the capture uses, the inputs are device-specific.
-
uint32_t
reloadInputMode
Configures how the reload input behaves.
See Input Modes
-
uint32_t
reloadInput
Selects which input the reload uses, the inputs are device-specific.
-
uint32_t
startInputMode
Configures how the start input behaves.
See Input Modes
-
uint32_t
startInput
Selects which input the start uses, the inputs are device-specific.
-
uint32_t
stopInputMode
Configures how the stop input behaves.
See Input Modes
-
uint32_t
stopInput
Selects which input the stop uses, the inputs are device-specific.
-
uint32_t
countInputMode
Configures how the count input behaves.
See Input Modes
-
uint32_t
countInput
Selects which input the count uses, the inputs are device-specific.
-
uint32_t
capture1InputMode
Configures how the capture1 input behaves.
See Input Modes
-
uint32_t
capture1Input
Selects which input the capture1 uses, the inputs are device-specific.
-
bool
enableCompare1Swap
-
If enabled, the compare1 values are swapped each time the comparison is true
-
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.
-
uint32_t
-
struct