|
precision-converters-firmware
|
Implementation of AD4134 IIO Application interfaces. More...
#include <stdint.h>#include <string.h>#include "no_os_error.h"#include "no_os_alloc.h"#include "no_os_pwm.h"#include "app_config.h"#include "common.h"#include "ad4134_support.h"#include "ad4134_user_config.h"#include "iio_trigger.h"#include "stm32_tdm_support.h"#include "version.h"
Macros | |
| #define | ADC_DEFAULT_REF_VOLTAGE (4.096) |
| #define | ADC_DEFAULT_SCALE ((ADC_DEFAULT_REF_VOLTAGE / (ADC_MAX_COUNT_BIPOLAR)) * 1000) |
| #define | AD7134_IIO_TRIGGER_NAME "ad4134_iio_trigger" |
| #define | NUM_OF_IIO_DEVICES 1 |
| #define | DATA_BUFFER_SIZE (128000) |
Functions | |
| int32_t | debug_reg_read (void *dev, uint32_t reg, uint32_t *readval) |
| Read the debug register value. | |
| int32_t | debug_reg_write (void *dev, uint32_t reg, uint32_t writeval) |
| Write into the debug register. | |
| int32_t | ad7134_trigger_handler (struct iio_device_data *iio_dev_data) |
| int32_t | iio_app_initialize (void) |
| Initialize the AD7134 device for iio interface. | |
| void | iio_app_event_handler (void) |
| Run the AD7134 IIO event handler. | |
Variables | |
| struct iio_attribute | channel_input_attributes [] |
| struct scan_type | chn_scan |
| struct iio_device_data * | ad7134_iio_dev_data |
| bool | data_capture_operation = false |
| uint16_t | adc_data_continuous_mode [AD7134_NUM_CHANNELS] = {0} |
Implementation of AD4134 IIO Application interfaces.
Copyright (c) 2020-21, 2023-25 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 AD7134_IIO_TRIGGER_NAME "ad4134_iio_trigger" |
| #define ADC_DEFAULT_REF_VOLTAGE (4.096) |
| #define ADC_DEFAULT_SCALE ((ADC_DEFAULT_REF_VOLTAGE / (ADC_MAX_COUNT_BIPOLAR)) * 1000) |
| #define DATA_BUFFER_SIZE (128000) |
| #define NUM_OF_IIO_DEVICES 1 |
| int32_t ad7134_trigger_handler | ( | struct iio_device_data * | iio_dev_data | ) |
| int32_t debug_reg_read | ( | void * | dev, |
| uint32_t | reg, | ||
| uint32_t * | readval | ||
| ) |
Read the debug register value.
| dev- | Pointer to IIO device instance |
| reg- | Register address to read from |
| readval- | Pointer to variable to read data into |
| int32_t debug_reg_write | ( | void * | dev, |
| uint32_t | reg, | ||
| uint32_t | writeval | ||
| ) |
Write into the debug register.
| dev- | Pointer to IIO device instance |
| reg- | Register address to write into |
| writeval- | Register value to write |
| void iio_app_event_handler | ( | void | ) |
Run the AD7134 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 AD7134 device for iio interface.
Initialize the IIO interface for AD3530R IIO device.
| struct iio_device_data* ad7134_iio_dev_data |
| uint16_t adc_data_continuous_mode[AD7134_NUM_CHANNELS] = {0} |
| struct iio_attribute channel_input_attributes[] |
| struct scan_type chn_scan |
| bool data_capture_operation = false |