NXP's driver library for LPC17xx, ported to mbed's online compiler. Not tested! I had to fix a lot of warings and found a couple of pretty obvious bugs, so the chances are there are more. Original: http://ics.nxp.com/support/documents/microcontrollers/zip/lpc17xx.cmsis.driver.library.zip
lpc17xx_qei.h File Reference
: Contains all macro definitions and function prototypes support for QEI firmware library on LPC17xx More...
Go to the source code of this file.
Data Structures | |
struct | QEI_CFG_Type |
QEI Configuration structure type definition. More... | |
struct | QEI_RELOADCFG_Type |
Timer Reload Configuration structure type definition. More... | |
Functions | |
void | QEI_Reset (LPC_QEI_TypeDef *QEIx, uint32_t ulResetType) |
Resets value for each type of QEI value, such as velocity, counter, position, etc. | |
void | QEI_Init (LPC_QEI_TypeDef *QEIx, QEI_CFG_Type *QEI_ConfigStruct) |
Initializes the QEI peripheral according to the specified parameters in the QEI_ConfigStruct. | |
void | QEI_ConfigStructInit (QEI_CFG_Type *QIE_InitStruct) |
Fills each QIE_InitStruct member with its default value:
| |
void | QEI_DeInit (LPC_QEI_TypeDef *QEIx) |
De-initializes the QEI peripheral registers to their default reset values. | |
FlagStatus | QEI_GetStatus (LPC_QEI_TypeDef *QEIx, uint32_t ulFlagType) |
Check whether if specified flag status is set or not. | |
uint32_t | QEI_GetPosition (LPC_QEI_TypeDef *QEIx) |
Get current position value in QEI peripheral. | |
void | QEI_SetMaxPosition (LPC_QEI_TypeDef *QEIx, uint32_t ulMaxPos) |
Set max position value for QEI peripheral. | |
void | QEI_SetPositionComp (LPC_QEI_TypeDef *QEIx, uint8_t bPosCompCh, uint32_t ulPosComp) |
Set position compare value for QEI peripheral. | |
uint32_t | QEI_GetIndex (LPC_QEI_TypeDef *QEIx) |
Get current index counter of QEI peripheral. | |
void | QEI_SetIndexComp (LPC_QEI_TypeDef *QEIx, uint32_t ulIndexComp) |
Set value for index compare in QEI peripheral. | |
void | QEI_SetTimerReload (LPC_QEI_TypeDef *QEIx, QEI_RELOADCFG_Type *QEIReloadStruct) |
Set timer reload value for QEI peripheral. | |
uint32_t | QEI_GetTimer (LPC_QEI_TypeDef *QEIx) |
Get current timer counter in QEI peripheral. | |
uint32_t | QEI_GetVelocity (LPC_QEI_TypeDef *QEIx) |
Get current velocity pulse counter in current time period. | |
uint32_t | QEI_GetVelocityCap (LPC_QEI_TypeDef *QEIx) |
Get the most recently measured velocity of the QEI. | |
void | QEI_SetVelocityComp (LPC_QEI_TypeDef *QEIx, uint32_t ulVelComp) |
Set Velocity Compare value for QEI peripheral. | |
void | QEI_SetDigiFilter (LPC_QEI_TypeDef *QEIx, uint32_t ulSamplingPulse) |
Set value of sampling count for the digital filter in QEI peripheral. | |
FlagStatus | QEI_GetIntStatus (LPC_QEI_TypeDef *QEIx, uint32_t ulIntType) |
Check whether if specified interrupt flag status in QEI peripheral is set or not. | |
void | QEI_IntCmd (LPC_QEI_TypeDef *QEIx, uint32_t ulIntType, FunctionalState NewState) |
Enable/Disable specified interrupt in QEI peripheral. | |
void | QEI_IntSet (LPC_QEI_TypeDef *QEIx, uint32_t ulIntType) |
Sets (forces) specified interrupt in QEI peripheral. | |
void | QEI_IntClear (LPC_QEI_TypeDef *QEIx, uint32_t ulIntType) |
Clear (force) specified interrupt (pending) in QEI peripheral. | |
uint32_t | QEI_CalculateRPM (LPC_QEI_TypeDef *QEIx, uint32_t ulVelCapValue, uint32_t ulPPR) |
Calculates the actual velocity in RPM passed via velocity capture value and Pulse Per Round (of the encoder) value parameter input. |
Detailed Description
: Contains all macro definitions and function prototypes support for QEI firmware library on LPC17xx
- Version:
- : 1.0
- Date:
- : 26. May. 2009
Software that is described herein is for illustrative purposes only which provides customers with programming information regarding the products. This software is supplied "AS IS" without any warranties. NXP Semiconductors assumes no responsibility or liability for the use of the software, conveys no license or title under any patent, copyright, or mask work right to the product. NXP Semiconductors reserves the right to make changes in the software without notification. NXP Semiconductors also make no representation or warranty that such application will be suitable for the specified use without further testing or modification.
Definition in file lpc17xx_qei.h.
Generated on Tue Jul 12 2022 17:06:02 by 1.7.2