|
precision-converters-firmware
|
Configuration file for AD4170 device application. More...
#include <stdint.h>#include "ad4170.h"#include "common_macros.h"#include "app_config_stm32.h"#include "ad4170_user_config.h"

Go to the source code of this file.
Functions | |
| int32_t | init_system (void) |
| Initialize the system peripherals. | |
| void | ticker_callback (void *ctx) |
| This is an ISR (Interrupt Service Routine) for Ticker object. | |
Variables | |
| struct no_os_gpio_init_param | gpio_init_ldac_n |
| struct no_os_gpio_init_param | gpio_init_rdy |
| struct no_os_gpio_init_param | gpio_init_sync_inb |
| struct no_os_gpio_desc * | led_gpio_desc |
| struct no_os_uart_desc * | uart_desc |
| struct no_os_gpio_desc * | trigger_gpio_desc |
| struct no_os_gpio_desc * | csb_gpio_desc |
| struct no_os_spi_init_param | spi_init_params |
| struct no_os_irq_ctrl_desc * | trigger_irq_desc |
| struct no_os_tdm_desc * | ad4170_tdm_desc |
| struct no_os_eeprom_desc * | eeprom_desc |
| struct no_os_pwm_desc * | tx_trigger_desc |
Configuration file for AD4170 device application.
Copyright (c) 2021-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.
| #define ACCELEROMETER_CONFIG 6 |
| #define ACTIVE_DEMO_MODE_CONFIG USER_DEFAULT_CONFIG |
| #define ACTIVE_DEVICE_ID ID_AD4170 |
| #define ACTIVE_DEVICE_NAME "ad4170" |
| #define ACTIVE_IIO_CLIENT IIO_CLIENT_REMOTE |
| #define ACTIVE_PLATFORM STM32_PLATFORM |
| #define AD4170_DEFLT_SAMPLING_FREQUENCY (AD4170_INTERNAL_CLOCK / FS_TO_ODR_CONV_SCALER) |
| #define ad4170_init_params ad4170_user_config_params |
| #define AD4170_INTERNAL_CLOCK (16000000U) |
| #define AD4170_REFIN_AVDD_VOLTAGE 5.0 |
| #define AD4170_REFIN_REFIN1_VOLTAGE 2.5 |
| #define AD4170_REFIN_REFIN2_VOLTAGE 2.5 |
| #define AD4170_REFIN_REFOUT_VOLTAGE 2.5 |
| #define ADC_MAX_COUNT_BIPOLAR (uint32_t)(1 << (ADC_RESOLUTION-1)) |
| #define ADC_MAX_COUNT_UNIPOLAR (uint32_t)((1 << ADC_RESOLUTION) - 1) |
| #define ADC_RESOLUTION 24 |
| #define BURST_DATA_CAPTURE 1 |
| #define BYTES_PER_SAMPLE sizeof(uint32_t) |
| #define CONTINUOUS_DATA_CAPTURE 0 |
| #define csb_gpio_extra_init_params stm32_csb_gpio_extra_init_params |
| #define CSB_GPIO_PORT STM32_SPI_CS_PORT |
| #define DATA_CAPTURE_MODE BURST_DATA_CAPTURE |
| #define DEV_AD4170 |
| #define DEVICE_NAME "DEV_AD4170" |
| #define DIFFERENTIAL_CHNS 4 |
| #define DMA_IRQ_ID GPDMA1_Channel7_IRQn |
| #define dma_ops stm32_dma_ops |
| #define FIRMWARE_NAME "ad4170_iio" |
| #define FS_SINC3_62P5_KSPS 4 |
| #define FS_SINC5_512_KSPS 1 |
| #define FS_SINC5_AVG_24_KSPS 20 |
| #define gpio_dig_aux1_extra_init_params stm32_dig_aux1_gpio_extra_init_params |
| #define gpio_dig_aux2_extra_init_params stm32_dig_aux2_gpio_extra_init_params |
| #define gpio_ops stm32_gpio_ops |
| #define gpio_sync_inb_extra_init_params stm32_sync_inb_gpio_extra_init_params |
| #define HW_MEZZANINE_NAME "EVAL-AD4170-4ARDZ" |
| #define I2C_DEVICE_ID STM32_I2C_ID |
| #define i2c_extra_init_params stm32_i2c_extra_init_params |
| #define i2c_ops stm32_i2c_ops |
| #define IIO_CLIENT_LOCAL 2 |
| #define IIO_CLIENT_REMOTE 1 |
| #define IIO_UART_BAUD_RATE (230400) |
| #define INTERFACE_MODE SPI_INTERRUPT_MODE |
| #define irq_ops stm32_gpio_irq_ops |
| #define LOADCELL_CONFIG 7 |
| #define pwm_ops stm32_pwm_ops |
| #define RTD_2WIRE_CONFIG 1 |
| #define RTD_3WIRE_CONFIG 2 |
| #define RTD_4WIRE_CONFIG 3 |
| #define SINGLE_ENDED_CHNS 8 |
| #define SPI_DEVICE_ID STM32_SPI_ID |
| #define SPI_DMA_MODE 2 |
| #define spi_extra_init_params stm32_spi_extra_init_params |
| #define SPI_INTERRUPT_MODE 1 |
| #define spi_ops stm32_spi_ops |
| #define STR | ( | s | ) | XSTR(s) |
| #define tdm_extra_init_params stm32_tdm_extra_init_params |
| #define TDM_MODE 0 |
| #define tdm_ops stm32_tdm_platform_ops |
| #define THERMISTOR_CONFIG 4 |
| #define THERMOCOUPLE_CONFIG 5 |
| #define ticker_int_extra_init_params stm32_ticket_int_init_params |
| #define trigger_gpio_extra_init_params stm32_trigger_gpio_extra_init_params |
| #define trigger_gpio_handle 0 |
| #define TRIGGER_GPIO_IRQ_CTRL_ID TRIGGER_GPIO_PIN |
| #define trigger_gpio_irq_extra_params stm32_trigger_gpio_irq_init_params |
| #define trigger_gpio_irq_ops stm32_gpio_irq_ops |
| #define TRIGGER_GPIO_PIN DIG_AUX_1 |
| #define TRIGGER_GPIO_PORT DIG_AUX_1_PORT |
| #define TRIGGER_INT_ID 0 |
| #define tx_trigger_extra_init_params stm32_tx_trigger_extra_init_params |
| #define uart_extra_init_params stm32_uart_extra_init_params |
| #define uart_ops stm32_uart_ops |
| #define USE_VIRTUAL_COM_PORT |
| #define USER_DEFAULT_CONFIG 0 |
| #define vcom_extra_init_params stm32_vcom_extra_init_params |
| #define vcom_ops stm32_usb_uart_ops |
| #define VIRTUAL_COM_PORT_PID 0xb66c |
| #define VIRTUAL_COM_PORT_VID 0x0456 |
| #define VIRTUAL_COM_SERIAL_NUM (FIRMWARE_NAME "_" DEVICE_NAME "_" STR(PLATFORM_NAME)) |
| #define XSTR | ( | s | ) | #s |
| int32_t init_system | ( | void | ) |
Initialize the system peripherals.
Initialize the system peripherals.
This function initializes system peripherals for the application
| void ticker_callback | ( | void * | ctx | ) |
This is an ISR (Interrupt Service Routine) for Ticker object.
| ctx[in] | - Callback context (unused) |
This function is periodically called based on the time period configured during Ticker instance creation/initialization.
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |