![]() |
no-OS
|
Header file of AD796X Driver. More...
#include "no_os_gpio.h"#include "no_os_pwm.h"#include "axi_dmac.h"#include "clk_axi_clkgen.h"#include "axi_adc_core.h"Classes | |
| struct | ad796x_init_param |
| AD796X Device initialization parameters. More... | |
| struct | ad796x_dev |
| AD796X Device structure. More... | |
Macros | |
| #define | AD796X_NUM_GPIOS 4 |
Functions | |
| int | ad796x_init (struct ad796x_dev **device, struct ad796x_init_param *init_param) |
| Initialize the device. | |
| int | ad796x_remove (struct ad796x_dev *dev) |
| Remove the device and release resources. | |
| int32_t | ad796x_read_data (struct ad796x_dev *dev, uint32_t *buf, uint16_t samples) |
| Read data samples from adc. | |
Header file of AD796X Driver.
Copyright 2024(c) Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
| #define AD796X_NUM_GPIOS 4 |
| enum ad796x_mode |
| int ad796x_init | ( | struct ad796x_dev ** | device, |
| struct ad796x_init_param * | init_param ) |
Initialize the device.
| device | - The device structure. |
| init_param | - The structure that contains the device initial parameters. |
| int32_t ad796x_read_data | ( | struct ad796x_dev * | dev, |
| uint32_t * | buf, | ||
| uint16_t | samples ) |
Read data samples from adc.
| dev | - The device structure. |
| buf | - The buffer to fill. |
| samples | - number of samples to read. |
| int ad796x_remove | ( | struct ad796x_dev * | dev | ) |
Remove the device and release resources.
| dev | - The device structure. |