|
precision-converters-firmware
|
Implementation of AD717x System Configuration. More...
#include <stdint.h>#include <string.h>#include <stdio.h>#include <stdlib.h>#include "ad717x_system_config.h"#include "ad717x_user_config.h"#include "no_os_alloc.h"#include "no_os_error.h"#include "no_os_util.h"
Macros | |
| #define | AD717x_SETUP_ATTR(_name, _priv) |
| #define | AD717x_SETUP_AVAIL_ATTR(_name, _priv) |
| #define | AD717x_SETUP_CH(_idx) |
| #define | AD717x_CH_ATTR(_name, _priv) |
| #define | AD717x_CH_AVAIL_ATTR(_name, _priv) |
| #define | AD717x_ADC_CH(_idx) |
| #define | AD717x_OPT_IDX_FALSE 0 |
| #define | AD717x_OPT_IDX_TRUE 1 |
| #define | AD717x_FILTER_IDX_SINC5_SINC1 0 |
| #define | AD717x_FILTER_IDX_SINC3 1 |
| #define | AD717x_NUM_ODR_OPTIONS 23 |
Enumerations | |
| enum | ad717x_setup_attribute_ids { POLARITY_ATTR_ID , REFERENCE_SOURCE_ATTR_ID , REFERENCE_BUFFER_ATTR_ID , INPUT_BUFFER_ATTR_ID , DATA_RATE_ATTR_ID , FILTER_ATTR_ID , POST_FILTER_ENABLE_ATTR_ID , POST_FILTER_ATTR_ID , RECONFIGURE_SYSTEM_ATTR_ID } |
| AD717x setup attribute unique IDs. More... | |
| enum | ad717x_ch_attribute_ids { SETUP_ATTR_ID } |
| AD717x ADC channel attribute unique IDs. More... | |
Functions | |
| int32_t | ad717x_get_sampling_frequency (ad717x_dev *device, float *sampling_freq) |
| Get the effective sampling frequency with all channels enabled. | |
| int32_t | iio_ad717x_system_config_init (struct iio_device **desc, ad717x_dev *device) |
| Initialize the IIO device descriptor for AD717x system configuration. | |
| bool | iio_ad717x_is_system_reconfigured (void) |
| Check if the AD717x system reconfigure is requested. | |
| int32_t | iio_ad717x_system_config_remove (struct iio_device *desc) |
| Remove the AD717x system configuration device. | |
Implementation of AD717x System Configuration.
Copyright (c) 2026 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.
| #define AD717x_ADC_CH | ( | _idx | ) |
| #define AD717x_CH_ATTR | ( | _name, | |
| _priv | |||
| ) |
| #define AD717x_CH_AVAIL_ATTR | ( | _name, | |
| _priv | |||
| ) |
| #define AD717x_FILTER_IDX_SINC3 1 |
| #define AD717x_FILTER_IDX_SINC5_SINC1 0 |
| #define AD717x_NUM_ODR_OPTIONS 23 |
| #define AD717x_OPT_IDX_FALSE 0 |
| #define AD717x_OPT_IDX_TRUE 1 |
| #define AD717x_SETUP_ATTR | ( | _name, | |
| _priv | |||
| ) |
| #define AD717x_SETUP_AVAIL_ATTR | ( | _name, | |
| _priv | |||
| ) |
| #define AD717x_SETUP_CH | ( | _idx | ) |
| int32_t ad717x_get_sampling_frequency | ( | ad717x_dev * | device, |
| float * | sampling_freq | ||
| ) |
Get the effective sampling frequency with all channels enabled.
| device | - AD717x device instance |
| sampling_freq[out] | - Pointer to store the sampling frequency in Hz |
The ADC cycles through each channel sequentially. The overall effective sampling frequency is the minimum ODR across all channels divided by the total number of channels.
| bool iio_ad717x_is_system_reconfigured | ( | void | ) |
Check if the AD717x system reconfigure is requested.

| int32_t iio_ad717x_system_config_init | ( | struct iio_device ** | desc, |
| ad717x_dev * | device | ||
| ) |
Initialize the IIO device descriptor for AD717x system configuration.
| desc[in,out] | - IIO device descriptor |
| device[in] | - AD717x device instance |

| int32_t iio_ad717x_system_config_remove | ( | struct iio_device * | desc | ) |
Remove the AD717x system configuration device.
| desc | - AD717x System Configuration device instance |
