precision-converters-firmware
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Variables
ad3530r_user_config.c File Reference

User configuration file for AD3530R. More...

#include <stdint.h>
#include "ad3530r_user_config.h"
#include "app_config.h"
#include "no_os_spi.h"
#include "no_os_gpio.h"
Include dependency graph for ad3530r_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
 
struct ad3530r_init_param ad3530r_init_params
 

Detailed Description

User configuration file for AD3530R.

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

◆ ad3530r_init_params

struct ad3530r_init_param ad3530r_init_params
Initial value:
= {
.chip_id = AD3530R_ID,
.spi_param = &spi_init_params,
.spi_cfg = {
.stream_mode_length = 0,
.addr_asc = 0,
.single_instr = 1,
.short_instr = 0,
.stream_length_keep_value = 0
},
.reset_gpio_param_optional = &gpio_reset_init,
.ldac_gpio_param_optional = &gpio_ldac_init,
.vref_enable = AD3530R_EXTERNAL_VREF_PIN_INPUT,
.chn_op_mode = {
AD3530R_CH_OPERATING_MODE_3, AD3530R_CH_OPERATING_MODE_3,
AD3530R_CH_OPERATING_MODE_3, AD3530R_CH_OPERATING_MODE_3,
AD3530R_CH_OPERATING_MODE_3, AD3530R_CH_OPERATING_MODE_3,
AD3530R_CH_OPERATING_MODE_3, AD3530R_CH_OPERATING_MODE_3
},
.range = AD3530R_CH_OUTPUT_RANGE_0_VREF,
.hw_ldac_mask = 0xff,
.sw_ldac_mask = 0xff,
.crc_en = false
}
struct no_os_gpio_init_param gpio_ldac_init
Definition ad3530r_user_config.c:40
struct no_os_spi_init_param spi_init_params
Definition ad3530r_user_config.c:48
struct no_os_gpio_init_param gpio_reset_init
Definition ad3530r_user_config.c:32

◆ 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_stm32.h:49
#define gpio_ldac_extra_init_params
Definition app_config_stm32.h:95
#define LDAC_PORT
Definition app_config_stm32.h:50

◆ 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_stm32.h:47
#define RESET_PORT
Definition app_config_stm32.h:48
#define gpio_reset_extra_init_params
Definition app_config_stm32.h:96

◆ spi_init_params

struct no_os_spi_init_param spi_init_params
Initial value:
= {
.device_id = SPI_DEVICE_ID,
.max_speed_hz = MAX_SPI_SCLK,
.chip_select = SPI_CSB,
.mode = NO_OS_SPI_MODE_3,
.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
#define SPI_DEVICE_ID
Definition app_config_stm32.h:54
#define MAX_SPI_SCLK
Definition app_config_stm32.h:114