| PDL for FM0+ Version1.0 Peripheral Driverl Library for FM0+

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

Functions | Variables
C:/pdl_v10/library/driver/mft/mft_frt.c File Reference
`#include "mft_frt.h"`
Include dependency graph for mft_frt.c:

Go to the source code of this file.

## Functions
static stc_mft_frt_intern_data_t * | MftGetInternDataPtr (volatile FM0P_MFT_FRT_TypeDef *pstcFrt)
| Return the internal data for a certain FRT instance.
void | Mft_Frt_IrqHandler (volatile FM0P_MFT_FRT_TypeDef *pstcFrt, stc_mft_frt_intern_data_t *pstcMftFrtInternData)
| FRT interrupt handler sub function.
static void | Mft_Frt_InitIrq (volatile FM0P_MFT_FRT_TypeDef *pstcFrt, stc_frt_int_sel_t *pstcIntSel)
| Device dependent initialization of interrupts according CMSIS with level defined in pdl.h.
static void | Mft_Frt_DeInitIrq (volatile FM0P_MFT_FRT_TypeDef *pstcFrt, stc_frt_int_sel_t *pstcIntSel)
| Device dependent initialization of interrupts according CMSIS with level defined in pdl.h.
en_result_t | Mft_Frt_Init (volatile FM0P_MFT_FRT_TypeDef *pstcFrt, uint8_t u8Ch, stc_mft_frt_config_t *pstcFrtConfig)
| Init FRT module.
en_result_t | Mft_Frt_SetMaskZeroTimes (volatile FM0P_MFT_FRT_TypeDef *pstcFrt, uint8_t u8Ch, uint8_t u8Times)
| set mask zero times
uint8_t | Mft_Frt_GetMaskZeroTimes (volatile FM0P_MFT_FRT_TypeDef *pstcFrt, uint8_t u8Ch)
| get mask zero times
en_result_t | Mft_Frt_SetMaskPeakTimes (volatile FM0P_MFT_FRT_TypeDef *pstcFrt, uint8_t u8Ch, uint8_t u8Times)
| set mask peak times
uint8_t | Mft_Frt_GetMaskPeakTimes (volatile FM0P_MFT_FRT_TypeDef *pstcFrt, uint8_t u8Ch)
| get mask peak times
en_result_t | Mft_Frt_Start (volatile FM0P_MFT_FRT_TypeDef *pstcFrt, uint8_t u8Ch)
| Start FRT.
en_result_t | Mft_Frt_Stop (volatile FM0P_MFT_FRT_TypeDef *pstcFrt, uint8_t u8Ch)
| set frt stop
en_result_t | Mft_Frt_EnableInt (volatile FM0P_MFT_FRT_TypeDef *pstcFrt, uint8_t u8Ch, stc_frt_int_sel_t *pstcIntSel, stc_frt_int_cb_t *pstcFrtIntCallback)
| enable frt interrupt
en_result_t | Mft_Frt_DisableInt (volatile FM0P_MFT_FRT_TypeDef *pstcFrt, uint8_t u8Ch, stc_frt_int_sel_t *pstcIntSel)
| disable frt interrupt
en_int_flag_t | Mft_Frt_GetIntFlag (volatile FM0P_MFT_FRT_TypeDef *pstcFrt, uint8_t u8Ch, en_mft_frt_int_t enIntType)
| get frt interrupt flag
en_result_t | Mft_Frt_ClrIntFlag (volatile FM0P_MFT_FRT_TypeDef *pstcFrt, uint8_t u8Ch, en_mft_frt_int_t enIntType)
| clear frt interrupt flag
en_result_t | Mft_Frt_SetCountCycle (volatile FM0P_MFT_FRT_TypeDef *pstcFrt, uint8_t u8Ch, uint16_t u16Cycle)
| set frt cycle value
en_result_t | Mft_Frt_SetCountVal (volatile FM0P_MFT_FRT_TypeDef *pstcFrt, uint8_t u8Ch, uint16_t u16Count)
| set frt count value
uint16_t | Mft_Frt_GetCurCount (volatile FM0P_MFT_FRT_TypeDef *pstcFrt, uint8_t u8Ch)
| get frt current count
## Variables
stc_mft_frt_instance_data_t | m_astcMftFrtInstanceDataLut []
| Look-up table for all enabled FRT of MFT instances and their internal data.

## Detailed Description

A detailed description is available at FRT Module description

History:

- 2014-01-10 0.1 Edison Zhang First version.

Definition in file mft_frt.c.