RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
rt_adc_ops结构体 参考

#include <adc.h>

成员变量

rt_err_t(* enabled )(struct rt_adc_device *device, rt_int8_t channel, rt_bool_t enabled)
 
rt_err_t(* convert )(struct rt_adc_device *device, rt_int8_t channel, rt_uint32_t *value)
 
rt_uint8_t(* get_resolution )(struct rt_adc_device *device)
 
rt_int16_t(* get_vref )(struct rt_adc_device *device)
 

详细描述

Configure the adc device

在文件 adc.h76 行定义.

结构体成员变量说明

◆ enabled

rt_err_t(* rt_adc_ops::enabled) (struct rt_adc_device *device, rt_int8_t channel, rt_bool_t enabled)

在文件 adc.h78 行定义.

◆ convert

rt_err_t(* rt_adc_ops::convert) (struct rt_adc_device *device, rt_int8_t channel, rt_uint32_t *value)

在文件 adc.h79 行定义.

◆ get_resolution

rt_uint8_t(* rt_adc_ops::get_resolution) (struct rt_adc_device *device)

在文件 adc.h80 行定义.

◆ get_vref

rt_int16_t(* rt_adc_ops::get_vref) (struct rt_adc_device *device)

在文件 adc.h81 行定义.