readsmpsadc.c
来自「Mplab C30编译器」· C语言 代码 · 共 30 行
C
30 行
#if defined(__dsPIC30F__)
#include <p30fxxxx.h>
#elif defined(__dsPIC33F__)
#include <p33Fxxxx.h>
#endif
#include "smpsadc.h"
#ifdef _ADCP0IF
/*************************************************************************
* Function Name : ReadSmpsADC
* Description : This function reads from one of the 12 ADC Buffers
* (ADCBUF0 - ADCBUF11)
* Parameters : unsigned int buff_no
* Return Value : unsigned int
**************************************************************************/
unsigned int ReadSmpsADC(unsigned int buff_no)
{
return(*(&ADCBUF0+buff_no));
}
#else
#warning "Does not build on this target"
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?