MTB CAT1 Peripheral driver library
Quadrature decoder specific functions

General Description

Functions

__STATIC_INLINE void Cy_TCPWM_MOTIF_Configure_Postion_Decoder_Mode (TCPWM_MOTIF_GRP_MOTIF_Type *base, cy_en_position_decoder_mode_t mode)
 Configures Position Decoder to either Quad mode or direction count mode based on the selection. More...
 
__STATIC_INLINE bool Cy_TCPWM_MOTIF_Get_Quaddec_Rotation_Direction (TCPWM_MOTIF_GRP_MOTIF_Type *base)
 returns the quaddec rotation direction. More...
 
__STATIC_INLINE void Cy_TCPWM_MOTIF_Quaddec_Output_Config (TCPWM_MOTIF_GRP_MOTIF_Type *base, cy_stc_quaddec_output_config_t *output_config)
 Configures the output nodes for each of the quaddec output event. More...
 
cy_en_tcpwm_status_t Cy_TCPWM_MOTIF_Quaddec_Init (TCPWM_MOTIF_GRP_MOTIF_Type *base, cy_stc_tcpwm_motif_quaddec_config_t const *config)
 MOTIF module initialization in Quadrature Decoder Mode. More...
 

Function Documentation

◆ Cy_TCPWM_MOTIF_Configure_Postion_Decoder_Mode()

__STATIC_INLINE void Cy_TCPWM_MOTIF_Configure_Postion_Decoder_Mode ( TCPWM_MOTIF_GRP_MOTIF_Type *  base,
cy_en_position_decoder_mode_t  mode 
)

Configures Position Decoder to either Quad mode or direction count mode based on the selection.

Parameters
baseThe pointer to the TCPWM_MOTIF instance address.
modeMode to be set for the position decoder. cy_en_position_decoder_mode_t

◆ Cy_TCPWM_MOTIF_Get_Quaddec_Rotation_Direction()

__STATIC_INLINE bool Cy_TCPWM_MOTIF_Get_Quaddec_Rotation_Direction ( TCPWM_MOTIF_GRP_MOTIF_Type *  base)

returns the quaddec rotation direction.

Parameters
baseThe pointer to the TCPWM_MOTIF instance address.
Returns
returns the quaddec rotation direction. 0: Counter clockwise rotation. 1: Clockwise Rotation

◆ Cy_TCPWM_MOTIF_Quaddec_Output_Config()

__STATIC_INLINE void Cy_TCPWM_MOTIF_Quaddec_Output_Config ( TCPWM_MOTIF_GRP_MOTIF_Type *  base,
cy_stc_quaddec_output_config_t output_config 
)

Configures the output nodes for each of the quaddec output event.

Parameters
baseThe pointer to the TCPWM_MOTIF instance address.
output_configOutput configuration. cy_stc_quaddec_output_config_t

◆ Cy_TCPWM_MOTIF_Quaddec_Init()

cy_en_tcpwm_status_t Cy_TCPWM_MOTIF_Quaddec_Init ( TCPWM_MOTIF_GRP_MOTIF_Type *  base,
cy_stc_tcpwm_motif_quaddec_config_t const *  config 
)

MOTIF module initialization in Quadrature Decoder Mode.

Parameters
baseThe pointer to the TCPWM_MOTIF instance address.
configQuadrature decoder configuration cy_stc_tcpwm_motif_quaddec_config_t
Returns
Returns the status of the operation.