Example Program for EVAL-AD7606
Dependencies: platform_drivers
app/ad7606_data_capture.h@6:32de160dce43, 2021-07-21 (annotated)
- Committer:
- Kjansen
- Date:
- Wed Jul 21 11:16:56 2021 +0100
- Revision:
- 6:32de160dce43
- Parent:
- 1:819ac9aa5667
- Child:
- 7:054dbd5e1f45
Updated the project directory structure to remove the duplicate drivers repositories and replaced with common no-os driver repository
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mahphalke |
1:819ac9aa5667 | 1 | /***************************************************************************//** |
mahphalke |
1:819ac9aa5667 | 2 | * @file ad7606_data_capture.h |
mahphalke |
1:819ac9aa5667 | 3 | * @brief Header for AD7606 data capture interfaces |
mahphalke |
1:819ac9aa5667 | 4 | ******************************************************************************** |
mahphalke |
1:819ac9aa5667 | 5 | * Copyright (c) 2020 Analog Devices, Inc. |
mahphalke |
1:819ac9aa5667 | 6 | * |
mahphalke |
1:819ac9aa5667 | 7 | * All rights reserved. |
mahphalke |
1:819ac9aa5667 | 8 | * |
mahphalke |
1:819ac9aa5667 | 9 | * This software is proprietary to Analog Devices, Inc. and its licensors. |
mahphalke |
1:819ac9aa5667 | 10 | * By using this software you agree to the terms of the associated |
mahphalke |
1:819ac9aa5667 | 11 | * Analog Devices Software License Agreement. |
mahphalke |
1:819ac9aa5667 | 12 | *******************************************************************************/ |
mahphalke |
1:819ac9aa5667 | 13 | |
mahphalke |
1:819ac9aa5667 | 14 | #ifndef AD7606_DATA_CAPTURE_H_ |
mahphalke |
1:819ac9aa5667 | 15 | #define AD7606_DATA_CAPTURE_H_ |
mahphalke |
1:819ac9aa5667 | 16 | |
mahphalke |
1:819ac9aa5667 | 17 | /******************************************************************************/ |
mahphalke |
1:819ac9aa5667 | 18 | /***************************** Include Files **********************************/ |
mahphalke |
1:819ac9aa5667 | 19 | /******************************************************************************/ |
mahphalke |
1:819ac9aa5667 | 20 | #include <stddef.h> |
mahphalke |
1:819ac9aa5667 | 21 | |
mahphalke |
1:819ac9aa5667 | 22 | #include "ad7606.h" |
mahphalke |
1:819ac9aa5667 | 23 | #include "ad7606_support.h" |
mahphalke |
1:819ac9aa5667 | 24 | |
mahphalke |
1:819ac9aa5667 | 25 | /******************************************************************************/ |
mahphalke |
1:819ac9aa5667 | 26 | /********************** Macros and Constants Definition ***********************/ |
mahphalke |
1:819ac9aa5667 | 27 | /******************************************************************************/ |
mahphalke |
1:819ac9aa5667 | 28 | |
mahphalke |
1:819ac9aa5667 | 29 | /******************************************************************************/ |
mahphalke |
1:819ac9aa5667 | 30 | /********************** Variables and User Defined Data Types *****************/ |
mahphalke |
1:819ac9aa5667 | 31 | /******************************************************************************/ |
mahphalke |
1:819ac9aa5667 | 32 | |
mahphalke |
1:819ac9aa5667 | 33 | /******************************************************************************/ |
mahphalke |
1:819ac9aa5667 | 34 | /************************ Public Declarations *********************************/ |
mahphalke |
1:819ac9aa5667 | 35 | /******************************************************************************/ |
mahphalke |
1:819ac9aa5667 | 36 | |
Kjansen |
6:32de160dce43 | 37 | int32_t iio_data_capture_init(struct ad7606_dev **device); |
mahphalke |
1:819ac9aa5667 | 38 | int32_t single_data_read(void *device, uint8_t chn, polarity_e polarity); |
mahphalke |
1:819ac9aa5667 | 39 | size_t buffered_data_read(char *pbuf, size_t bytes, size_t offset, |
mahphalke |
1:819ac9aa5667 | 40 | uint32_t chn_mask); |
mahphalke |
1:819ac9aa5667 | 41 | void store_requested_samples_count(size_t bytes); |
Kjansen |
6:32de160dce43 | 42 | void do_conversion_callback(void *ctx, uint32_t event, void *extra); |
mahphalke |
1:819ac9aa5667 | 43 | void start_background_data_capture(uint32_t ch_mask, size_t bytes_count); |
mahphalke |
1:819ac9aa5667 | 44 | void stop_background_data_capture(void); |
mahphalke |
1:819ac9aa5667 | 45 | |
mahphalke |
1:819ac9aa5667 | 46 | #endif /* AD7606_DATA_CAPTURE_H_ */ |