precision-converters-firmware
Loading...
Searching...
No Matches
Functions
ad717x_system_config.h File Reference

Header file for AD717x System Configuration. More...

#include "iio.h"
#include "ad717x.h"
Include dependency graph for ad717x_system_config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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.
 
int32_t ad717x_get_sampling_frequency (ad717x_dev *device, float *sampling_freq)
 Get the effective sampling frequency with all channels enabled.
 

Detailed Description

Header file for 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.

Function Documentation

◆ ad717x_get_sampling_frequency()

int32_t ad717x_get_sampling_frequency ( ad717x_dev *  device,
float *  sampling_freq 
)

Get the effective sampling frequency with all channels enabled.

Parameters
device- AD717x device instance
sampling_freq[out]- Pointer to store the sampling frequency in Hz
Returns
0 in case of success, negative error code otherwise

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.

◆ iio_ad717x_is_system_reconfigured()

bool iio_ad717x_is_system_reconfigured ( void  )

Check if the AD717x system reconfigure is requested.

Returns
true if the system reconfigure is requested, false otherwise
Here is the caller graph for this function:

◆ iio_ad717x_system_config_init()

int32_t iio_ad717x_system_config_init ( struct iio_device **  desc,
ad717x_dev *  device 
)

Initialize the IIO device descriptor for AD717x system configuration.

Parameters
desc[in,out]- IIO device descriptor
device[in]- AD717x device instance
Returns
0 in case of success, negative error code otherwise
Here is the caller graph for this function:

◆ iio_ad717x_system_config_remove()

int32_t iio_ad717x_system_config_remove ( struct iio_device *  desc)

Remove the AD717x system configuration device.

Parameters
desc- AD717x System Configuration device instance
Returns
0 in case of success, negative error code otherwise
Here is the caller graph for this function: