RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
dac.h 文件参考
#include <rtthread.h>
+ dac.h 的引用(Include)关系图:

浏览该文件的源代码.

结构体

struct  rt_dac_ops
 
struct  rt_dac_device
 

类型定义

typedef struct rt_dac_devicert_dac_device_t
 

枚举

enum  rt_dac_cmd_t { RT_DAC_CMD_ENABLE = RT_DEVICE_CTRL_BASE(DAC) + 0 , RT_DAC_CMD_DISABLE = RT_DEVICE_CTRL_BASE(DAC) + 1 , RT_DAC_CMD_GET_RESOLUTION = RT_DEVICE_CTRL_BASE(DAC) + 2 }
 

函数

rt_err_t rt_hw_dac_register (rt_dac_device_t dac, const char *name, const struct rt_dac_ops *ops, const void *user_data)
 
rt_err_t rt_dac_write (rt_dac_device_t dev, rt_uint32_t channel, rt_uint32_t value)
 
rt_err_t rt_dac_enable (rt_dac_device_t dev, rt_uint32_t channel)
 
rt_err_t rt_dac_disable (rt_dac_device_t dev, rt_uint32_t channel)