|
precision-converters-firmware
|
Configuration file for LTC2672 device application. More...
#include <stdint.h>#include "ltc2672.h"#include "no_os_pwm.h"#include "version.h"#include "common_macros.h"#include "app_config_stm32.h"

Go to the source code of this file.
Macros | |
| #define | XSTR(s) #s |
| #define | STR(s) XSTR(s) |
| #define | GET_FIRMWARE_VERSION (FIRMWARE_VERSION) |
| #define | ACTIVE_PLATFORM STM32_PLATFORM |
| #define | USE_VIRTUAL_COM_PORT |
| #define | DAC_RESOLUTION 16 |
| #define | DAC_MAX_COUNT LTC2672_16BIT_RESO |
| #define | DEVICE_LTC2662_16 "ltc2662-16" |
| #define | DEVICE_LTC2672_16 "ltc2672-16" |
| #define | DAC_VREF 1.25 |
| #define | DAC_FSADJ_RESISTOR 20 |
| #define | CONSOLE_STDIO_PORT_AVAILABLE |
| #define | HW_CARRIER_NAME TARGET_NAME |
| #define | HW_MEZZANINE_NAME "DC2903A-A" |
| #define | IIO_UART_BAUD_RATE (230400) |
| #define | FIRMWARE_NAME "ltc2672_iio" |
| #define | PLATFORM_NAME HW_CARRIER_NAME |
| #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 | CONSOLE_STDIO_PORT_AVAILABLE |
| #define | CONV_TRIGGER_PERIOD_NSEC (((float)(1.0 / SAMPLING_RATE) * 1000000) * 1000) |
| #define | CONV_TRIGGER_DUTY_CYCLE_NSEC (CONV_TRIGGER_PERIOD_NSEC / 2) |
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_eeprom_desc * | eeprom_desc |
| struct no_os_gpio_desc * | gpio_ldac_desc |
| struct no_os_gpio_desc * | gpio_clear_desc |
| struct no_os_gpio_desc * | gpio_toggle_desc |
| struct no_os_pwm_desc * | toggle_pwm_desc |
| struct no_os_pwm_desc * | ldac_pwm_desc |
| struct no_os_irq_ctrl_desc * | trigger_irq_desc |
| struct no_os_gpio_init_param | toggle_pwm_gpio_params |
Configuration file for LTC2672 device application.
Copyright (c) 2023-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 ACTIVE_PLATFORM STM32_PLATFORM |
| #define CONSOLE_STDIO_PORT_AVAILABLE |
| #define CONSOLE_STDIO_PORT_AVAILABLE |
| #define CONV_TRIGGER_DUTY_CYCLE_NSEC (CONV_TRIGGER_PERIOD_NSEC / 2) |
| #define CONV_TRIGGER_PERIOD_NSEC (((float)(1.0 / SAMPLING_RATE) * 1000000) * 1000) |
| #define DAC_FSADJ_RESISTOR 20 |
| #define DAC_MAX_COUNT LTC2672_16BIT_RESO |
| #define DAC_RESOLUTION 16 |
| #define DAC_VREF 1.25 |
| #define DEVICE_LTC2662_16 "ltc2662-16" |
| #define DEVICE_LTC2672_16 "ltc2672-16" |
| #define FIRMWARE_NAME "ltc2672_iio" |
| #define GET_FIRMWARE_VERSION (FIRMWARE_VERSION) |
| #define HW_CARRIER_NAME TARGET_NAME |
| #define HW_MEZZANINE_NAME "DC2903A-A" |
| #define IIO_UART_BAUD_RATE (230400) |
| #define PLATFORM_NAME HW_CARRIER_NAME |
| #define STR | ( | s | ) | XSTR(s) |
| #define USE_VIRTUAL_COM_PORT |
| #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_pwm | ( | void | ) |
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 |
|
extern |