readqei.c
来自「Mplab C30编译器」· C语言 代码 · 共 20 行
C
20 行
#include <qei.h>
#ifdef _QEIIF
/*********************************************************************
* Function Name : ReadQEI()
* Description : This function returns the POSCNT register value
* Parameters : None
* Return Value : unsigned int
*********************************************************************/
unsigned int ReadQEI(void)
{
return POSCNT; /* return the current position count */
}
#else
#warning "Does not build on this target"
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?