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

Go to the source code of this file.

## Functions
static en_result_t | QprcIsValidQprcnPtr (volatile FM0P_QPRC_TypeDef *pstcQprc)
| A certain QPRC instance is valid?
static volatile FM0P_QPRC_NF_TypeDef * | QprcGetNoisFilterPtr (volatile FM0P_QPRC_TypeDef *pstcQprc)
| Get the noise filter for a certain QPRC instance.
static stc_qprc_intern_data_t * | QprcGetInternDataPtr (volatile FM0P_QPRC_TypeDef *pstcQprc)
| Get the internal data for a certain QPRC instance.
static void | Qprc_InitNvic (volatile FM0P_QPRC_TypeDef *pstcQprc)
| Set NVIC Interrupt depending on QPRC instance.
static void | Qprc_DeInitNvic (volatile FM0P_QPRC_TypeDef *pstcQprc)
| Clear NVIC Interrupt depending on QPRC instance.
void | Qprc_IrqHandler (volatile FM0P_QPRC_TypeDef *pstcQprc, stc_qprc_intern_data_t *pstcQprcInternData)
| QPRC instance interrupt service routine.
en_result_t | Qprc_Init (volatile FM0P_QPRC_TypeDef *pstcQprc, stc_qprc_config_t *pstcConfig)
| Initialize QPRC.
en_result_t | Qprc_StopPcCount (volatile FM0P_QPRC_TypeDef *pstcQprc)
| Stop Position Counter.
en_result_t | Qprc_RestartPcCount (volatile FM0P_QPRC_TypeDef *pstcQprc)
| Restart Position Counter from stop status.
en_result_t | Qprc_SetPcCount (volatile FM0P_QPRC_TypeDef *pstcQprc, uint16_t u16PcValue)
| Set count value of Position counter.
uint16_t | Qprc_GetPcCount (volatile FM0P_QPRC_TypeDef *pstcQprc)
| Get count value of Position counter.
en_result_t | Qprc_SetRcCount (volatile FM0P_QPRC_TypeDef *pstcQprc, uint16_t u16RcValue)
| Set count value of Revolution Counter.
uint16_t | Qprc_GetRcCount (volatile FM0P_QPRC_TypeDef *pstcQprc)
| Get count value of Revolution Counter.
en_result_t | Qprc_SetPcMaxValue (volatile FM0P_QPRC_TypeDef *pstcQprc, uint16_t u16PcMaxValue)
| Set maximum count value of Position Counter.
uint16_t | Qprc_GetPcMaxValue (volatile FM0P_QPRC_TypeDef *pstcQprc)
| Get maximum count value of Position Counter.
en_result_t | Qprc_SetPcCompareValue (volatile FM0P_QPRC_TypeDef *pstcQprc, uint16_t u16PcValue)
| Set compare value of Position counter.
uint16_t | Qprc_GetPcCompareValue (volatile FM0P_QPRC_TypeDef *pstcQprc)
| Get compare value of Position counter.
en_result_t | Qprc_SetPcRcCompareValue (volatile FM0P_QPRC_TypeDef *pstcQprc, uint16_t u16PcRcValue)
| Set compare value of Position and Revolution Counter.
uint16_t | Qprc_GetPcRcCompareValue (volatile FM0P_QPRC_TypeDef *pstcQprc)
| Get compare value of Position and Revolution Counter.
en_result_t | Qprc_ConfigPcMode (volatile FM0P_QPRC_TypeDef *pstcQprc, en_qprc_pcmode_t enMode)
| Set Position Counter mode.
en_result_t | Qprc_ConfigRcMode (volatile FM0P_QPRC_TypeDef *pstcQprc, en_qprc_rcmode_t enMode)
| Set Revolution Counter mode.
en_result_t | Qprc_EnableInt (volatile FM0P_QPRC_TypeDef *pstcQprc, stc_qprc_int_sel_t *pstcIntSel, stc_qprc_int_cb_t *pstcIntCallback)
| Enable QPRC interrupts.
en_result_t | Qprc_DisableInt (volatile FM0P_QPRC_TypeDef *pstcQprc, stc_qprc_int_sel_t *pstcIntSel)
| Disable PC match interrupt.
en_int_flag_t | Qprc_GetIntFlag (volatile FM0P_QPRC_TypeDef *pstcQprc, en_qprc_int_t enIntType)
| Get interrupt flag of QPRC.
en_result_t | Qprc_ClrIntFlag (volatile FM0P_QPRC_TypeDef *pstcQprc, en_qprc_int_t enIntType)
| Clear interrupt flag of QPRC.
en_stat_flag_t | Qprc_GetPcOfUfDir (volatile FM0P_QPRC_TypeDef *pstcQprc)
| Get last position counter flow direction.
en_stat_flag_t | Qprc_GetPcDir (volatile FM0P_QPRC_TypeDef *pstcQprc)
| Get last position counter direction.
## Variables
stc_qprc_instance_data_t | m_astcQprcInstanceDataLut [(PDL_PERIPHERAL_ENABLE_QPRC0==PDL_ON?1:0)+(PDL_PERIPHERAL_ENABLE_QPRC1==PDL_ON?1:0)+(PDL_PERIPHERAL_ENABLE_QPRC2==PDL_ON?1:0)]
| Look-up table for all enabled ADC instances and their internal data.

## Detailed Description

A detailed description is available at QPRC Module description

History:

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

Definition in file qprc.c.