Functions | |
| __STATIC_INLINE void | Cy_TCPWM_Enable_Multiple (TCPWM_Type *base, uint32_t counters) |
| Enables the counter(s) in the TCPWM block. More... | |
| __STATIC_INLINE void | Cy_TCPWM_Disable_Multiple (TCPWM_Type *base, uint32_t counters) |
| Disables the counter(s) in the TCPWM block. More... | |
| __STATIC_INLINE void | Cy_TCPWM_TriggerStart (TCPWM_Type *base, uint32_t counters) |
| Triggers a software start on the selected TCPWMs. More... | |
| __STATIC_INLINE void | Cy_TCPWM_TriggerReloadOrIndex (TCPWM_Type *base, uint32_t counters) |
| Triggers a software reload event (or index in QuadDec mode). More... | |
| __STATIC_INLINE void | Cy_TCPWM_TriggerStopOrKill (TCPWM_Type *base, uint32_t counters) |
| Triggers a stop in the Timer Counter mode, or a kill in the PWM mode. More... | |
| __STATIC_INLINE void | Cy_TCPWM_TriggerCaptureOrSwap (TCPWM_Type *base, uint32_t counters) |
| Triggers a Capture in the Timer Counter mode, and a Swap in the PWM mode. More... | |
| __STATIC_INLINE uint32_t | Cy_TCPWM_GetInterruptStatus (TCPWM_Type const *base, uint32_t cntNum) |
| Returns which event triggered the interrupt. More... | |
| __STATIC_INLINE void | Cy_TCPWM_ClearInterrupt (TCPWM_Type *base, uint32_t cntNum, uint32_t source) |
| Clears Active Interrupt Source. More... | |
| __STATIC_INLINE void | Cy_TCPWM_SetInterrupt (TCPWM_Type *base, uint32_t cntNum, uint32_t source) |
| Triggers an interrupt via a software write. More... | |
| __STATIC_INLINE void | Cy_TCPWM_SetInterruptMask (TCPWM_Type *base, uint32_t cntNum, uint32_t mask) |
| Sets an interrupt mask. More... | |
| __STATIC_INLINE uint32_t | Cy_TCPWM_GetInterruptMask (TCPWM_Type const *base, uint32_t cntNum) |
| Returns the interrupt mask. More... | |
| __STATIC_INLINE uint32_t | Cy_TCPWM_GetInterruptStatusMasked (TCPWM_Type const *base, uint32_t cntNum) |
| Returns which masked interrupt triggered the interrupt. More... | |
| __STATIC_INLINE void Cy_TCPWM_Enable_Multiple | ( | TCPWM_Type * | base, |
| uint32_t | counters | ||
| ) |
Enables the counter(s) in the TCPWM block.
Multiple blocks can be started simultaneously.
| base | The pointer to a TCPWM instance. |
| counters | A bit field representing each counter in the TCPWM block. |
| __STATIC_INLINE void Cy_TCPWM_Disable_Multiple | ( | TCPWM_Type * | base, |
| uint32_t | counters | ||
| ) |
Disables the counter(s) in the TCPWM block.
Multiple TCPWM can be disabled simultaneously.
| base | The pointer to a TCPWM instance. |
| counters | A bit field representing each counter in the TCPWM block. |
| __STATIC_INLINE void Cy_TCPWM_TriggerStart | ( | TCPWM_Type * | base, |
| uint32_t | counters | ||
| ) |
Triggers a software start on the selected TCPWMs.
| base | The pointer to a TCPWM instance. |
| counters | A bit field representing each counter in the TCPWM block. |
| __STATIC_INLINE void Cy_TCPWM_TriggerReloadOrIndex | ( | TCPWM_Type * | base, |
| uint32_t | counters | ||
| ) |
Triggers a software reload event (or index in QuadDec mode).
| base | The pointer to a TCPWM instance |
| counters | A bit field representing each counter in the TCPWM block. |
| __STATIC_INLINE void Cy_TCPWM_TriggerStopOrKill | ( | TCPWM_Type * | base, |
| uint32_t | counters | ||
| ) |
Triggers a stop in the Timer Counter mode, or a kill in the PWM mode.
| base | The pointer to a TCPWM instance. |
| counters | A bit field representing each counter in the TCPWM block. |
| __STATIC_INLINE void Cy_TCPWM_TriggerCaptureOrSwap | ( | TCPWM_Type * | base, |
| uint32_t | counters | ||
| ) |
Triggers a Capture in the Timer Counter mode, and a Swap in the PWM mode.
| base | The pointer to a TCPWM instance. |
| counters | A bit field representing each counter in the TCPWM block. |
| __STATIC_INLINE uint32_t Cy_TCPWM_GetInterruptStatus | ( | TCPWM_Type const * | base, |
| uint32_t | cntNum | ||
| ) |
Returns which event triggered the interrupt.
| base | The pointer to a TCPWM instance. |
| cntNum | The Counter instance number in the selected TCPWM. |
| __STATIC_INLINE void Cy_TCPWM_ClearInterrupt | ( | TCPWM_Type * | base, |
| uint32_t | cntNum, | ||
| uint32_t | source | ||
| ) |
Clears Active Interrupt Source.
| base | The pointer to a TCPWM instance. |
| cntNum | The Counter instance number in the selected TCPWM. |
| source | source to clear. See Interrupt Sources |
| __STATIC_INLINE void Cy_TCPWM_SetInterrupt | ( | TCPWM_Type * | base, |
| uint32_t | cntNum, | ||
| uint32_t | source | ||
| ) |
Triggers an interrupt via a software write.
| base | The pointer to a TCPWM instance. |
| cntNum | The Counter instance number in the selected TCPWM. |
| source | The source to set an interrupt. See Interrupt Sources. |
| __STATIC_INLINE void Cy_TCPWM_SetInterruptMask | ( | TCPWM_Type * | base, |
| uint32_t | cntNum, | ||
| uint32_t | mask | ||
| ) |
Sets an interrupt mask.
A 1 means that when the event occurs, it will cause an interrupt; a 0 means no interrupt will be triggered.
| base | The pointer to a TCPWM instance. |
| cntNum | The Counter instance number in the selected TCPWM. |
| mask | . See Interrupt Sources |
| __STATIC_INLINE uint32_t Cy_TCPWM_GetInterruptMask | ( | TCPWM_Type const * | base, |
| uint32_t | cntNum | ||
| ) |
Returns the interrupt mask.
| base | The pointer to a TCPWM instance. |
| cntNum | The Counter instance number in the selected TCPWM. |
| __STATIC_INLINE uint32_t Cy_TCPWM_GetInterruptStatusMasked | ( | TCPWM_Type const * | base, |
| uint32_t | cntNum | ||
| ) |
Returns which masked interrupt triggered the interrupt.
| base | The pointer to a TCPWM instance. |
| cntNum | The Counter instance number in the selected TCPWM. |