天嵌二次封装库使用手册  V1.0
tq_adc.h
浏览该文件的文档.
1 #ifndef _TQ_ADC_H_
2 #define _TQ_ADC_H_
3 
20 #include <stdlib.h>
21 #include <stdio.h>
22 #include <string.h>
23 #include <unistd.h>
24 #include <fcntl.h>
25 #include <math.h>
26 #ifdef __cplusplus
27 extern "C"
28 {
29 #endif
30 
36  int tq_get_adcValue(int channel);
37 
45  double tq_get_adcVoltage(int channel, int adcbit, double Vref);
46 #ifdef __cplusplus
47 }
48 #endif
49 #endif
int tq_get_adcValue(int channel)
获取ADC通道的值
double tq_get_adcVoltage(int channel, int adcbit, double Vref)
获取ADC通道转换成的电压值