Program files for Example program for EVAL-AD7768-1
Dependencies: platform_drivers
ad77681_data_capture.c File Reference
Data capture interface for AD7768-1 IIO application. More...
Go to the source code of this file.
Functions | |
static int32_t | ad77681_single_sample_read_start_ops (uint8_t input_chn) |
Perform the operations required before starting continuous sample read. | |
static int32_t | ad77681_continuous_sample_read_start_ops (uint32_t chn_mask) |
Perform the operations required before starting continuous sample read. | |
static int32_t | ad77681_perform_conv_and_read_sample (uint32_t *read_adc_data, uint8_t chn) |
Read ADC single sample data. | |
static int32_t | ad77681_read_converted_sample (uint32_t *adc_raw, uint8_t chn_indx) |
Read ADC raw data for recently sampled channel. |
Detailed Description
Data capture interface for AD7768-1 IIO application.
This module handles the AD7768-1 data capturing
Copyright (c) 2021 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 ad77681_data_capture.c.
Function Documentation
int32_t ad77681_continuous_sample_read_start_ops | ( | uint32_t | chn_mask ) | [static] |
Perform the operations required before starting continuous sample read.
- Parameters:
-
chn_mask[in] - holds the list of all active channels set from IIO client for data capturing
- Returns:
- SUCCESS in case of success, FAILURE otherwise
Definition at line 103 of file ad77681_data_capture.c.
int32_t ad77681_perform_conv_and_read_sample | ( | uint32_t * | read_adc_data, |
uint8_t | chn | ||
) | [static] |
Read ADC single sample data.
- Parameters:
-
read_adc_data[out] - Pointer to adc data read variable chn[in] - Channel for which data is to read
- Returns:
- SUCCESS in case of success, FAILURE otherwise
This function performs the sampling on previously active channel and then read conversion result
Definition at line 160 of file ad77681_data_capture.c.
int32_t ad77681_read_converted_sample | ( | uint32_t * | adc_raw, |
uint8_t | chn_indx | ||
) | [static] |
Read ADC raw data for recently sampled channel.
- Parameters:
-
adc_raw[out] - Pointer to adc data read variable chn_indx[in] - Channel for which data is to read
- Returns:
- SUCCESS in case of success, FAILURE otherwise
- Note:
- This function is intended to call from the conversion end trigger event. Therefore, this function should just read raw ADC data without further monitoring conversion end event
Definition at line 127 of file ad77681_data_capture.c.
int32_t ad77681_single_sample_read_start_ops | ( | uint8_t | input_chn ) | [static] |
Perform the operations required before starting continuous sample read.
- Parameters:
-
input_chn[out] - ADC input channel
- Returns:
- SUCCESS in case of success, FAILURE otherwise
Definition at line 82 of file ad77681_data_capture.c.
Generated on Tue Jul 12 2022 19:15:23 by 1.7.2