天嵌二次封装库使用手册  V2.1.2
tq_adc.h
浏览该文件的文档.
1 
7 #ifndef LINUX_LIBV2_SOURCE_ADC_TQ_ADC_H_
8 #define LINUX_LIBV2_SOURCE_ADC_TQ_ADC_H_
9 
10 // Copyright 2024 广东省天嵌嵌入式技术股份有限公司
11 
12 
13 #ifdef __cplusplus
14 #define ADC_API extern "C"
15 #else
16 #define ADC_API
17 #endif
18 
25  ADC_API int tq_get_adcValue(int channel,int device);
26 
35  ADC_API double tq_get_adcVoltage(int channel, int adcbit, double Vref,int device);
36 
37 #endif // LINUX_LIBV2_SOURCE_ADC_TQ_ADC_H_
ADC_API double tq_get_adcVoltage(int channel, int adcbit, double Vref, int device)
获取ADC通道转换成的电压值
#define ADC_API
Definition: tq_adc.h:16
ADC_API int tq_get_adcValue(int channel, int device)
获取ADC通道的值