no-OS
iio_ad463x.h
Go to the documentation of this file.
1 /***************************************************************************/
39 #ifndef IIO_AD463x
40 #define IIO_AD463x
41 
42 #ifdef IIO_SUPPORT
43 
44 /******************************************************************************/
45 /***************************** Include Files **********************************/
46 /******************************************************************************/
47 
48 #include <stdio.h>
49 #include "iio_types.h"
50 #include "no_os_spi.h"
51 
52 /******************************************************************************/
53 /*************************** Types Declarations *******************************/
54 /******************************************************************************/
55 
56 struct iio_ad463x {
57  /* Mask of active ch */
58  uint32_t mask;
60  struct iio_device iio_dev_desc;
62  struct ad463x_dev *ad463x_desc;
63 };
64 
65 extern struct iio_device ad463x_iio_desc;
66 
67 /******************************************************************************/
68 /************************ Functions Declarations ******************************/
69 /******************************************************************************/
70 
71 /* Init function. */
72 int32_t iio_ad463x_init(struct iio_ad463x **desc,
73  struct ad463x_dev *dev);
74 
75 /* Free the resources allocated by iio_ad463x_init(). */
76 int32_t iio_ad463x_remove(struct iio_ad463x *desc);
77 
78 #endif /* IIO_SUPPORT */
79 
80 #endif /* IIO_AD463x */
iio_channel
Struct describing the scan type.
Definition: iio_types.h:173
scan_type::sign
char sign
Definition: iio_types.h:158
iio_device::channels
struct iio_channel * channels
Definition: iio_types.h:250
no_os_spi.h
Header file of SPI Interface.
no_os_error.h
Error codes definition.
ad463x.h
Header file of AD463x Driver.
ad463x_read_data
int32_t ad463x_read_data(struct ad463x_dev *dev, uint32_t *buf, uint16_t samples)
Read from device. Enter register mode to read/write registers.
Definition: ad463x.c:321
iio_ad463x.h
Header file of iio_ad463x.
adc_scan_type
struct scan_type adc_scan_type
Definition: iio_adc_demo.c:228
iio_types.h
Header file for iio_types.
NO_OS_BIT
#define NO_OS_BIT(x)
Definition: no_os_util.h:51
iio_device
Structure holding channels and attributes of a device.
Definition: iio_types.h:243
ad463x_dev
Device initialization parameters.
Definition: ad463x.h:215
scan_type
Definition: iio_types.h:156