ftm_ic_driver.c File Reference
#include "ftm_ic_driver.h"
#include "ftm_hw_access.h"

Go to the source code of this file.

Functions

static void FTM_DRV_InputCaptureHandler (uint32_t instance, uint8_t channelPair)
 
static void FTM_DRV_IrqHandler (uint32_t instance, uint8_t channelPair)
 
status_t FTM_DRV_InitInputCapture (uint32_t instance, const ftm_input_param_t *param)
 Configures Channel Input Capture for either getting time-stamps on edge detection or on signal measurement . When the edge specified in the captureMode argument occurs on the channel the FTM counter is captured into the CnV register. The user will have to read the CnV register separately to get this value. The filter function is disabled if the filterVal argument passed in is 0. The filter function is available only on channels 0,1,2,3. More...
 
status_t FTM_DRV_DeinitInputCapture (uint32_t instance, const ftm_input_param_t *param)
 Disables input capture mode and clears FTM timer configuration. More...
 
uint16_t FTM_DRV_GetInputCaptureMeasurement (uint32_t instance, uint8_t channel)
 This function is used to calculate the measurement and/or time stamps values which are read from the C(n, n+1)V registers and stored to the static buffers. More...
 
status_t FTM_DRV_StartNewSignalMeasurement (uint32_t instance, uint8_t channel)
 Starts new single-shot signal measurement of the given channel. More...
 
status_t FTM_IC_DRV_SetChannelMode (uint32_t instance, uint8_t channel, ftm_ic_op_mode_t inputMode, bool enableContinuousCapture)
 Set mode operation for channel in the input captue mode. More...
 

Function Documentation

static void FTM_DRV_InputCaptureHandler ( uint32_t  instance,
uint8_t  channelPair 
)
static

Definition at line 746 of file ftm_ic_driver.c.

static void FTM_DRV_IrqHandler ( uint32_t  instance,
uint8_t  channelPair 
)
static

Definition at line 731 of file ftm_ic_driver.c.