no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
iio_dual_ad713x.h
Go to the documentation of this file.
1/***************************************************************************/
33#ifndef IIO_DUAL_AD713X
34#define IIO_DUAL_AD713X
35
36#ifdef IIO_SUPPORT
37
38#include <stdio.h>
39#include "ad713x.h"
40#include "iio_types.h"
41#include "no_os_spi.h"
42
47struct iio_ad713x_init_par {
49 uint8_t num_channels;
50 /* Device instance */
51 struct ad713x_dev *dev;
53 struct no_os_spi_desc *spi_eng_desc;
55 struct spi_engine_offload_message *spi_engine_offload_message;
57 void (*dcache_invalidate_range)(uint32_t address, uint32_t bytes_count);
58};
59
60struct iio_ad713x {
61 /* Mask of active ch */
62 uint32_t mask;
64 struct iio_device iio_dev_desc;
66 struct no_os_spi_desc *spi_eng_desc;
68 struct spi_engine_offload_message *spi_engine_offload_message;
70 void (*dcache_invalidate_range)(uint32_t address, uint32_t bytes_count);
71};
72
73/* Init function. */
74int32_t iio_dual_ad713x_init(struct iio_ad713x **desc,
75 struct iio_ad713x_init_par *param);
76/* Get desciptor. */
77void iio_dual_ad713x_get_dev_descriptor(struct iio_ad713x *desc,
78 struct iio_device **dev_descriptor);
79/* Free the resources allocated by iio_ad713x_init(). */
80int32_t iio_dual_ad713x_remove(struct iio_ad713x *desc);
81
82#endif /* IIO_SUPPORT */
83
84#endif /* IIO_AD713X */
num_channels
Definition ad3552r.h:234
Header file for the ad713x Driver.
Header file for iio_types.
Header file of SPI Interface.
Structure holding channels and attributes of a device.
Definition iio_types.h:238