Example Program for EVAL-AD7606

Dependencies:   platform_drivers

Revision:
1:819ac9aa5667
Child:
6:32de160dce43
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/ad7606_data_capture.h	Mon Oct 05 13:45:15 2020 +0530
@@ -0,0 +1,46 @@
+/***************************************************************************//**
+ *   @file   ad7606_data_capture.h
+ *   @brief  Header for AD7606 data capture interfaces
+********************************************************************************
+ * Copyright (c) 2020 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 AD7606_DATA_CAPTURE_H_
+#define AD7606_DATA_CAPTURE_H_
+
+/******************************************************************************/
+/***************************** Include Files **********************************/
+/******************************************************************************/
+#include <stddef.h>
+
+#include "ad7606.h"
+#include "ad7606_support.h"
+
+/******************************************************************************/
+/********************** Macros and Constants Definition ***********************/
+/******************************************************************************/
+
+/******************************************************************************/
+/********************** Variables and User Defined Data Types *****************/
+/******************************************************************************/
+
+/******************************************************************************/
+/************************ Public Declarations *********************************/
+/******************************************************************************/
+
+int32_t iio_data_capture_init(struct ad7606_dev *device);
+int32_t single_data_read(void *device, uint8_t chn, polarity_e polarity);
+size_t buffered_data_read(char *pbuf, size_t bytes, size_t offset,
+			  uint32_t chn_mask);
+void store_requested_samples_count(size_t bytes);
+void do_conversion_callback(void);
+void start_background_data_capture(uint32_t ch_mask, size_t bytes_count);
+void stop_background_data_capture(void);
+
+#endif /* AD7606_DATA_CAPTURE_H_ */