25 #ifndef FTM_IC_DRIVER_H
26 #define FTM_IC_DRIVER_H
128 #if defined(__cplusplus)
203 bool enableContinuousCapture);
205 #if defined(__cplusplus)
status_t FTM_DRV_StartNewSignalMeasurement(uint32_t instance, uint8_t channel)
Starts new single-shot signal measurement of the given channel.
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.
ftm_ic_op_mode_t
The measurement type for input capture mode Implements : ftm_ic_op_mode_t_Class.
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 measur...
status_t
Status return codes. Common error codes will be a unified enumeration (C enum) that will contain all ...
void(* ic_callback_t)(ic_event_t event, void *userData)
status_t FTM_DRV_DeinitInputCapture(uint32_t instance, const ftm_input_param_t *param)
Disables input capture mode and clears FTM timer configuration.
ftm_signal_measurement_mode_t
FlexTimer input capture measurement type for dual edge input capture.
ftm_input_op_mode_t
FTM status.
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 ...
ftm_edge_alignment_mode_t
FlexTimer input capture edge mode, rising edge, or falling edge.