precision-converters-firmware
|
Application configurations module for AD405X. More...
#include <stdint.h>
#include "no_os_gpio.h"
#include "no_os_uart.h"
#include "no_os_irq.h"
#include "no_os_pwm.h"
#include "app_config_stm32.h"
Go to the source code of this file.
Functions | |
int32_t | init_pwm (void) |
Initialize the PWM interface. More... | |
int32_t | ad405x_gpio_reset (void) |
int32_t | init_system (void) |
Initialize the system peripherals. More... | |
Variables | |
struct no_os_pwm_desc * | pwm_desc |
struct no_os_uart_desc * | uart_iio_com_desc |
struct no_os_uart_desc * | uart_console_stdio_desc |
struct no_os_gpio_desc * | trigger_gpio_desc |
struct no_os_irq_ctrl_desc * | trigger_irq_desc |
struct no_os_eeprom_desc * | eeprom_desc |
struct no_os_gpio_init_param | cs_pwm_gpio_params |
struct no_os_gpio_init_param | pwm_gpio_params |
struct no_os_dma_xfer_desc | dma_tx_desc |
struct no_os_dma_ch | dma_chan |
struct no_os_pwm_init_param | cs_init_params |
struct no_os_pwm_init_param | pwm_init_params |
struct no_os_dma_init_param | ad405x_dma_init_param |
volatile uint32_t * | buff_start_addr |
volatile struct iio_device_data * | iio_dev_data_g |
uint32_t | nb_of_samples_g |
int32_t | data_read |
struct no_os_pwm_desc * | tx_trigger_desc |
Application configurations module for AD405X.
Copyright (c) 2022-2024 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_ID ID_AD4052 |
#define ACTIVE_DEVICE_NAME "ad4052" |
#define ACTIVE_PLATFORM STM32_PLATFORM |
#define ADC_AVERAGING_MODE_RESOLUTION 20 |
#define ADC_BURST_AVG_MODE_RESOLUTION 20 |
#define ADC_CAPTURE_MODE SAMPLE_MODE |
#define ADC_DATA_FORMAT TWOS_COMPLEMENT |
#define ADC_MAX_COUNT (uint32_t)(1 << (ADC_SAMPLE_MODE_RESOLUTION - 1)) |
#define ADC_REF_VOLTAGE 2.5 |
#define ADC_SAMPLE_MODE_RESOLUTION 16 |
#define APP_CAPTURE_MODE WINDOWED_DATA_CAPTURE |
#define AVERAGING_MODE 2 |
#define BURST_AVERAGING_MODE 1 |
#define CONSOLE_STDIO_PORT_AVAILABLE |
#define CONTINUOUS_DATA_CAPTURE 0 |
#define DEFAULT_BURST_SAMPLE_RATE 2000000 |
#define DEVICE_NAME "DEV_AD4052" |
#define FIRMWARE_NAME "ad405x_iio" |
#define HW_CARRIER_NAME TARGET_NAME |
#define HW_MEZZANINE_NAME "EVAL-AD4052-ARDZ" |
#define IIO_UART_BAUD_RATE (230400) |
#define INTERFACE_MODE SPI_DMA |
#define MBED_PLATFORM 1 |
#define MIN_DATA_CAPTURE_TIME_NS 8000 |
#define MIN_INTERRUPT_OVER_HEAD 3000 |
#define PLATFORM_NAME HW_CARRIER_NAME |
#define SAMPLE_MODE 0 |
#define SPI_DMA 0 |
#define SPI_INTERRUPT 1 |
#define STM32_PLATFORM 2 |
#define STR | ( | s | ) | XSTR(s) |
#define STRAIGHT_BINARY 0 |
#define trigger_gpio_handle STM32_DMA_CONT_HANDLE |
#define TRIGGER_INT_ID STM32_DMA_CONT_TRIGGER |
#define TWOS_COMPLEMENT 1 |
#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 WINDOWED_DATA_CAPTURE 1 |
#define XSTR | ( | s | ) | #s |
int32_t ad405x_gpio_reset | ( | void | ) |
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
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |