S32 SDK
ftm_qd_driver.h File Reference
#include "ftm_common.h"

Go to the source code of this file.

Data Structures

struct  ftm_phase_params_t
 FlexTimer quadrature decoder channel parameters. More...
 
struct  ftm_quad_decode_config_t
 FTM quadrature configure structure. More...
 
struct  ftm_quad_decoder_state_t
 FTM quadrature state(counter value and flags) More...
 

Functions

status_t FTM_DRV_QuadDecodeStart (uint32_t instance, const ftm_quad_decode_config_t *config)
 Configures the quadrature mode and starts measurement. More...
 
status_t FTM_DRV_QuadDecodeStop (uint32_t instance)
 De-activates the quadrature decode mode. More...
 
ftm_quad_decoder_state_t FTM_DRV_QuadGetState (uint32_t instance)
 Return the current quadrature decoder state (counter value, overflow flag and overflow direction) More...