![]() |
RT-Thread RTOS
An open source embedded real-time operating system
|
#include <adc_v2.h>
Data Fields | |
| rt_err_t(* | open )(struct rt_adc_device *device) |
| rt_err_t(* | close )(struct rt_adc_device *device) |
| rt_err_t(* | session_config )(struct rt_adc_device *device, rt_uint32_t channels) |
| rt_err_t(* | control )(struct rt_adc_device *device, int cmd, void *args) |
ADC core driver operation table.
| rt_err_t(* rt_adc_core_ops::open) (struct rt_adc_device *device) |
Open and initialize the ADC hardware.
| device | Pointer to the ADC device object. |
| rt_err_t(* rt_adc_core_ops::close) (struct rt_adc_device *device) |
Close and deinitialize the ADC hardware.
| device | Pointer to the ADC device object. |
| rt_err_t(* rt_adc_core_ops::session_config) (struct rt_adc_device *device, rt_uint32_t channels) |
Configure one ADC conversion session before data transfer.
| device | Pointer to the ADC device object. |
| channels | ADC channel selection mask. |
| rt_err_t(* rt_adc_core_ops::control) (struct rt_adc_device *device, int cmd, void *args) |
Handle ADC control commands.
| device | Pointer to the ADC device object. |
| cmd | Control command. |
| args | Pointer to the control argument buffer. |