|
precision-converters-firmware
|
Source file for the AD717x IIO Application. More...
#include <stdio.h>#include <string.h>#include "ad717x_user_config.h"#include "app_config.h"#include "ad717x_iio.h"#include "ad717x.h"#include "iio.h"#include "no_os_util.h"#include "no_os_error.h"#include "no_os_alloc.h"#include "common.h"#include "iio_trigger.h"#include "ad717x_support.h"#include "ad717x_system_config.h"#include "version.h"
Macros | |
| #define | BYTES_PER_SAMPLE sizeof(uint32_t) |
| #define | CHN_STORAGE_BITS (BYTES_PER_SAMPLE * 8) |
| #define | AD717x_OW_DETECT_THRESHOLD_IN_MV 300 |
| #define | AD717x_OW_DETECT_SE_CHN_A 0 |
| #define | AD717x_OW_DETECT_SE_CHN_B 15 |
| #define | AD717x_OW_DETECT_DIFF_CHN_A 1 |
| #define | AD717x_OW_DETECT_DIFF_CHN_B 2 |
| #define | AD717x_TEMP_SENSITIVITY 0.000477 |
| #define | AD717x_ABSOLUTE_ZERO_IN_CELSIUS 273.15 |
| #define | AD717x_DATA_BUFFER_SIZE (8192) |
| #define | AD717x_SCAN |
| #define | AD717x_CHANNEL(_name, _priv) |
| #define | AD717x_CHANNEL_AVAIL(_name, _priv) |
| #define | IIO_AD411x_CHANNEL(_idx) |
| #define | IIO_AD717x_CHANNEL(_idx) |
| #define | DATA_BUFFER_SIZE (32768) |
| #define | AD717X_IIO_TRIGGER_NAME "ad717x_iio_trigger" |
| #define | NUM_OF_IIO_DEVICES 2 |
| #define | AD717x_CONV_TIMEOUT 10000 |
| #define | AD717x_OW_NUM_DIFF_OPTIONS 4 |
Functions | |
| int32_t | ad717x_trigger_cont_data_capture (void) |
| Function to prepare the ADC for continuous capture. | |
| int32_t | ad717x_stop_cont_data_capture (void) |
| Function to stop continuous data capture. | |
| int32_t | ad717x_trigger_handler (struct iio_device_data *iio_dev_data) |
| int32_t | iio_ad717x_init (struct iio_device **desc) |
| Init for reading/writing and parameterization of a AD717x IIO device. | |
| int32_t | iio_app_remove (void) |
| Remove the IIO interface for AD717X IIO device. | |
| int32_t | iio_app_initialize (void) |
| Initialize the AD717x IIO Interface. | |
| void | iio_app_event_handler (void) |
| Run the AD717x IIO event handler. | |
Variables | |
| int8_t | adc_data_buffer [DATA_BUFFER_SIZE] |
| ad717x_dev * | p_ad717x_dev_inst = NULL |
Source file for the AD717x IIO Application.
Copyright (c) 2021-23,2025-26 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_ABSOLUTE_ZERO_IN_CELSIUS 273.15 |
| #define AD717x_CHANNEL | ( | _name, | |
| _priv | |||
| ) |
| #define AD717x_CHANNEL_AVAIL | ( | _name, | |
| _priv | |||
| ) |
| #define AD717x_CONV_TIMEOUT 10000 |
| #define AD717x_DATA_BUFFER_SIZE (8192) |
| #define AD717X_IIO_TRIGGER_NAME "ad717x_iio_trigger" |
| #define AD717x_OW_DETECT_DIFF_CHN_A 1 |
| #define AD717x_OW_DETECT_DIFF_CHN_B 2 |
| #define AD717x_OW_DETECT_SE_CHN_A 0 |
| #define AD717x_OW_DETECT_SE_CHN_B 15 |
| #define AD717x_OW_DETECT_THRESHOLD_IN_MV 300 |
| #define AD717x_OW_NUM_DIFF_OPTIONS 4 |
| #define AD717x_SCAN |
| #define AD717x_TEMP_SENSITIVITY 0.000477 |
| #define BYTES_PER_SAMPLE sizeof(uint32_t) |
| #define CHN_STORAGE_BITS (BYTES_PER_SAMPLE * 8) |
| #define DATA_BUFFER_SIZE (32768) |
| #define IIO_AD411x_CHANNEL | ( | _idx | ) |
| #define IIO_AD717x_CHANNEL | ( | _idx | ) |
| #define NUM_OF_IIO_DEVICES 2 |
| enum ad717x_attribute_ids |
| int32_t ad717x_stop_cont_data_capture | ( | void | ) |
Function to stop continuous data capture.
| int32_t ad717x_trigger_cont_data_capture | ( | void | ) |
Function to prepare the ADC for continuous capture.
| int32_t ad717x_trigger_handler | ( | struct iio_device_data * | iio_dev_data | ) |

| int32_t iio_ad717x_init | ( | struct iio_device ** | desc | ) |
Init for reading/writing and parameterization of a AD717x IIO device.
| desc[in,out] | IIO device descriptor |

| void iio_app_event_handler | ( | void | ) |
Run the AD717x IIO event handler.
Run the AD3530R IIO event handler.

| int32_t iio_app_initialize | ( | void | ) |
Initialize the AD717x IIO Interface.
Initialize the IIO interface for AD3530R IIO device.

| int32_t iio_app_remove | ( | void | ) |
Remove the IIO interface for AD717X IIO device.

| int8_t adc_data_buffer[DATA_BUFFER_SIZE] |
| ad717x_dev* p_ad717x_dev_inst = NULL |