precision-converters-firmware
Variables
ad5754r_user_config.c File Reference

User configuration file for AD5754R devices. More...

#include "ad5754r_user_config.h"
#include "app_config.h"
Include dependency graph for ad5754r_user_config.c:

Variables

struct no_os_spi_init_param spi_init_params
 
struct ad5754r_init_param ad5754r_init_params
 

Detailed Description

User configuration file for AD5754R devices.

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

Variable Documentation

◆ ad5754r_init_params

struct ad5754r_init_param ad5754r_init_params
Initial value:
= {
.spi_init = &spi_init_params,
.gpio_clear_init = &clear_gpio_params,
.gpio_ldac_init = &ldac_gpio_params,
.clamp_en = AD5754R_CTRL_CLAMP_DIS,
.tsd_en = AD5754R_CTRL_TSD_DIS,
.clear_sel = AD5754R_CTRL_CLEAR_MIDSCALE_CODE,
.sdo_dis = AD5754R_CTRL_SDO_EN,
.dac_ch_pwr_states = {
AD5754R_PWR_DAC_CH_POWERDOWN,
AD5754R_PWR_DAC_CH_POWERDOWN,
AD5754R_PWR_DAC_CH_POWERDOWN,
AD5754R_PWR_DAC_CH_POWERDOWN,
},
.dac_ch_range = {
AD5754R_SPAN_0V_TO_5V,
AD5754R_SPAN_0V_TO_5V,
AD5754R_SPAN_0V_TO_5V,
AD5754R_SPAN_0V_TO_5V
},
.int_ref_pwrup = AD5754R_PWR_INT_REF_POWERDOWN,
.encoding = AD5754R_ENCODING_BINARY,
.vref_mv = AD5754R_VREF * 1000
}
struct no_os_gpio_init_param clear_gpio_params
Definition: app_config.c:111
struct no_os_gpio_init_param ldac_gpio_params
Definition: app_config.c:103
#define AD5754R_VREF
Definition: app_config.h:71
struct no_os_spi_init_param spi_init_params
Definition: ad5754r_user_config.c:29

◆ spi_init_params

struct no_os_spi_init_param spi_init_params
Initial value:
= {
.max_speed_hz = 12500000,
.mode = NO_OS_SPI_MODE_2,
.chip_select = SPI_CSB,
.platform_ops = &spi_ops,
}
#define spi_ops
Definition: app_config.h:86
#define spi_extra_init_params
Definition: app_config.h:80
#define SPI_CSB
Definition: app_config_mbed.h:33