1 Star 0 Fork 4.9K

平凡 / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
wifiiot_adc-h.md 6.11 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

wifiiot_adc.h

Overview

Related Modules:

Wifiiot

Description:

Declares the ADC interface functions for you to read data.

Since:

1.0

Version:

1.0

Summary

Enumerations

Enumeration Name

Description

WifiIotAdcChannelIndex {   WIFI_IOT_ADC_CHANNEL_0, WIFI_IOT_ADC_CHANNEL_1, WIFI_IOT_ADC_CHANNEL_2, WIFI_IOT_ADC_CHANNEL_3,   WIFI_IOT_ADC_CHANNEL_4, WIFI_IOT_ADC_CHANNEL_5, WIFI_IOT_ADC_CHANNEL_6, WIFI_IOT_ADC_CHANNEL_7,   WIFI_IOT_ADC_CHANNEL_BUTT }

Enumerates ADC channel indexes.

WifiIotAdcCurBais {   WIFI_IOT_ADC_CUR_BAIS_DEFAULT, WIFI_IOT_ADC_CUR_BAIS_AUTO, WIFI_IOT_ADC_CUR_BAIS_1P8V, WIFI_IOT_ADC_CUR_BAIS_3P3V,   WIFI_IOT_ADC_CUR_BAIS_BUTT }

Enumerates analog power control modes.

WifiIotAdcEquModelSel {   WIFI_IOT_ADC_EQU_MODEL_1, WIFI_IOT_ADC_EQU_MODEL_2, WIFI_IOT_ADC_EQU_MODEL_4, WIFI_IOT_ADC_EQU_MODEL_8,   WIFI_IOT_ADC_EQU_MODEL_BUTT }

Enumerates equation models.

Functions

Function Name

Description

AdcRead (WifiIotAdcChannelIndex channel, unsigned short *data, WifiIotAdcEquModelSel equModel, WifiIotAdcCurBais curBais, unsigned short rstCnt)

unsigned int 

Reads a piece of sampled data from a specified ADC channel based on the input parameters.

1
https://gitee.com/pingfan_vs_hs/docs.git
git@gitee.com:pingfan_vs_hs/docs.git
pingfan_vs_hs
docs
docs
master

搜索帮助