![]() |
PDL for FM4
Version1.2
Peripheral Driverl Library for FM4
|
#include "wc.h"
Go to the source code of this file.
Macros | |
| #define | WC_INSTANCE_COUNT (uint32_t)(sizeof(m_astcWcInstanceDataLut) / sizeof(m_astcWcInstanceDataLut[0])) |
Functions | |
| static void | Wc_InitNvic (volatile FM4_WC_TypeDef *pstcWc) |
| Set NVIC Interrupt depending on ADC instance. More... | |
| static void | Wc_DeInitNvic (volatile FM4_WC_TypeDef *pstcWc) |
| Clear NVIC Interrupt depending on ADC instance. More... | |
| void | Wc_IrqHandler (volatile FM4_WC_TypeDef *pstcWc, stc_wc_intern_data_t *pstcWcInternData) |
| Watch counter interrupt function. More... | |
| static stc_wc_intern_data_t * | WcGetInternDataPtr (volatile FM4_WC_TypeDef *pstcWc) |
| Return the internal data for a certain WC instance. More... | |
| en_result_t | Wc_Pres_SelClk (volatile FM4_WC_TypeDef *pstcWc, stc_wc_pres_clk_t *pstcWcPresClk) |
| Select the input clock an and set the division clock to be output. More... | |
| en_result_t | Wc_Pres_EnableDiv (volatile FM4_WC_TypeDef *pstcWc) |
| Enable oscilation of the divison clock. More... | |
| en_result_t | Wc_Pres_DisableDiv (volatile FM4_WC_TypeDef *pstcWc) |
| Disable oscilation of the divison clock. More... | |
| en_stat_flag_t | Wc_GetDivStat (volatile FM4_WC_TypeDef *pstcWc) |
| Get the operation status of the division counter. More... | |
| en_result_t | Wc_Init (volatile FM4_WC_TypeDef *pstcWc, stc_wc_config_t *pstcWcConfig) |
| Select the input clock an and set the division clock to be output. More... | |
| en_result_t | Wc_EnableCount (volatile FM4_WC_TypeDef *pstcWc) |
| Enable WC operation. More... | |
| en_result_t | Wc_DisableCount (volatile FM4_WC_TypeDef *pstcWc) |
| Disable WC operation. More... | |
| en_result_t | Wc_EnableInt (volatile FM4_WC_TypeDef *pstcWc, func_ptr_t pfnIntCallback) |
| Enable WC underflow interrupt. More... | |
| en_result_t | Wc_DisableInt (volatile FM4_WC_TypeDef *pstcWc) |
| Disable WC underflow interrupt. More... | |
| en_result_t | Wc_WriteReloadVal (volatile FM4_WC_TypeDef *pstcWc, uint8_t u8Val) |
| Set the counter value of WC. More... | |
| uint8_t | Wc_ReadCurCnt (volatile FM4_WC_TypeDef *pstcWc) |
| Read the value in the 6-bit down counter. More... | |
| en_result_t | Wc_ClearIntFlag (volatile FM4_WC_TypeDef *pstcWc) |
| Clear WC underflow flag. More... | |
| en_int_flag_t | Wc_GetIntFlag (volatile FM4_WC_TypeDef *pstcWc) |
| Get WC underflow flag status. More... | |
| en_stat_flag_t | Wc_GetOperationFlag (volatile FM4_WC_TypeDef *pstcWc) |
| Get WC operation state. More... | |
Variables | |
| stc_wc_instance_data_t | m_astcWcInstanceDataLut [] |
| Look-up table for all enabled WC instances and their internal data. More... | |
A detailed description is available at WC Module description
History:
Definition in file wc.c.