precision-converters-firmware
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Functions | Variables
app_config.h File Reference

Configuration file for AD7134 device application. More...

#include <stdint.h>
#include "ad713x.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 MBED_PLATFORM   1
 
#define STM32_PLATFORM   2
 
#define CONTINUOUS_DATA_CAPTURE   0
 
#define BURST_DATA_CAPTURE   1
 
#define CONTROLLER_MODE   0
 
#define TARGET_MODE   1
 
#define TDM_MODE   0
 
#define BIT_BANGING_MODE   1
 
#define DATA_CAPTURE_MODE   CONTINUOUS_DATA_CAPTURE
 
#define ACTIVE_PLATFORM   MBED_PLATFORM
 
#define XSTR(s)   #s
 
#define STR(s)   XSTR(s)
 
#define DEV_AD4134
 
#define ACTIVE_DEVICE_NAME   "ad4134"
 
#define HW_MEZZANINE_NAME   "EVAL-CN0561-ARDZ"
 
#define ACTIVE_DEVICE_ID   ID_AD4134
 
#define USE_VIRTUAL_COM_PORT
 
#define INTERFACE_MODE   TDM_MODE
 
#define BYTES_PER_SAMPLE   sizeof(uint16_t)
 
#define HW_CARRIER_NAME   NUCLEO_H563ZI
 
#define uart_extra_init_params   stm32_uart_extra_init_params
 
#define spi_extra_init_params   stm32_spi_extra_init_params
 
#define tdm_extra_init_params   stm32_tdm_extra_init_params
 
#define ext_int_extra_init_params   stm32_trigger_gpio_irq_init_params
 
#define gpio_pdn_extra_init_params   stm32_pdn_extra_init_params
 
#define i2c_extra_init_params   stm32_i2c_extra_init_params
 
#define tdm_platform_ops   stm32_tdm_platform_ops
 
#define spi_ops   stm32_spi_ops
 
#define uart_ops   stm32_uart_ops
 
#define gpio_ops   stm32_gpio_ops
 
#define trigger_gpio_irq_ops   stm32_gpio_irq_ops
 
#define i2c_ops   stm32_i2c_ops
 
#define ADC_RESOLUTION   16
 
#define ADC_MAX_COUNT_UNIPOLAR   (uint32_t)((1 << ADC_RESOLUTION) - 1)
 
#define ADC_MAX_COUNT_BIPOLAR   (uint32_t)(1 << (ADC_RESOLUTION-1))
 
#define AD7134_NUM_CHANNELS   4
 
#define DEVICE_NAME   "DEV_AD7134"
 
#define FIRMWARE_NAME   "ad7134_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 IIO_UART_BAUD_RATE   (230400)
 
#define AD7134_ASRC_MODE   CONTROLLER_MODE
 
#define CONSOLE_STDIO_PORT_AVAILABLE
 

Functions

int32_t init_system (void)
 Initialize the system peripherals.
 
int32_t init_pwm (void)
 Initialize the PWM interface.
 

Variables

struct no_os_uart_desc * uart_iio_com_desc
 
struct no_os_uart_desc * uart_console_stdio_desc
 
struct no_os_irq_ctrl_desc * external_int_desc
 
struct no_os_tdm_desc * ad7134_tdm_desc
 
struct no_os_eeprom_desc * eeprom_desc
 
struct no_os_gpio_init_param pdn_init_param
 

Detailed Description

Configuration file for AD7134 device application.

Copyright (c) 2020-21, 2023-24 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_AD4134

◆ ACTIVE_DEVICE_NAME

#define ACTIVE_DEVICE_NAME   "ad4134"

◆ ACTIVE_PLATFORM

#define ACTIVE_PLATFORM   MBED_PLATFORM

◆ AD7134_ASRC_MODE

#define AD7134_ASRC_MODE   CONTROLLER_MODE

◆ AD7134_NUM_CHANNELS

#define AD7134_NUM_CHANNELS   4

◆ 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   16

◆ BIT_BANGING_MODE

#define BIT_BANGING_MODE   1

◆ BURST_DATA_CAPTURE

#define BURST_DATA_CAPTURE   1

◆ BYTES_PER_SAMPLE

#define BYTES_PER_SAMPLE   sizeof(uint16_t)

◆ CONSOLE_STDIO_PORT_AVAILABLE

#define CONSOLE_STDIO_PORT_AVAILABLE

◆ CONTINUOUS_DATA_CAPTURE

#define CONTINUOUS_DATA_CAPTURE   0

◆ CONTROLLER_MODE

#define CONTROLLER_MODE   0

◆ DATA_CAPTURE_MODE

#define DATA_CAPTURE_MODE   CONTINUOUS_DATA_CAPTURE

◆ DEV_AD4134

#define DEV_AD4134

◆ DEVICE_NAME

#define DEVICE_NAME   "DEV_AD7134"

◆ ext_int_extra_init_params

#define ext_int_extra_init_params   stm32_trigger_gpio_irq_init_params

◆ FIRMWARE_NAME

#define FIRMWARE_NAME   "ad7134_iio"

◆ gpio_ops

#define gpio_ops   stm32_gpio_ops

◆ gpio_pdn_extra_init_params

#define gpio_pdn_extra_init_params   stm32_pdn_extra_init_params

◆ HW_CARRIER_NAME

#define HW_CARRIER_NAME   NUCLEO_H563ZI

◆ HW_MEZZANINE_NAME

#define HW_MEZZANINE_NAME   "EVAL-CN0561-ARDZ"

◆ 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   TDM_MODE

◆ MBED_PLATFORM

#define MBED_PLATFORM   1

◆ spi_extra_init_params

#define spi_extra_init_params   stm32_spi_extra_init_params

◆ spi_ops

#define spi_ops   stm32_spi_ops

◆ STM32_PLATFORM

#define STM32_PLATFORM   2

◆ STR

#define STR (   s)    XSTR(s)

◆ TARGET_MODE

#define TARGET_MODE   1

◆ tdm_extra_init_params

#define tdm_extra_init_params   stm32_tdm_extra_init_params

◆ TDM_MODE

#define TDM_MODE   0

◆ tdm_platform_ops

#define tdm_platform_ops   stm32_tdm_platform_ops

◆ trigger_gpio_irq_ops

#define trigger_gpio_irq_ops   stm32_gpio_irq_ops

◆ 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

◆ 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_pwm()

int32_t init_pwm ( void  )

Initialize the PWM interface.

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

Initialize the PWM interface.

Returns
0 in case of success, negative error code otherwise
Here is the caller graph for this function:

◆ 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

◆ ad7134_tdm_desc

struct no_os_tdm_desc* ad7134_tdm_desc
extern

◆ eeprom_desc

struct no_os_eeprom_desc* eeprom_desc
extern

◆ external_int_desc

struct no_os_irq_ctrl_desc* external_int_desc
extern

◆ pdn_init_param

struct no_os_gpio_init_param pdn_init_param
extern

◆ uart_console_stdio_desc

struct no_os_uart_desc* uart_console_stdio_desc
extern

◆ uart_iio_com_desc

struct no_os_uart_desc* uart_iio_com_desc
extern