Functions | |
cy_en_tcpwm_status_t | Cy_TCPWM_QuadDec_Init (TCPWM_Type *base, uint32_t cntNum, cy_stc_tcpwm_quaddec_config_t const *config) |
Initializes the counter in the TCPWM block for the QuadDec operation. More... | |
void | Cy_TCPWM_QuadDec_DeInit (TCPWM_Type *base, uint32_t cntNum, cy_stc_tcpwm_quaddec_config_t const *config) |
De-initializes the counter in the TCPWM block, returns register values to default. More... | |
__STATIC_INLINE void | Cy_TCPWM_QuadDec_Enable (TCPWM_Type *base, uint32_t cntNum) |
Enables the counter in the TCPWM block for the QuadDec operation. More... | |
__STATIC_INLINE void | Cy_TCPWM_QuadDec_Disable (TCPWM_Type *base, uint32_t cntNum) |
Disables the counter in the TCPWM block. More... | |
__STATIC_INLINE uint32_t | Cy_TCPWM_QuadDec_GetStatus (TCPWM_Type const *base, uint32_t cntNum) |
Returns the status of the QuadDec. More... | |
__STATIC_INLINE uint32_t | Cy_TCPWM_QuadDec_GetCapture (TCPWM_Type const *base, uint32_t cntNum) |
Returns the capture value. More... | |
__STATIC_INLINE uint32_t | Cy_TCPWM_QuadDec_GetCaptureBuf (TCPWM_Type const *base, uint32_t cntNum) |
Returns the buffered capture value. More... | |
__STATIC_INLINE void | Cy_TCPWM_QuadDec_SetCounter (TCPWM_Type *base, uint32_t cntNum, uint32_t count) |
Sets the value of the counter. More... | |
__STATIC_INLINE uint32_t | Cy_TCPWM_QuadDec_GetCounter (TCPWM_Type const *base, uint32_t cntNum) |
Returns the value in the counter. More... | |
cy_en_tcpwm_status_t Cy_TCPWM_QuadDec_Init | ( | TCPWM_Type * | base, |
uint32_t | cntNum, | ||
cy_stc_tcpwm_quaddec_config_t const * | config | ||
) |
Initializes the counter in the TCPWM block for the QuadDec operation.
base | The pointer to a TCPWM instance. |
cntNum | The Counter instance number in the selected TCPWM. |
config | The pointer to a configuration structure. See cy_stc_tcpwm_quaddec_config_t. |
void Cy_TCPWM_QuadDec_DeInit | ( | TCPWM_Type * | base, |
uint32_t | cntNum, | ||
cy_stc_tcpwm_quaddec_config_t const * | config | ||
) |
De-initializes the counter in the TCPWM block, returns register values to default.
base | The pointer to a TCPWM instance. |
cntNum | The Counter instance number in the selected TCPWM. |
config | The pointer to a configuration structure. See cy_stc_tcpwm_quaddec_config_t. |
__STATIC_INLINE void Cy_TCPWM_QuadDec_Enable | ( | TCPWM_Type * | base, |
uint32_t | cntNum | ||
) |
Enables the counter in the TCPWM block for the QuadDec operation.
base | The pointer to a TCPWM instance. |
cntNum | The Counter instance number in the selected TCPWM. |
__STATIC_INLINE void Cy_TCPWM_QuadDec_Disable | ( | TCPWM_Type * | base, |
uint32_t | cntNum | ||
) |
Disables the counter in the TCPWM block.
base | The pointer to a TCPWM instance. |
cntNum | The Counter instance number in the selected TCPWM. |
__STATIC_INLINE uint32_t Cy_TCPWM_QuadDec_GetStatus | ( | TCPWM_Type const * | base, |
uint32_t | cntNum | ||
) |
Returns the status of the QuadDec.
base | The pointer to a TCPWM instance. |
cntNum | The Counter instance number in the selected TCPWM. |
__STATIC_INLINE uint32_t Cy_TCPWM_QuadDec_GetCapture | ( | TCPWM_Type const * | base, |
uint32_t | cntNum | ||
) |
Returns the capture value.
base | The pointer to a TCPWM instance. |
cntNum | The Counter instance number in the selected TCPWM. |
__STATIC_INLINE uint32_t Cy_TCPWM_QuadDec_GetCaptureBuf | ( | TCPWM_Type const * | base, |
uint32_t | cntNum | ||
) |
Returns the buffered capture value.
base | The pointer to a TCPWM instance. |
cntNum | The Counter instance number in the selected TCPWM. |
__STATIC_INLINE void Cy_TCPWM_QuadDec_SetCounter | ( | TCPWM_Type * | base, |
uint32_t | cntNum, | ||
uint32_t | count | ||
) |
Sets the value of the counter.
base | The pointer to a TCPWM instance. |
cntNum | The Counter instance number in the selected TCPWM. |
count | The value to write into the counter. |
__STATIC_INLINE uint32_t Cy_TCPWM_QuadDec_GetCounter | ( | TCPWM_Type const * | base, |
uint32_t | cntNum | ||
) |
Returns the value in the counter.
base | The pointer to a TCPWM instance. |
cntNum | The Counter instance number in the selected TCPWM. |