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

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

#include <stdint.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 STM32_PLATFORM   1
 
#define CONTINUOUS_DATA_CAPTURE   0
 
#define BURST_DATA_CAPTURE   1
 
#define ACTIVE_PLATFORM   STM32_PLATFORM
 
#define DATA_CAPTURE_MODE   BURST_DATA_CAPTURE
 
#define XSTR(s)   #s
 
#define STR(s)   XSTR(s)
 
#define CONSOLE_STDIO_PORT_AVAILABLE
 
#define HW_MEZZANINE_NAME   "PMD-ARD-INT-LCZ"
 
#define ADC_RESOLUTION   12
 
#define ADC_MAX_COUNT_UNIPOLAR   (uint32_t)((1 << ADC_RESOLUTION) - 1)
 
#define ADC_MAX_COUNT_BIPOLAR   (uint32_t)(1 << (ADC_RESOLUTION-1))
 
#define DEFAULT_VREF   2.5
 
#define ADC_MAX_COUNT   (uint32_t)(1<<ADC_RESOLUTION)
 
#define BYTES_PER_SAMPLE   2
 
#define STORAGE_BITS   (BYTES_PER_SAMPLE) * 8
 
#define IIO_UART_BAUD_RATE   (230400)
 
#define FIRMWARE_NAME   "ad559xr_iio"
 
#define PLATFORM_NAME   HW_CARRIER_NAME
 
#define SYSTEM_CONFIG_ENABLED
 
#define USE_VIRTUAL_COM_PORT
 
#define AD5593R_A0_STATE   0
 
#define AD5593R_I2C(x)   (0x10 | (x & 0x01))
 

Functions

int32_t init_system (void)
 Initialize the system peripherals.
 
int32_t ad559xr_trigger_handler (struct iio_device_data *iio_dev_data)
 Push data into IIO buffer when trigger handler IRQ is invoked.
 

Variables

struct no_os_uart_desc * uart_desc
 
struct no_os_eeprom_desc * eeprom_desc
 
struct no_os_pwm_desc * pwm_desc
 
struct no_os_uart_desc * uart_console_stdio_desc
 

Detailed Description

Configuration file for ad559xr IIO firmware application.

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

#define ACTIVE_PLATFORM   STM32_PLATFORM

◆ AD5593R_A0_STATE

#define AD5593R_A0_STATE   0

◆ AD5593R_I2C

#define AD5593R_I2C (   x)    (0x10 | (x & 0x01))

◆ ADC_MAX_COUNT

#define ADC_MAX_COUNT   (uint32_t)(1<<ADC_RESOLUTION)

◆ ADC_MAX_COUNT_BIPOLAR

#define ADC_MAX_COUNT_BIPOLAR   (uint32_t)(1 << (ADC_RESOLUTION-1))

◆ ADC_MAX_COUNT_UNIPOLAR

#define ADC_MAX_COUNT_UNIPOLAR   (uint32_t)((1 << ADC_RESOLUTION) - 1)

◆ ADC_RESOLUTION

#define ADC_RESOLUTION   12

◆ BURST_DATA_CAPTURE

#define BURST_DATA_CAPTURE   1

◆ BYTES_PER_SAMPLE

#define BYTES_PER_SAMPLE   2

◆ CONSOLE_STDIO_PORT_AVAILABLE

#define CONSOLE_STDIO_PORT_AVAILABLE

◆ CONTINUOUS_DATA_CAPTURE

#define CONTINUOUS_DATA_CAPTURE   0

◆ DATA_CAPTURE_MODE

#define DATA_CAPTURE_MODE   BURST_DATA_CAPTURE

◆ DEFAULT_VREF

#define DEFAULT_VREF   2.5

◆ FIRMWARE_NAME

#define FIRMWARE_NAME   "ad559xr_iio"

◆ HW_MEZZANINE_NAME

#define HW_MEZZANINE_NAME   "PMD-ARD-INT-LCZ"

◆ IIO_UART_BAUD_RATE

#define IIO_UART_BAUD_RATE   (230400)

◆ PLATFORM_NAME

#define PLATFORM_NAME   HW_CARRIER_NAME

◆ STM32_PLATFORM

#define STM32_PLATFORM   1

◆ STORAGE_BITS

#define STORAGE_BITS   (BYTES_PER_SAMPLE) * 8

◆ STR

#define STR (   s)    XSTR(s)

◆ SYSTEM_CONFIG_ENABLED

#define SYSTEM_CONFIG_ENABLED

◆ USE_VIRTUAL_COM_PORT

#define USE_VIRTUAL_COM_PORT

◆ XSTR

#define XSTR (   s)    #s

Function Documentation

◆ ad559xr_trigger_handler()

int32_t ad559xr_trigger_handler ( struct iio_device_data *  iio_dev_data)

Push data into IIO buffer when trigger handler IRQ is invoked.

Parameters
iio_dev_data[in]- IIO device data instance
Returns
0 in case of success or negative value otherwise

◆ 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

Initialize the system peripherals.

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

Variable Documentation

◆ eeprom_desc

struct no_os_eeprom_desc* eeprom_desc
extern

◆ pwm_desc

struct no_os_pwm_desc* pwm_desc
extern

◆ uart_console_stdio_desc

struct no_os_uart_desc* uart_console_stdio_desc
extern

◆ uart_desc

struct no_os_uart_desc* uart_desc
extern