readcapture7_v4.c
来自「Mplab C30编译器」· C语言 代码 · 共 35 行
C
35 行
#if defined(__PIC24F__)
#include <p24Fxxxx.h>
#endif
#include <incap.h>
#if defined _ICAP_V4_7
/*******************************************************************************
Function Prototype : void ReadCapture7(unsigned int * buffer)
Include : incap.h
Description : This function reads all the pending Input Capture buffers.
Arguments : buffer - This is the pointer to the locations where the
data read from the Input Capture buffers have to be stored.
Return Value : None
Remarks : This function reads all the pending Input Capture buffers
until the buffers are empty indicated by the ICxCONx<ICBNE>
bit getting cleared.
*******************************************************************************/
void ReadCapture7(unsigned int * buffer)
{
while (IC7CON1bits.ICBNE)
{
*buffer++ = IC7BUF; /* reads the input capture buffer */
}
}
#else
#warning "Does not build on this target"
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?