adc_dev.h
浏览该文件的文档.
1 /*
2  * Copyright (C) 2015-2021 Alibaba Group Holding Limited
3  */
4 
5 #ifndef _IO_ADC_H_
6 #define _IO_ADC_H_
7 
8 #include <stdbool.h>
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
28 /* ADC DEVICE IOCTL CMD宏定义 */
29 #define IOC_ADC_BASE 'A'
30 #define IOC_ADC_START IOC_ADC_BASE + 1
31 #define IOC_ADC_STOP IOC_ADC_BASE + 2
32 #define IOC_ADC_GET_VALUE IOC_ADC_BASE + 3
34 /* ADC 读取数据的参数 */
35 typedef struct io_adc_arg {
36  unsigned int value;
37  unsigned int timeout;
39 
45 int vfs_dac_drv_init (void);
46 
50 #ifdef __cplusplus
51 }
52 #endif
53 
54 #endif /*_IO_ADC_H_*/
int vfs_dac_drv_init(void)
struct io_adc_arg io_adc_arg_t
unsigned int timeout
Definition: adc_dev.h:37
unsigned int value
Definition: adc_dev.h:36