| 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_ocu.c File Reference
`#include "mft_ocu.h"`
Include dependency graph for mft_ocu.c:

Go to the source code of this file.

## Functions
static stc_mft_ocu_intern_data_t * | MftGetInternDataPtr (volatile FM0P_MFT_OCU_TypeDef *pstcOcu)
| Return the internal data for a certain OCU instance.
void | Mft_Ocu_IrqHandler (volatile FM0P_MFT_OCU_TypeDef *pstcOcu, stc_mft_ocu_intern_data_t *pstcMftOcuInternData)
| OCU module interrupt handler.
static void | Mft_Ocu_InitIrq (volatile FM0P_MFT_OCU_TypeDef *pstcOcu)
| Device dependent initialization of interrupts according CMSIS with level defined in pdl.h.
static void | Mft_Ocu_DeInitIrq (volatile FM0P_MFT_OCU_TypeDef *pstcOcu)
| Device dependent de-initialization of interrupts according CMSIS.
en_result_t | Mft_Ocu_Init (volatile FM0P_MFT_OCU_TypeDef *pstcOcu, uint8_t u8Ch, stc_mft_ocu_config_t *pstcOcuConfig)
| Init OCU module.
en_result_t | Mft_Ocu_SetEvenChCompareMode (volatile FM0P_MFT_OCU_TypeDef *pstcOcu, uint8_t EvenCh, stc_even_compare_config_t *pstcConfig)
| Compare congifuration of even OCU channel.
en_result_t | Mft_Ocu_SetOddChCompareMode (volatile FM0P_MFT_OCU_TypeDef *pstcOcu, uint8_t OddCh, stc_odd_compare_config_t *pstcConfig)
| Compare congifuration of odd OCU channel.
en_result_t | Mft_Ocu_EnableOperation (volatile FM0P_MFT_OCU_TypeDef *pstcOcu, uint8_t u8Ch)
| enable ocu operation
en_result_t | Mft_Ocu_DisableOperation (volatile FM0P_MFT_OCU_TypeDef *pstcOcu, uint8_t u8Ch)
| Disable ocu operation.
en_result_t | Mft_Ocu_EnableInt (volatile FM0P_MFT_OCU_TypeDef *pstcOcu, uint8_t u8Ch, func_ptr_t pfnCallback)
| enable ocu interrupt
en_result_t | Mft_Ocu_DisableInt (volatile FM0P_MFT_OCU_TypeDef *pstcOcu, uint8_t u8Ch)
| Disable ocu interrupt.
en_int_flag_t | Mft_Ocu_GetIntFlag (volatile FM0P_MFT_OCU_TypeDef *pstcOcu, uint8_t u8Ch)
| get ocu interrupt flag
en_result_t | Mft_Ocu_ClrIntFlag (volatile FM0P_MFT_OCU_TypeDef *pstcOcu, uint8_t u8Ch)
| clear ocu interrupt flag
en_ocu_rt_out_state_t | Mft_Ocu_GetRtPinLevel (volatile FM0P_MFT_OCU_TypeDef *pstcOcu, uint8_t u8Ch)
| Get RT pin level of OCU.
en_result_t | Mft_Ocu_WriteOccp (volatile FM0P_MFT_OCU_TypeDef *pstcOcu, uint8_t u8Ch, uint16_t u16Occp)
| writ occp register
uint16_t | Mft_Ocu_ReadOccp (volatile FM0P_MFT_OCU_TypeDef *pstcOcu, uint8_t u8Ch)
| get occp register value
## Variables
stc_mft_ocu_instance_data_t | m_astcMftOcuInstanceDataLut [(PDL_PERIPHERAL_ENABLE_MFT0_OCU==PDL_ON?1:0)+(PDL_PERIPHERAL_ENABLE_MFT1_OCU==PDL_ON?1:0)+(PDL_PERIPHERAL_ENABLE_MFT2_OCU==PDL_ON?1:0)]
| Look-up table for all enabled FRT of MFT instances and their internal data.

## Detailed Description

A detailed description is available at OCU Module description

History:

- 2013-12-21 0.1 Edison Zhang First version.
- 2014-01-20 0.2 Edison Add a structure for OCSE register setting

Definition in file mft_ocu.c.