XFusion API v1.3.0
载入中...
搜索中...
未找到
_xf_hal_adc_config_t结构体 参考

adc 配置结构体。 更多...

#include <xf_hal_adc.h>

_xf_hal_adc_config_t 的协作图:
Collaboration graph

成员变量

uint32_t enable: 1
 
uint32_t resolution: 5
 
uint32_t sample_rate: 26
 

详细描述

adc 配置结构体。

用于对接 adc 设置的参数。

注解
普通用户可忽略,移植者需注意。

在文件 xf_hal_adc.h67 行定义.

结构体成员变量说明

◆ enable

uint32_t enable

启用参数,0 为禁用,1 为启用

在文件 xf_hal_adc.h68 行定义.

◆ resolution

uint32_t resolution

分辨率参数,对应的数值最大值为 2^resolution - 1

在文件 xf_hal_adc.h69 行定义.

◆ sample_rate

uint32_t sample_rate

采样率参数,1s 中采样的频率,单位为 hz

在文件 xf_hal_adc.h70 行定义.


该结构体的文档由以下文件生成: