IIO firmware for the AD4110

Dependencies:   tempsensors sdp_k1_sdram

Revision:
0:6ca37a8f8ba9
diff -r 000000000000 -r 6ca37a8f8ba9 app/ad4110_data_capture.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/ad4110_data_capture.h	Wed Jul 27 17:04:15 2022 +0530
@@ -0,0 +1,45 @@
+/***************************************************************************//**
+ *   @file    ad4110_data_capture.h
+ *   @brief   Header file for AD4110 Data capture
+********************************************************************************
+ * Copyright (c) 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 _AD4110_DATA_CAPTURE_H_
+#define _AD4110_DATA_CAPTURE_H_
+
+/******************************************************************************/
+/***************************** Include Files **********************************/
+/******************************************************************************/
+
+#include "app_config.h"
+
+/******************************************************************************/
+/********************** Macros and Constants Definition ***********************/
+/******************************************************************************/
+
+#if defined(USE_SDRAM_CAPTURE_BUFFER)
+#define adc_data_buffer				SDRAM_START_ADDRESS
+#define DATA_BUFFER_SIZE			SDRAM_SIZE_BYTES
+#else
+extern int8_t adc_data_buffer[];
+#define DATA_BUFFER_SIZE			(32768)		// 32kbytes
+#endif
+
+/******************************************************************************/
+/********************** Public/Extern Declarations ****************************/
+/******************************************************************************/
+
+int32_t prepare_data_transfer(uint32_t ch_mask, uint8_t num_of_chns,
+			      uint8_t sample_size_in_byte);
+int32_t end_data_transfer(void);
+int32_t read_buffered_data(int8_t **pbuf, uint32_t nb_of_bytes);
+void data_capture_callback(void *ctx);
+
+#endif /* _AD4110_DATA_CAPTURE_H_ */
+