|
precision-converters-firmware
|
Configuration file for AD4692 device applications. More...


Go to the source code of this file.
Macros | |
| #define | XSTR(s) #s |
| #define | STR(s) XSTR(s) |
| #define | USE_VIRTUAL_COM_PORT |
| #define | ACTIVE_PLATFORM STM32_PLATFORM |
| #define | DEV_AD4692 |
| #define | ACTIVE_DEVICE_NAME "ad4692" |
| #define | NO_OF_CHANNELS 16 |
| #define | HW_MEZZANINE_NAME "EVAL-AD4692-ARDZ" |
| #define | AD4692_AS_SLOT_REG(n) (0x100 + (n)) |
| #define | ADC_RESOLUTION 16 |
| #define | FIRMWARE_NAME "ad4692_iio" |
| #define | IIO_UART_BAUD_RATE (230400) |
| #define | CONSOLE_STDIO_PORT_AVAILABLE |
| #define | USE_SDRAM |
| #define | BYTES_PER_SAMPLE sizeof(uint16_t) |
| #define | CHN_STORAGE_BITS (BYTES_PER_SAMPLE * 8) |
| #define | CONV_TRIGGER_PERIOD_NSEC(x) (((float)(1.0 / x) * 1000000) * 1000) |
| #define | CONV_TRIGGER_DUTY_CYCLE_NSEC(x) (CONV_TRIGGER_PERIOD_NSEC(x) / 10) |
| #define | AD4692_VREF 4096000 |
| #define | AD4692_SHIFT_N 3 |
| #define | CNV_ON_TIME 50 |
| #define | N_CYCLE_OFFSET 2 |
| #define | NUM_OF_IIO_DEVICES 2 |
Functions | |
| int32_t | init_system (void) |
| Initialize the system peripherals. | |
| int | init_gpio (void) |
| Initialize the GPIO peripheral. | |
| int | init_pwm (void) |
| Initialize the PWM interface. | |
| void | ad4692_data_capture_callback (void *ctx) |
| Interrupt Service Routine to monitor end of conversion event. | |
| int32_t | init_interrupt (void) |
| Initialize the IRQ contoller. | |
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 * | trigger_irq_desc |
| struct no_os_gpio_desc * | cnv_gpio_desc |
| struct no_os_eeprom_desc * | eeprom_desc |
| struct no_os_pwm_desc * | tx_trigger_desc |
| struct no_os_pwm_desc * | spi_burst_pwm_desc |
| struct no_os_pwm_init_param | pwm_spi_burst_init |
| struct no_os_irq_init_param | trigger_gpio_irq_params |
Configuration file for AD4692 device applications.
Copyright (c) 2024, 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.
| #define ACTIVE_DEVICE_NAME "ad4692" |
| #define ACTIVE_PLATFORM STM32_PLATFORM |
| #define AD4692_AS_SLOT_REG | ( | n | ) | (0x100 + (n)) |
| #define AD4692_SHIFT_N 3 |
| #define AD4692_VREF 4096000 |
| #define ADC_RESOLUTION 16 |
| #define BYTES_PER_SAMPLE sizeof(uint16_t) |
| #define CHN_STORAGE_BITS (BYTES_PER_SAMPLE * 8) |
| #define CNV_ON_TIME 50 |
| #define CONSOLE_STDIO_PORT_AVAILABLE |
| #define CONV_TRIGGER_DUTY_CYCLE_NSEC | ( | x | ) | (CONV_TRIGGER_PERIOD_NSEC(x) / 10) |
| #define CONV_TRIGGER_PERIOD_NSEC | ( | x | ) | (((float)(1.0 / x) * 1000000) * 1000) |
| #define DEV_AD4692 |
| #define FIRMWARE_NAME "ad4692_iio" |
| #define HW_MEZZANINE_NAME "EVAL-AD4692-ARDZ" |
| #define IIO_UART_BAUD_RATE (230400) |
| #define N_CYCLE_OFFSET 2 |
| #define NO_OF_CHANNELS 16 |
| #define NUM_OF_IIO_DEVICES 2 |
| #define STR | ( | s | ) | XSTR(s) |
| #define USE_SDRAM |
| #define USE_VIRTUAL_COM_PORT |
| #define XSTR | ( | s | ) | #s |
| void ad4692_data_capture_callback | ( | void * | ctx | ) |
Interrupt Service Routine to monitor end of conversion event.
| ctx[in] | - Callback context (unused) |
| int init_gpio | ( | void | ) |
Initialize the GPIO peripheral.

| int32_t init_interrupt | ( | void | ) |
Initialize the IRQ contoller.
Initialize the IRQ contoller.
This function initialize the interrupts for system peripherals.
This function initialize the interrupts for system peripherals

| int init_pwm | ( | void | ) |
Initialize the PWM interface.
Initialize the PWM interface.
Initialize the PWM interface.
| int32_t init_system | ( | void | ) |
Initialize the system peripherals.
Initialize the system peripherals.
This function initializes system peripherals for the application
Initialize the system peripherals.
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |