Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: sdp_k1_sdram
ad7689_data_capture.h
00001 /***************************************************************************//** 00002 * @file ad7689_data_capture.h 00003 * @brief Header for AD7689 data capture interfaces 00004 ******************************************************************************** 00005 * Copyright (c) 2021-22 Analog Devices, Inc. 00006 * All rights reserved. 00007 * 00008 * This software is proprietary to Analog Devices, Inc. and its licensors. 00009 * By using this software you agree to the terms of the associated 00010 * Analog Devices Software License Agreement. 00011 *******************************************************************************/ 00012 00013 #ifndef _AD7689_DATA_CAPTURE_H_ 00014 #define _AD7689_DATA_CAPTURE_H_ 00015 00016 /******************************************************************************/ 00017 /***************************** Include Files **********************************/ 00018 /******************************************************************************/ 00019 00020 #include <stdint.h> 00021 #include "app_config.h" 00022 00023 /******************************************************************************/ 00024 /********************** Macros and Constants Definition ***********************/ 00025 /******************************************************************************/ 00026 00027 #if defined(USE_SDRAM_CAPTURE_BUFFER) 00028 #define adc_data_buffer SDRAM_START_ADDRESS 00029 #define DATA_BUFFER_SIZE SDRAM_SIZE_BYTES 00030 #else 00031 extern int8_t adc_data_buffer[]; 00032 #define DATA_BUFFER_SIZE (32768) // 32kbytes 00033 #endif 00034 00035 /******************************************************************************/ 00036 /********************** Variables and User Defined Data Types *****************/ 00037 /******************************************************************************/ 00038 00039 /******************************************************************************/ 00040 /************************ Public Declarations *********************************/ 00041 /******************************************************************************/ 00042 00043 int32_t read_single_sample(uint8_t input_chn, uint32_t *raw_data); 00044 int32_t read_buffered_data(int8_t **pbuf, uint32_t nb_of_bytes); 00045 int32_t prepare_data_transfer(uint32_t ch_mask, uint8_t num_of_chns, 00046 uint8_t sample_size_in_byte); 00047 int32_t end_data_transfer(void); 00048 void data_capture_callback(void *ctx); 00049 00050 #endif /* _AD7689_DATA_CAPTURE_H_ */
Generated on Thu Jul 21 2022 11:15:40 by
1.7.2