precision-converters-firmware
Loading...
Searching...
No Matches
Variables
ad5706r_user_config.c File Reference

User configuration source for the AD5706R IIO Application. More...

#include <stdint.h>
#include "ad5706r_user_config.h"
#include "app_config.h"
#include "no_os_spi.h"
#include "no_os_gpio.h"
Include dependency graph for ad5706r_user_config.c:

Variables

struct no_os_gpio_init_param gpio_reset_params
 
struct ad5706r_init_param ad5706r_init_params
 

Detailed Description

User configuration source for the AD5706R IIO Application.

Copyright (c) 2024-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.

Variable Documentation

◆ ad5706r_init_params

struct ad5706r_init_param ad5706r_init_params
Initial value:
= {
.spi_init_prm = &spi_init_params,
.gpio_ldac_tgp = &gpio_ldac_tg_params,
.gpio_reset = &gpio_reset_params,
.vref_enable = AD5706R_EXTERNAL_VREF_PIN_INPUT,
.op_mode = { AD5706R_SHUTDOWN_SW, AD5706R_SHUTDOWN_SW, AD5706R_SHUTDOWN_SW, AD5706R_SHUTDOWN_SW },
.range = { AD5706R_50mA, AD5706R_50mA, AD5706R_50mA, AD5706R_50mA },
.crc_en = false,
.spi_cfg = { false, false, false, false, 1 },
.dac_mode = { AD5706R_DIRECT_WRITE_REG, AD5706R_DIRECT_WRITE_REG, AD5706R_DIRECT_WRITE_REG, AD5706R_DIRECT_WRITE_REG },
.ldac_cfg = {
.func_en_mask = 0x0000,
.func_mode = { AD5706R_TOGGLE, AD5706R_TOGGLE, AD5706R_TOGGLE, AD5706R_TOGGLE },
.ldac_hw_sw_mask = 0x0000,
.ldac_sync_async_mask = 0x0000,
.multi_dac_ch_mask = 0x0000,
.dither_period = { AD5706R_SAMPLES_4, AD5706R_SAMPLES_4, AD5706R_SAMPLES_4, AD5706R_SAMPLES_4 },
.dither_phase = { AD5706R_DEGREES_0, AD5706R_DEGREES_0, AD5706R_DEGREES_0, AD5706R_DEGREES_0 },
.edge_trig = { AD5706R_RISING_EDGE_TRIG, AD5706R_RISING_EDGE_TRIG, AD5706R_RISING_EDGE_TRIG, AD5706R_RISING_EDGE_TRIG }
},
.dev_addr = 0x0,
.mux_out_mode = AD5706R_HIGH_Z,
.mux_out_sel = AD5706R_AGND,
}
struct no_os_spi_init_param spi_init_params
Definition ad3530r_user_config.c:48
struct no_os_gpio_init_param gpio_ldac_tg_params
Definition app_config.c:93
struct no_os_gpio_init_param gpio_reset_params
Definition ad5706r_user_config.c:42

◆ gpio_reset_params

struct no_os_gpio_init_param gpio_reset_params
Initial value:
= {
.port = RESET_PORT,
.number = GPIO_RESET,
.platform_ops = &gpio_ops,
}
#define gpio_ops
Definition app_config.h:85
#define RESET_PORT
Definition app_config_stm32.h:48
#define gpio_reset_extra_params
Definition app_config_stm32.h:117
#define GPIO_RESET
Definition app_config_stm32.h:53