S32 SDK
ftm_hal.c File Reference
#include "ftm_hal.h"

Go to the source code of this file.

Functions

void FTM_HAL_Init (FTM_Type *const ftmBase, ftm_clock_ps_t ftmClockPrescaler)
 Initializes the FTM. This function will enable the flexTimer module and selects one pre-scale factor for the FTM clock source. More...
 
void FTM_HAL_Reset (FTM_Type *const ftmBase)
 Resets the FTM registers. All the register use in the driver should be reset to default value of each register. More...
 
void FTM_HAL_SetChnTriggerCmd (FTM_Type *const ftmBase, uint8_t channel, bool enable)
 Enables or disables the generation of the FTM peripheral timer channel trigger when the FTM counter is equal to its initial value. More...
 
void FTM_HAL_SetChnInputCaptureFilter (FTM_Type *const ftmBase, uint8_t channel, uint8_t value)
 Sets the FTM peripheral timer channel input capture filter value. More...