FlexTimer Peripheral Driver.
Configures the quadrature mode and starts measurement.
- Parameters
-
[in] | instance | Instance number of the FTM module. |
[in] | config | Configuration structure(quadrature decode mode, polarity for both phases, initial and maximum value for the counter, filter configuration). |
- Returns
- success
- STATUS_SUCCESS : Completed successfully.
- STATUS_ERROR : Error occurred.
Definition at line 50 of file ftm_qd_driver.c.
status_t FTM_DRV_QuadDecodeStop |
( |
uint32_t |
instance | ) |
|
De-activates the quadrature decode mode.
- Parameters
-
[in] | instance | Instance number of the FTM module. |
- Returns
- success
- STATUS_SUCCESS : Completed successfully.
- STATUS_ERROR : Error occurred.
Definition at line 109 of file ftm_qd_driver.c.
Return the current quadrature decoder state (counter value, overflow flag and overflow direction)
- Parameters
-
[in] | instance | Instance number of the FTM module. |
- Returns
- The current state of quadrature decoder
Definition at line 130 of file ftm_qd_driver.c.