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: tempsensors sdp_k1_sdram
ad4110_data_capture.h File Reference
Header file for AD4110 Data capture. More...
Go to the source code of this file.
Functions | |
| int32_t | prepare_data_transfer (uint32_t ch_mask, uint8_t num_of_chns, uint8_t sample_size_in_byte) |
| Function to prepare the data ADC capture for new READBUFF request from IIO client (for active channels) | |
| int32_t | end_data_transfer (void) |
| Function to end data capture. | |
| int32_t | read_buffered_data (int8_t **pbuf, uint32_t nb_of_bytes) |
| Function to read the ADC buffered raw data requested by IIO client. | |
| void | data_capture_callback (void *ctx) |
| This is an ISR (Interrupt Service Routine) to monitor end of conversion event. | |
Detailed Description
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.
Definition in file ad4110_data_capture.h.
Function Documentation
| void data_capture_callback | ( | void * | ctx ) |
This is an ISR (Interrupt Service Routine) to monitor end of conversion event.
- Parameters:
-
ctx[in] - Callback context (unused)
- Returns:
- none
This is an Interrupt callback function/ISR invoked in synchronous/asynchronous manner depending upon the application implementation. The conversion results are read into acquisition buffer and control continue to sample next channel. This continues until conversion is stopped (through IIO client command)
Definition at line 433 of file ad4110_data_capture.c.
| int32_t end_data_transfer | ( | void | ) |
Function to end data capture.
- Returns:
- 0 in case of success, negative error code otherwise
Definition at line 211 of file ad4110_data_capture.c.
| int32_t prepare_data_transfer | ( | uint32_t | ch_mask, |
| uint8_t | num_of_chns, | ||
| uint8_t | sample_size | ||
| ) |
Function to prepare the data ADC capture for new READBUFF request from IIO client (for active channels)
- Parameters:
-
chn_mask[in] - Channels to enable for data capturing num_of_chns[in] - ADC channel count sample_size[in] - Sample size in bytes
- Returns:
- 0 in case of success, negative error code otherwise
Definition at line 151 of file ad4110_data_capture.c.
| int32_t read_buffered_data | ( | int8_t ** | pbuf, |
| uint32_t | nb_of_bytes | ||
| ) |
Function to read the ADC buffered raw data requested by IIO client.
- Parameters:
-
pbuf[in] - Pointer to data buffer nb_of_bytes[in] - Number of bytes to read
- Returns:
- 0 in case of success, negative error code otherwise
Definition at line 488 of file ad4110_data_capture.c.
Generated on Mon Aug 1 2022 05:40:39 by
1.7.2