|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|

函数 | |
| errcode_t | uapi_adc_init (adc_clock_t clock) |
| 初始化ADC。 | |
| errcode_t | uapi_adc_deinit (void) |
| 去初始化ADC。 | |
| void | uapi_adc_power_en (afe_scan_mode_t afe_scan_mode, bool en) |
| 上下电并启用或关闭ADC。 | |
| bool | uapi_adc_is_using (void) |
| 检查ADC是否正在使用。 | |
| errcode_t | uapi_adc_open_channel (uint8_t channel) |
| 开启一个ADC通道。 | |
| errcode_t | uapi_adc_close_channel (uint8_t channel) |
| 关闭一个ADC通道。 | |
| errcode_t | uapi_adc_auto_scan_ch_enable (uint8_t channel, adc_scan_config_t config, adc_callback_t callback) |
| 启用ADC自动扫描通道,在启用自动扫描之前,需要打开ADC电源。 | |
| errcode_t | uapi_adc_auto_scan_ch_disable (uint8_t channel) |
| 手动禁用单通道自动扫描。 | |
| void | uapi_adc_auto_scan_disable (void) |
| 手动禁用自动扫描,禁用所有扫描通道,并关闭ADC电源。 | |
| bool | uapi_adc_auto_scan_is_enabled (void) |
| 获取自动扫描状态。 | |
| int32_t | uapi_adc_manual_sample (uint8_t channel) |
| ADC手动采样。 | |
变量 | |
| bool | adc_is_power_on = false |
| bool | adc_is_initialised = false |
| uint8_t | adc_working_channel = 0 |
| bool adc_is_initialised = false |
| bool adc_is_power_on = false |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2022-2022. All rights reserved.
Description: Provides adc driver source
History:
2022-09-16, Create file.
| uint8_t adc_working_channel = 0 |