![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
this is testing
app/src/ad7606_data_capture.h@0:3afcd581558d, 2021-01-14 (annotated)
- Committer:
- pmallick
- Date:
- Thu Jan 14 18:54:16 2021 +0530
- Revision:
- 0:3afcd581558d
this is testing
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
pmallick | 0:3afcd581558d | 1 | /***************************************************************************//** |
pmallick | 0:3afcd581558d | 2 | * @file ad7606_data_capture.h |
pmallick | 0:3afcd581558d | 3 | * @brief Header for AD7606 data capture interfaces |
pmallick | 0:3afcd581558d | 4 | ******************************************************************************** |
pmallick | 0:3afcd581558d | 5 | * Copyright (c) 2020 Analog Devices, Inc. |
pmallick | 0:3afcd581558d | 6 | * |
pmallick | 0:3afcd581558d | 7 | * All rights reserved. |
pmallick | 0:3afcd581558d | 8 | * |
pmallick | 0:3afcd581558d | 9 | * This software is proprietary to Analog Devices, Inc. and its licensors. |
pmallick | 0:3afcd581558d | 10 | * By using this software you agree to the terms of the associated |
pmallick | 0:3afcd581558d | 11 | * Analog Devices Software License Agreement. |
pmallick | 0:3afcd581558d | 12 | *******************************************************************************/ |
pmallick | 0:3afcd581558d | 13 | |
pmallick | 0:3afcd581558d | 14 | #ifndef AD7606_DATA_CAPTURE_H_ |
pmallick | 0:3afcd581558d | 15 | #define AD7606_DATA_CAPTURE_H_ |
pmallick | 0:3afcd581558d | 16 | |
pmallick | 0:3afcd581558d | 17 | /******************************************************************************/ |
pmallick | 0:3afcd581558d | 18 | /***************************** Include Files **********************************/ |
pmallick | 0:3afcd581558d | 19 | /******************************************************************************/ |
pmallick | 0:3afcd581558d | 20 | #include <stddef.h> |
pmallick | 0:3afcd581558d | 21 | |
pmallick | 0:3afcd581558d | 22 | #include "ad7606.h" |
pmallick | 0:3afcd581558d | 23 | #include "ad7606_support.h" |
pmallick | 0:3afcd581558d | 24 | |
pmallick | 0:3afcd581558d | 25 | /******************************************************************************/ |
pmallick | 0:3afcd581558d | 26 | /********************** Macros and Constants Definition ***********************/ |
pmallick | 0:3afcd581558d | 27 | /******************************************************************************/ |
pmallick | 0:3afcd581558d | 28 | |
pmallick | 0:3afcd581558d | 29 | /* This is a number of bytes read in single query of read IIO buffer */ |
pmallick | 0:3afcd581558d | 30 | #define IIO_DATA_BUFFER_RD_SIZE (256) |
pmallick | 0:3afcd581558d | 31 | |
pmallick | 0:3afcd581558d | 32 | /* Total number of samples to be read in one go are equal to buffer read size */ |
pmallick | 0:3afcd581558d | 33 | #define NO_OF_SAMPLES (IIO_DATA_BUFFER_RD_SIZE) |
pmallick | 0:3afcd581558d | 34 | |
pmallick | 0:3afcd581558d | 35 | /******************************************************************************/ |
pmallick | 0:3afcd581558d | 36 | /********************** Variables and User Defined Data Types *****************/ |
pmallick | 0:3afcd581558d | 37 | /******************************************************************************/ |
pmallick | 0:3afcd581558d | 38 | |
pmallick | 0:3afcd581558d | 39 | /******************************************************************************/ |
pmallick | 0:3afcd581558d | 40 | /************************ Public Declarations *********************************/ |
pmallick | 0:3afcd581558d | 41 | /******************************************************************************/ |
pmallick | 0:3afcd581558d | 42 | |
pmallick | 0:3afcd581558d | 43 | int32_t iio_data_capture_init(struct ad7606_dev *device); |
pmallick | 0:3afcd581558d | 44 | int32_t single_data_read(void *device, uint8_t chn, polarity_e polarity); |
pmallick | 0:3afcd581558d | 45 | void buffered_data_read(char *pbuf, size_t bytes, size_t offset, |
pmallick | 0:3afcd581558d | 46 | uint32_t chn_mask); |
pmallick | 0:3afcd581558d | 47 | void do_conversion_callback(void); |
pmallick | 0:3afcd581558d | 48 | void start_background_data_conversion(void); |
pmallick | 0:3afcd581558d | 49 | void stop_background_data_conversion(void); |
pmallick | 0:3afcd581558d | 50 | |
pmallick | 0:3afcd581558d | 51 | #endif /* AD7606_DATA_CAPTURE_H_ */ |