![]() |
PDL for FM4
Version1.2
Peripheral Driverl Library for FM4
|
#include "mft_ocu.h"
Go to the source code of this file.
Macros | |
| #define | OCU_INSTANCE_COUNT |
| Macro to return the number of enabled MFT instances. More... | |
Functions | |
| static stc_mft_ocu_intern_data_t * | MftGetInternDataPtr (volatile FM4_MFT_OCU_TypeDef *pstcOcu) |
| Return the internal data for a certain OCU instance. More... | |
| void | Mft_Ocu_IrqHandler (volatile FM4_MFT_OCU_TypeDef *pstcMft, stc_mft_ocu_intern_data_t *pstcMftOcuInternData) |
| OCU module interrupt handler. More... | |
| static en_result_t | Mft_Ocu_InitIrq (volatile FM4_MFT_OCU_TypeDef *pstcMft) |
| Device dependent initialization of interrupts according CMSIS with level defined in l3.h. More... | |
| static en_result_t | Mft_Ocu_DeInitIrq (volatile FM4_MFT_OCU_TypeDef *pstcMft) |
| Device dependent de-initialization of interrupts according CMSIS. More... | |
| en_result_t | Mft_Ocu_Init (volatile FM4_MFT_OCU_TypeDef *pstcMft, uint8_t u8Ch, stc_mft_ocu_config_t *pstcOcuConfig) |
| Init OCU module. More... | |
| en_result_t | Mft_Ocu_SetEvenChCompareMode (volatile FM4_MFT_OCU_TypeDef *pstcMft, uint8_t EvenCh, stc_even_compare_config_t *pstcConfig) |
| Compare congifuration of even OCU channel. More... | |
| en_result_t | Mft_Ocu_SetOddChCompareMode (volatile FM4_MFT_OCU_TypeDef *pstcMft, uint8_t OddCh, stc_odd_compare_config_t *pstcConfig) |
| Compare congifuration of odd OCU channel. More... | |
| en_result_t | Mft_Ocu_EnableOperation (volatile FM4_MFT_OCU_TypeDef *pstcMft, uint8_t u8Ch) |
| enable ocu operation More... | |
| en_result_t | Mft_Ocu_DisableOperation (volatile FM4_MFT_OCU_TypeDef *pstcMft, uint8_t u8Ch) |
| Disable ocu operation. More... | |
| en_result_t | Mft_Ocu_EnableInt (volatile FM4_MFT_OCU_TypeDef *pstcMft, uint8_t u8Ch, func_ptr_t pfnCallback) |
| enable ocu interrupt More... | |
| en_result_t | Mft_Ocu_DisableInt (volatile FM4_MFT_OCU_TypeDef *pstcMft, uint8_t u8Ch) |
| enable ocu interrupt More... | |
| en_int_flag_t | Mft_Ocu_GetIntFlag (volatile FM4_MFT_OCU_TypeDef *pstcMft, uint8_t u8Ch) |
| get ocu interrupt flag More... | |
| en_result_t | Mft_Ocu_ClrIntFlag (volatile FM4_MFT_OCU_TypeDef *pstcMft, uint8_t u8Ch) |
| clear ocu interrupt flag More... | |
| en_ocu_rt_out_state_t | Mft_Ocu_GetRtPinLevel (volatile FM4_MFT_OCU_TypeDef *pstcMft, uint8_t u8Ch) |
| Get RT pin level of OCU. More... | |
| en_result_t | Mft_Ocu_WriteOccp (volatile FM4_MFT_OCU_TypeDef *pstcMft, uint8_t u8Ch, uint16_t u16Occp) |
| writ occp register More... | |
| uint16_t | Mft_Ocu_ReadOccp (volatile FM4_MFT_OCU_TypeDef *pstcMft, uint8_t u8Ch) |
| get occp register value More... | |
Variables | |
| stc_mft_ocu_instance_data_t | m_astcMftOcuInstanceDataLut [] |
| Look-up table for all enabled FRT of MFT instances and their internal data. More... | |
A detailed description is available at OCU Module description
History:
Definition in file mft_ocu.c.