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

Configuration file for AD717x and AD411x IIO firmware application. More...

#include <stdint.h>
#include <common_macros.h>
#include "no_os_gpio.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 CONTINUOUS_DATA_CAPTURE   0
 
#define BURST_DATA_CAPTURE   1
 
#define XSTR(s)   #s
 
#define STR(s)   XSTR(s)
 
#define ACTIVE_PLATFORM   STM32_PLATFORM
 
#define USE_VIRTUAL_COM_PORT
 
#define DEV_AD4111
 
#define ACTIVE_DEVICE_NAME   "ad4111"
 
#define DEVICE_NAME   "DEV_AD4111"
 
#define ACTIVE_DEVICE_ID   ID_AD4111
 
#define HW_MEZZANINE_NAME   "Eval-AD4111SDZ"
 
#define HW_CARRIER_NAME   TARGET_NAME
 
#define uart_extra_init_params   stm32_uart_extra_init_params
 
#define spi_extra_init_params   stm32_spi_extra_init_params
 
#define vcom_extra_init_params   stm32_vcom_extra_init_params
 
#define uart_extra_init_params   stm32_uart_extra_init_params
 
#define ext_int_extra_init_params   stm32_trigger_gpio_irq_init_params
 
#define uart_ops   stm32_uart_ops
 
#define vcom_ops   stm32_usb_uart_ops
 
#define irq_platform_ops   stm32_gpio_irq_ops
 
#define csb_platform_ops   stm32_gpio_ops
 
#define rdy_platform_ops   stm32_gpio_ops
 
#define spi_platform_ops   stm32_spi_ops
 
#define irq_ops   stm32_irq_ops
 
#define i2c_ops   stm32_i2c_ops
 
#define trigger_gpio_irq_ops   stm32_gpio_irq_ops
 
#define trigger_gpio_handle   0
 
#define IRQ_INT_ID   RDY_PIN
 
#define FIRMWARE_NAME   "ad717x_iio"
 
#define VIRTUAL_COM_PORT_VID   0x0456
 
#define VIRTUAL_COM_PORT_PID   0xb66c
 
#define VIRTUAL_COM_SERIAL_NUM   (FIRMWARE_NAME "_" DEVICE_NAME "_" STR(PLATFORM_NAME))
 
#define NUMBER_OF_CHANNELS   16U
 
#define NUMBER_OF_SETUPS   8U
 
#define AD717X_INTERNAL_REFERENCE   2.5
 
#define AD717x_EXTERNAL_REFERENCE   2.5
 
#define AD717X_AVDD_AVSS_REFERENCE   2.5
 
#define IIO_UART_BAUD_RATE   (230400)
 
#define AD717x_SAMPLING_RATE   (31250)
 
#define AD717x_SAMPLING_RATE   31250
 
#define AD717x_ODR_SEL   0
 
#define CONSOLE_STDIO_PORT_AVAILABLE
 
#define SCALE_FACTOR_DR   0.1
 

Functions

int32_t init_system (void)
 Initialize the system peripherals.
 

Variables

struct no_os_uart_desc * uart_desc
 
struct no_os_gpio_desc * csb_gpio
 
struct no_os_gpio_desc * rdy_gpio
 
struct no_os_irq_ctrl_desc * trigger_irq_desc
 
struct no_os_eeprom_desc * eeprom_desc
 

Detailed Description

Configuration file for AD717x and AD411x IIO firmware application.

Copyright (c) 2021-23,2025 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.

Macro Definition Documentation

◆ ACTIVE_DEVICE_ID

#define ACTIVE_DEVICE_ID   ID_AD4111

◆ ACTIVE_DEVICE_NAME

#define ACTIVE_DEVICE_NAME   "ad4111"

◆ ACTIVE_PLATFORM

#define ACTIVE_PLATFORM   STM32_PLATFORM

◆ AD717X_AVDD_AVSS_REFERENCE

#define AD717X_AVDD_AVSS_REFERENCE   2.5

◆ AD717x_EXTERNAL_REFERENCE

#define AD717x_EXTERNAL_REFERENCE   2.5

◆ AD717X_INTERNAL_REFERENCE

#define AD717X_INTERNAL_REFERENCE   2.5

◆ AD717x_ODR_SEL

#define AD717x_ODR_SEL   0

◆ AD717x_SAMPLING_RATE [1/2]

#define AD717x_SAMPLING_RATE   (31250)

◆ AD717x_SAMPLING_RATE [2/2]

#define AD717x_SAMPLING_RATE   31250

◆ BURST_DATA_CAPTURE

#define BURST_DATA_CAPTURE   1

◆ CONSOLE_STDIO_PORT_AVAILABLE

#define CONSOLE_STDIO_PORT_AVAILABLE

◆ CONTINUOUS_DATA_CAPTURE

#define CONTINUOUS_DATA_CAPTURE   0

◆ csb_platform_ops

#define csb_platform_ops   stm32_gpio_ops

◆ DEV_AD4111

#define DEV_AD4111

◆ DEVICE_NAME

#define DEVICE_NAME   "DEV_AD4111"

◆ ext_int_extra_init_params

#define ext_int_extra_init_params   stm32_trigger_gpio_irq_init_params

◆ FIRMWARE_NAME

#define FIRMWARE_NAME   "ad717x_iio"

◆ HW_CARRIER_NAME

#define HW_CARRIER_NAME   TARGET_NAME

◆ HW_MEZZANINE_NAME

#define HW_MEZZANINE_NAME   "Eval-AD4111SDZ"

◆ i2c_ops

#define i2c_ops   stm32_i2c_ops

◆ IIO_UART_BAUD_RATE

#define IIO_UART_BAUD_RATE   (230400)

◆ IRQ_INT_ID

#define IRQ_INT_ID   RDY_PIN

◆ irq_ops

#define irq_ops   stm32_irq_ops

◆ irq_platform_ops

#define irq_platform_ops   stm32_gpio_irq_ops

◆ NUMBER_OF_CHANNELS

#define NUMBER_OF_CHANNELS   16U

◆ NUMBER_OF_SETUPS

#define NUMBER_OF_SETUPS   8U

◆ rdy_platform_ops

#define rdy_platform_ops   stm32_gpio_ops

◆ SCALE_FACTOR_DR

#define SCALE_FACTOR_DR   0.1

◆ spi_extra_init_params

#define spi_extra_init_params   stm32_spi_extra_init_params

◆ spi_platform_ops

#define spi_platform_ops   stm32_spi_ops

◆ STR

#define STR (   s)    XSTR(s)

◆ trigger_gpio_handle

#define trigger_gpio_handle   0

◆ trigger_gpio_irq_ops

#define trigger_gpio_irq_ops   stm32_gpio_irq_ops

◆ uart_extra_init_params [1/2]

#define uart_extra_init_params   stm32_uart_extra_init_params

◆ uart_extra_init_params [2/2]

#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

◆ VIRTUAL_COM_PORT_PID

#define VIRTUAL_COM_PORT_PID   0xb66c

◆ VIRTUAL_COM_PORT_VID

#define VIRTUAL_COM_PORT_VID   0x0456

◆ VIRTUAL_COM_SERIAL_NUM

#define VIRTUAL_COM_SERIAL_NUM   (FIRMWARE_NAME "_" DEVICE_NAME "_" STR(PLATFORM_NAME))

◆ XSTR

#define XSTR (   s)    #s

Function Documentation

◆ init_system()

int32_t init_system ( void  )

Initialize the system peripherals.

Returns
0 in case of success, negative error code otherwise

Initialize the system peripherals.

Returns
0 in case of success, negative error code otherwise.

This function initializes system peripherals for the application

Returns
- 0 in case of success, negative error code otherwise

Variable Documentation

◆ csb_gpio

struct no_os_gpio_desc* csb_gpio
extern

◆ eeprom_desc

struct no_os_eeprom_desc* eeprom_desc
extern

◆ rdy_gpio

struct no_os_gpio_desc* rdy_gpio
extern

◆ trigger_irq_desc

struct no_os_irq_ctrl_desc* trigger_irq_desc
extern

◆ uart_desc

struct no_os_uart_desc* uart_desc
extern