天嵌二次封装库使用手册
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_
tq_get_adcVoltage
ADC_API double tq_get_adcVoltage(int channel, int adcbit, double Vref, int device)
获取ADC通道转换成的电压值
ADC_API
#define ADC_API
Definition:
tq_adc.h:16
tq_get_adcValue
ADC_API int tq_get_adcValue(int channel, int device)
获取ADC通道的值
tqinclude
adc
tq_adc.h
制作者
1.8.11