![]() |
PDL for FM4
Version1.2
Peripheral Driverl Library for FM4
|
#include "qprc.h"
Go to the source code of this file.
Macros | |
| #define | QPRC_INSTANCE_COUNT (uint32_t)(sizeof(m_astcQprcInstanceDataLut) / sizeof(m_astcQprcInstanceDataLut[0])) |
Functions | |
| static en_result_t | QprcIsValidQprcnPtr (volatile FM4_QPRC_TypeDef *pstcQprc) |
| A certain QPRC instance is valid? More... | |
| static volatile FM4_QPRC_NF_TypeDef * | QprcGetNoisFilterPtr (volatile FM4_QPRC_TypeDef *pstcQprc) |
| Get the noise filter for a certain QPRC instance. More... | |
| static stc_qprc_intern_data_t * | QprcGetInternDataPtr (volatile FM4_QPRC_TypeDef *pstcQprc) |
| Get the internal data for a certain QPRC instance. More... | |
| static void | Qprc_InitNvic (volatile FM4_QPRC_TypeDef *pstcQprc) |
| Set NVIC Interrupt depending on QPRC instance. More... | |
| static void | Qprc_DeInitNvic (volatile FM4_QPRC_TypeDef *pstcQprc) |
| Clear NVIC Interrupt depending on QPRC instance. More... | |
| void | Qprc_IrqHandler (volatile FM4_QPRC_TypeDef *pstcQprc, stc_qprc_intern_data_t *pstcQprcInternData) |
| QPRC instance interrupt service routine. More... | |
| en_result_t | Qprc_Init (volatile FM4_QPRC_TypeDef *pstcQprc, stc_qprc_config_t *pstcConfig) |
| Initialize QPRC. More... | |
| en_result_t | Qprc_StopPcCount (volatile FM4_QPRC_TypeDef *pstcQprc) |
| Enable Position Counter. More... | |
| en_result_t | Qprc_RestartPcCount (volatile FM4_QPRC_TypeDef *pstcQprc) |
| Disable Position Counter. More... | |
| en_result_t | Qprc_SetPcCount (volatile FM4_QPRC_TypeDef *pstcQprc, uint16_t u16PcValue) |
| Set count value of Position counter. More... | |
| uint16_t | Qprc_GetPcCount (volatile FM4_QPRC_TypeDef *pstcQprc) |
| Get count value of Position counter. More... | |
| en_result_t | Qprc_SetRcCount (volatile FM4_QPRC_TypeDef *pstcQprc, uint16_t u16RcValue) |
| Set count value of Revolution Counter. More... | |
| uint16_t | Qprc_GetRcCount (volatile FM4_QPRC_TypeDef *pstcQprc) |
| Get count value of Revolution Counter. More... | |
| en_result_t | Qprc_SetPcMaxValue (volatile FM4_QPRC_TypeDef *pstcQprc, uint16_t u16PcMaxValue) |
| Set maximum count value of Position Counter. More... | |
| uint16_t | Qprc_GetPcMaxValue (volatile FM4_QPRC_TypeDef *pstcQprc) |
| Get maximum count value of Position Counter. More... | |
| en_result_t | Qprc_SetPcCompareValue (volatile FM4_QPRC_TypeDef *pstcQprc, uint16_t u16PcValue) |
| Set compare value of Position counter. More... | |
| uint16_t | Qprc_GetPcCompareValue (volatile FM4_QPRC_TypeDef *pstcQprc) |
| Get compare value of Position counter. More... | |
| en_result_t | Qprc_SetPcRcCompareValue (volatile FM4_QPRC_TypeDef *pstcQprc, uint16_t u16PcRcValue) |
| Set compare value of Position and Revolution Counter. More... | |
| uint16_t | Qprc_GetPcRcCompareValue (volatile FM4_QPRC_TypeDef *pstcQprc) |
| Get compare value of Position and Revolution Counter. More... | |
| en_result_t | Qprc_ConfigPcMode (volatile FM4_QPRC_TypeDef *pstcQprc, en_qprc_pcmode_t enMode) |
| Set Position Counter mode. More... | |
| en_result_t | Qprc_ConfigRcMode (volatile FM4_QPRC_TypeDef *pstcQprc, en_qprc_rcmode_t enMode) |
| Set Revolution Counter mode. More... | |
| en_result_t | Qprc_EnableInt (volatile FM4_QPRC_TypeDef *pstcQprc, stc_qprc_int_sel_t *pstcIntSel, stc_qprc_int_cb_t *pstcIntCallback) |
| Enable PC match interrupt. More... | |
| en_result_t | Qprc_DisableInt (volatile FM4_QPRC_TypeDef *pstcQprc, stc_qprc_int_sel_t *pstcIntSel) |
| Disable PC match interrupt. More... | |
| en_int_flag_t | Qprc_GetIntFlag (volatile FM4_QPRC_TypeDef *pstcQprc, en_qprc_int_t enIntType) |
| Get interrupt flag of QPRC. More... | |
| en_result_t | Qprc_ClrIntFlag (volatile FM4_QPRC_TypeDef *pstcQprc, en_qprc_int_t enIntType) |
| Clear interrupt flag of QPRC. More... | |
| en_stat_flag_t | Qprc_GetPcOfUfDir (volatile FM4_QPRC_TypeDef *pstcQprc) |
| Get last position counter flow direction. More... | |
| en_stat_flag_t | Qprc_GetPcDir (volatile FM4_QPRC_TypeDef *pstcQprc) |
| Get last position counter direction. More... | |
Variables | |
| stc_qprc_instance_data_t | m_astcQprcInstanceDataLut [] |
| Look-up table for all enabled ADC instances and their internal data. More... | |
A detailed description is available at QPRC Module description
History:
Definition in file qprc.c.