wifiiot_adc.h
Overview
Related Modules:
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. |
