|
precision-converters-firmware
|
Implementation of AD552XR IIO Application Interface. More...
#include <string.h>#include <stdint.h>#include <stdio.h>#include "common.h"#include "app_config.h"#include "ad552xr.h"#include "ad552xr_user_config.h"#include "ad552xr_regs.h"#include "ad552xr_support.h"#include "no_os_error.h"#include "no_os_delay.h"#include "no_os_alloc.h"#include "no_os_util.h"#include "no_os_pwm.h"#include "iio_trigger.h"#include "version.h"
Macros | |
| #define | BYTES_PER_SAMPLE (AD552XR_DAC_RESOLUTION / 8) |
| #define | CHN_STORAGE_BITS (BYTES_PER_SAMPLE * 8) |
| #define | AD552XR_CHN_ATTR(_name, _priv) |
| #define | AD552XR_CHN_AVAIL_ATTR(_name, _priv) |
| #define | AD552XR_DAC_CH(_name, _dev, _idx) |
| #define | AD552XR_DEFAULT_CHN_SCAN |
| #define | AD552XR_NUM_BYTES_TRANSFER (sizeof(uint16_t) + BYTES_PER_SAMPLE) |
| #define | DATA_BUFFER_SIZE 32768 |
| #define | BUF_READ_TIMEOUT 0xffffffff |
| #define | AD552XR_MAX_SPI_FREQUENCY 45E6 |
| #define | AD552XR_IIO_TRIGGER_NAME "ad552xr_iio_trigger" |
Functions | |
| uint32_t | debug_reg_search (uint32_t addr) |
| Search for the base address for multi byte register. | |
| void | iio_app_remove (void) |
| Remove the IIO resources for AD552XR IIO application. | |
| int32_t | iio_app_initialize (void) |
| Initialize the IIO interface for AD552XR IIO device. | |
| void | iio_app_event_handler (void) |
| Run the AD552XR IIO event handler. | |
Variables | |
| struct scan_type | iio_ad552xr_scan_type [AD552XR_IIO_NUM_DEVICES][AD552XR_MAX_NUM_CH] |
Implementation of AD552XR IIO Application Interface.
This module acts as an interface for AD552XR IIO device
Copyright (c) 2026 Analog Devices, Inc.
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 AD552XR_CHN_ATTR | ( | _name, | |
| _priv | |||
| ) |
| #define AD552XR_CHN_AVAIL_ATTR | ( | _name, | |
| _priv | |||
| ) |
| #define AD552XR_DAC_CH | ( | _name, | |
| _dev, | |||
| _idx | |||
| ) |
| #define AD552XR_DEFAULT_CHN_SCAN |
| #define AD552XR_IIO_TRIGGER_NAME "ad552xr_iio_trigger" |
| #define AD552XR_MAX_SPI_FREQUENCY 45E6 |
| #define AD552XR_NUM_BYTES_TRANSFER (sizeof(uint16_t) + BYTES_PER_SAMPLE) |
| #define BUF_READ_TIMEOUT 0xffffffff |
| #define BYTES_PER_SAMPLE (AD552XR_DAC_RESOLUTION / 8) |
| #define CHN_STORAGE_BITS (BYTES_PER_SAMPLE * 8) |
| #define DATA_BUFFER_SIZE 32768 |
| uint32_t debug_reg_search | ( | uint32_t | addr | ) |
Search for the base address for multi byte register.
| addr[in] | - Address as requested by the IIO client |
| void iio_app_event_handler | ( | void | ) |
Run the AD552XR IIO event handler.
Run the AD3530R IIO event handler.
This function monitors the new IIO client event
| int32_t iio_app_initialize | ( | void | ) |
Initialize the IIO interface for AD552XR IIO device.
Initialize the IIO interface for AD3530R IIO device.
| void iio_app_remove | ( | void | ) |
Remove the IIO resources for AD552XR IIO application.

| struct scan_type iio_ad552xr_scan_type[AD552XR_IIO_NUM_DEVICES][AD552XR_MAX_NUM_CH] |