precision-converters-firmware
Variables
ad355xr_user_config.c File Reference

User configuration file for AD355XR devices. More...

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

Variables

struct no_os_gpio_init_param gpio_reset_init
 
struct no_os_gpio_init_param gpio_ldac_init
 
struct no_os_spi_init_param spi_init_params_without_sw_csb
 
struct ad3552r_init_param ad3552r_init_params
 

Detailed Description

User configuration file for AD355XR devices.

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

◆ ad3552r_init_params

struct ad3552r_init_param ad3552r_init_params
Initial value:
= {
.chip_id = ACTIVE_DEVICE_ID,
.spi_param = {
.device_id = SPI_DEVICE_ID,
.max_speed_hz = MAX_SPI_SCLK,
.chip_select = SPI_CSB,
.mode = NO_OS_SPI_MODE_0,
.platform_ops = &spi_ops,
},
.reset_gpio_param_optional = &gpio_reset_init,
.ldac_gpio_param_optional = &gpio_ldac_init,
.use_external_vref = false,
.vref_out_enable = false,
.sdo_drive_strength = AD3552R_MEDIUM_LOW_SDIO_DRIVE_STRENGTH,
.channels = {
{ .en = true, .fast_en = true, .range = AD3552R_CH_OUTPUT_RANGE_0__2P5V},
{ .en = true, .fast_en = true, .range = AD3552R_CH_OUTPUT_RANGE_0__2P5V},
},
.crc_en = false,
.is_simultaneous =false
}
#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
#define ACTIVE_DEVICE_ID
Definition: app_config.h:82
#define SPI_DEVICE_ID
Definition: app_config_mbed.h:70
#define MAX_SPI_SCLK
Definition: app_config_mbed.h:72
struct no_os_gpio_init_param gpio_ldac_init
Definition: ad355xr_user_config.c:37
struct no_os_gpio_init_param gpio_reset_init
Definition: ad355xr_user_config.c:29

◆ gpio_ldac_init

struct no_os_gpio_init_param gpio_ldac_init
Initial value:
= {
.number = LDAC_PIN,
.port = LDAC_PORT,
.platform_ops = &gpio_ops,
}
#define gpio_ops
Definition: app_config.h:85
#define LDAC_PIN
Definition: app_config_mbed.h:40
#define gpio_ldac_extra_init_params
Definition: app_config_mbed.h:58
#define LDAC_PORT
Definition: app_config_mbed.h:48

◆ gpio_reset_init

struct no_os_gpio_init_param gpio_reset_init
Initial value:
= {
.number = RESET_PIN,
.port = RESET_PORT,
.platform_ops = &gpio_ops,
}
#define RESET_PIN
Definition: app_config_mbed.h:41
#define RESET_PORT
Definition: app_config_mbed.h:49
#define gpio_reset_extra_init_params
Definition: app_config_mbed.h:59

◆ spi_init_params_without_sw_csb

struct no_os_spi_init_param spi_init_params_without_sw_csb
Initial value:
= {
.device_id = SPI_DEVICE_ID,
.max_speed_hz = MAX_SPI_SCLK,
.chip_select = SPI_CSB,
.mode = NO_OS_SPI_MODE_0,
.platform_ops = &spi_ops,
}
#define spi_extra_init_params_without_sw_csb
Definition: app_config_mbed.h:55