Example program for EVAL-AD4130

Dependencies:   tempsensors sdp_k1_sdram

Revision:
2:7b2b268ea49c
diff -r e35d29042687 -r 7b2b268ea49c app/ad4130_iio.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/ad4130_iio.h	Wed Jul 20 18:12:00 2022 +0530
@@ -0,0 +1,48 @@
+/***************************************************************************//**
+*   @file   ad4130_iio.h
+*   @brief  Header file of AD4130 IIO interface
+********************************************************************************
+* Copyright (c) 2020, 2022 Analog Devices, Inc.
+*
+* All rights reserved.
+* This software is proprietary to Analog Devices, Inc. and its licensors.
+* By using this software you agree to the terms of the associated
+* Analog Devices Software License Agreement.
+*******************************************************************************/
+#ifndef AD4130_IIO_H_
+#define AD4130_IIO_H_
+
+/******************************************************************************/
+/***************************** Include Files **********************************/
+/******************************************************************************/
+
+#include <stdio.h>
+#include <stdbool.h>
+#include "iio.h"
+#include "iio_types.h"
+
+/******************************************************************************/
+/****************************** Macros ****************************************/
+/******************************************************************************/
+
+/* ADC channels assigned to sensors for the measurement
+ * (each channel per sensor) */
+enum sensor_channels {
+	SENSOR_CHANNEL0,
+	SENSOR_CHANNEL1,
+	NUM_OF_SENSOR_CHANNELS
+};
+
+/******************************************************************************/
+/************************ Public Declarations *********************************/
+/******************************************************************************/
+
+/* Init the IIO interface */
+int32_t ad4130_iio_initialize(void);
+
+/* Run the IIO event handler */
+void ad4130_iio_event_handler(void);
+
+extern struct ad413x_dev *ad4130_dev_inst;
+
+#endif /* AD4130_IIO_H_ */