precision-converters-firmware
Loading...
Searching...
No Matches
Macros | Functions | Variables
app_config.h File Reference

Configuration file for AD552XR IIO firmware application. More...

#include <stdint.h>
#include "common_macros.h"
#include "no_os_pwm.h"
#include "app_config_stm32.h"
Include dependency graph for app_config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SPI_INTERRUPT   1
 
#define SPI_DMA   2
 
#define XSTR(s)   #s
 
#define STR(s)   XSTR(s)
 
#define AD552XR_DAC_RESOLUTION   16
 
#define USE_VIRTUAL_COM_PORT
 
#define ACTIVE_PLATFORM   STM32_PLATFORM
 
#define INTERFACE_MODE   SPI_DMA
 
#define AD552XR_MAX_SAMPLE_RATE   (1E6)
 
#define AD552XR_IIO_SAMPLE_RATE   (50E3)
 
#define spi_extra_init_params   stm32_spi_extra_init_params
 
#define spi_ops   stm32_spi_ops
 
#define i2c_extra_init_params   stm32_i2c_extra_init_params
 
#define i2c_ops   stm32_i2c_ops
 
#define vcom_ops   stm32_usb_uart_ops
 
#define vcom_extra_init_params   stm32_vcom_extra_init_params
 
#define uart_extra_init_params   stm32_uart_extra_init_params
 
#define uart_ops   stm32_uart_ops
 
#define gpio_output_extra_init_params   stm32_gpio_output_extra_init_params
 
#define gpio_input_extra_init_params   stm32_gpio_input_extra_init_params
 
#define gpio_ldac_tgp_pwm_extra_init_params   stm32_gpio_ldac_tgp_pwm_extra_init_params
 
#define gpio_cs_pwm_extra_init_params   stm32_gpio_cs_pwm_extra_init_params
 
#define gpio_ops   stm32_gpio_ops
 
#define pwm_ops   stm32_pwm_ops
 
#define irq_ops   stm32_irq_ops
 
#define dma_ops   stm32_dma_ops
 
#define pwm_tgp_extra_init_params   stm32_pwm_tgp_extra_init_params
 
#define pwm_tgp_trigger_mode_extra_init_params   stm32_pwm_tgp_trigger_mode_extra_init_params
 
#define pwm_dac_update_extra_init_params   stm32_pwm_dac_update_extra_init_params
 
#define pwm_dma_trigger_extra_init_params   stm32_pwm_dma_trigger_extra_init_params
 
#define CONSOLE_STDIO_PORT_AVAILABLE
 
#define IIO_UART_BAUD_RATE   (230400)
 
#define AD552XR_IIO_NUM_DEVICES   4
 
#define HZ_NS_CONVERT(x)   (uint32_t)((1.0 / x) * 1E9)
 
#define LDAC_DUTY_CYCLE_NSEC(x)   (x * 0.5)
 

Functions

int32_t set_timer_prescaler (struct no_os_pwm_desc *desc, uint32_t prescaler)
 Set prescaler for timer.
 

Variables

struct no_os_spi_init_param spi_init_params
 
struct no_os_i2c_init_param i2c_init_params
 
struct no_os_gpio_init_param gpio_clear_n_init_params
 
struct no_os_gpio_init_param gpio_reset_n_init_params
 
struct no_os_gpio_init_param gpio_alarm_n_init_params
 
struct no_os_gpio_init_param gpio_md_addr0_init_params
 
struct no_os_gpio_init_param gpio_md_addr1_init_params
 
struct no_os_gpio_init_param gpio_ldac_tgpx_init_params [NUM_TGPx]
 
struct no_os_uart_init_param uart_iio_comm_init_params
 
struct no_os_uart_init_param uart_console_stdio_init_params
 
struct no_os_uart_desc * uart_iio_comm_desc
 
struct no_os_uart_desc * uart_console_stdio_desc
 
struct no_os_eeprom_desc * eeprom_desc
 
struct no_os_irq_init_param irq_iio_trigger_init_params
 

Detailed Description

Configuration file for AD552XR IIO firmware application.

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

Macro Definition Documentation

◆ ACTIVE_PLATFORM

#define ACTIVE_PLATFORM   STM32_PLATFORM

◆ AD552XR_DAC_RESOLUTION

#define AD552XR_DAC_RESOLUTION   16

◆ AD552XR_IIO_NUM_DEVICES

#define AD552XR_IIO_NUM_DEVICES   4

◆ AD552XR_IIO_SAMPLE_RATE

#define AD552XR_IIO_SAMPLE_RATE   (50E3)

◆ AD552XR_MAX_SAMPLE_RATE

#define AD552XR_MAX_SAMPLE_RATE   (1E6)

◆ CONSOLE_STDIO_PORT_AVAILABLE

#define CONSOLE_STDIO_PORT_AVAILABLE

◆ dma_ops

#define dma_ops   stm32_dma_ops

◆ gpio_cs_pwm_extra_init_params

#define gpio_cs_pwm_extra_init_params   stm32_gpio_cs_pwm_extra_init_params

◆ gpio_input_extra_init_params

#define gpio_input_extra_init_params   stm32_gpio_input_extra_init_params

◆ gpio_ldac_tgp_pwm_extra_init_params

#define gpio_ldac_tgp_pwm_extra_init_params   stm32_gpio_ldac_tgp_pwm_extra_init_params

◆ gpio_ops

#define gpio_ops   stm32_gpio_ops

◆ gpio_output_extra_init_params

#define gpio_output_extra_init_params   stm32_gpio_output_extra_init_params

◆ HZ_NS_CONVERT

#define HZ_NS_CONVERT (   x)    (uint32_t)((1.0 / x) * 1E9)

◆ i2c_extra_init_params

#define i2c_extra_init_params   stm32_i2c_extra_init_params

◆ i2c_ops

#define i2c_ops   stm32_i2c_ops

◆ IIO_UART_BAUD_RATE

#define IIO_UART_BAUD_RATE   (230400)

◆ INTERFACE_MODE

#define INTERFACE_MODE   SPI_DMA

◆ irq_ops

#define irq_ops   stm32_irq_ops

◆ LDAC_DUTY_CYCLE_NSEC

#define LDAC_DUTY_CYCLE_NSEC (   x)    (x * 0.5)

◆ pwm_dac_update_extra_init_params

#define pwm_dac_update_extra_init_params   stm32_pwm_dac_update_extra_init_params

◆ pwm_dma_trigger_extra_init_params

#define pwm_dma_trigger_extra_init_params   stm32_pwm_dma_trigger_extra_init_params

◆ pwm_ops

#define pwm_ops   stm32_pwm_ops

◆ pwm_tgp_extra_init_params

#define pwm_tgp_extra_init_params   stm32_pwm_tgp_extra_init_params

◆ pwm_tgp_trigger_mode_extra_init_params

#define pwm_tgp_trigger_mode_extra_init_params   stm32_pwm_tgp_trigger_mode_extra_init_params

◆ SPI_DMA

#define SPI_DMA   2

◆ spi_extra_init_params

#define spi_extra_init_params   stm32_spi_extra_init_params

◆ SPI_INTERRUPT

#define SPI_INTERRUPT   1

◆ spi_ops

#define spi_ops   stm32_spi_ops

◆ STR

#define STR (   s)    XSTR(s)

◆ uart_extra_init_params

#define uart_extra_init_params   stm32_uart_extra_init_params

◆ uart_ops

#define uart_ops   stm32_uart_ops

◆ USE_VIRTUAL_COM_PORT

#define USE_VIRTUAL_COM_PORT

◆ vcom_extra_init_params

#define vcom_extra_init_params   stm32_vcom_extra_init_params

◆ vcom_ops

#define vcom_ops   stm32_usb_uart_ops

◆ XSTR

#define XSTR (   s)    #s

Function Documentation

◆ set_timer_prescaler()

int32_t set_timer_prescaler ( struct no_os_pwm_desc *  desc,
uint32_t  prescaler 
)

Set prescaler for timer.

Parameters
desc[in]- The PWM descriptor.
prescaler[in]- Prescaler to be set.
Returns
0 in case of success else negative error code.
Here is the caller graph for this function:

Variable Documentation

◆ eeprom_desc

struct no_os_eeprom_desc* eeprom_desc
extern

◆ gpio_alarm_n_init_params

struct no_os_gpio_init_param gpio_alarm_n_init_params
extern

◆ gpio_clear_n_init_params

struct no_os_gpio_init_param gpio_clear_n_init_params
extern

◆ gpio_ldac_tgpx_init_params

struct no_os_gpio_init_param gpio_ldac_tgpx_init_params[NUM_TGPx]
extern

◆ gpio_md_addr0_init_params

struct no_os_gpio_init_param gpio_md_addr0_init_params
extern

◆ gpio_md_addr1_init_params

struct no_os_gpio_init_param gpio_md_addr1_init_params
extern

◆ gpio_reset_n_init_params

struct no_os_gpio_init_param gpio_reset_n_init_params
extern

◆ i2c_init_params

struct no_os_i2c_init_param i2c_init_params
extern

◆ irq_iio_trigger_init_params

struct no_os_irq_init_param irq_iio_trigger_init_params
extern

◆ spi_init_params

struct no_os_spi_init_param spi_init_params
extern

◆ uart_console_stdio_desc

struct no_os_uart_desc* uart_console_stdio_desc
extern

◆ uart_console_stdio_init_params

struct no_os_uart_init_param uart_console_stdio_init_params
extern

◆ uart_iio_comm_desc

struct no_os_uart_desc* uart_iio_comm_desc
extern

◆ uart_iio_comm_init_params

struct no_os_uart_init_param uart_iio_comm_init_params
extern