no-OS
Variables
common_data.c File Reference

Defines common data to be used by ad469x_fmcz examples. More...

#include "common_data.h"
#include "no_os_pwm.h"
#include "no_os_spi.h"
#include "no_os_uart.h"
#include "ad469x.h"
Include dependency graph for common_data.c:

Variables

struct no_os_uart_init_param iio_uart_ip
 
struct no_os_spi_init_param spi_init
 
struct spi_engine_offload_init_param spi_engine_offload_init_param
 
struct axi_clkgen_init clkgen_init
 
struct no_os_pwm_init_param trigger_pwm_init
 
struct no_os_gpio_init_param ad469x_resetn
 
struct ad469x_init_param ad469x_init_param
 

Detailed Description

Defines common data to be used by ad469x_fmcz examples.

Author
Axel Haslam (ahasl.nosp@m.am@b.nosp@m.aylib.nosp@m.re.c.nosp@m.om)

Copyright 2024(c) Analog Devices, Inc.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Variable Documentation

◆ ad469x_init_param

◆ ad469x_resetn

struct no_os_gpio_init_param ad469x_resetn
Initial value:
= {
.number = GPIO_RESETN_1,
.platform_ops = GPIO_OPS,
.extra = GPIO_EXTRA,
}

◆ clkgen_init

struct axi_clkgen_init clkgen_init
Initial value:
= {
.name = "rx_clkgen",
.parent_rate = 100000000,
}

◆ iio_uart_ip

struct no_os_uart_init_param iio_uart_ip
Initial value:
= {
.device_id = UART_DEVICE_ID,
.irq_id = UART_IRQ_ID,
.asynchronous_rx = true,
.baud_rate = UART_BAUDRATE,
.size = NO_OS_UART_CS_8,
.parity = NO_OS_UART_PAR_NO,
.extra = UART_EXTRA,
.platform_ops = UART_OPS,
}

◆ spi_engine_offload_init_param

Initial value:
= {
.offload_config = OFFLOAD_RX_EN,
.rx_dma_baseaddr = DMA_BASEADDR,
}

◆ spi_init

struct no_os_spi_init_param spi_init
Initial value:
= {
.chip_select = SPI_CS,
.max_speed_hz = SPI_BAUDRATE,
.platform_ops = SPI_OPS,
.extra = (void*)SPI_EXTRA,
}

◆ trigger_pwm_init

struct no_os_pwm_init_param trigger_pwm_init
Initial value:
= {
.platform_ops = PWM_OPS,
.extra = PWM_EXTRA,
}
DMA_BASEADDR
#define DMA_BASEADDR
Definition: parameters.h:80
GPIO_RESETN_1
#define GPIO_RESETN_1
Definition: parameters.h:56
NO_OS_UART_STOP_1_BIT
@ NO_OS_UART_STOP_1_BIT
Definition: no_os_uart.h:100
UART_EXTRA
#define UART_EXTRA
Definition: parameters.h:60
NO_OS_SPI_MODE_3
@ NO_OS_SPI_MODE_3
Definition: no_os_spi.h:73
SPI_EXTRA
#define SPI_EXTRA
Definition: parameters.h:81
PWM_EXTRA
#define PWM_EXTRA
Definition: parameters.h:100
UART_OPS
#define UART_OPS
Definition: parameters.h:61
SPI_BAUDRATE
#define SPI_BAUDRATE
Definition: parameters.h:79
UART_IRQ_ID
#define UART_IRQ_ID
Definition: parameters.h:56
RX_CLKGEN_BASEADDR
#define RX_CLKGEN_BASEADDR
Definition: parameters.h:82
UART_BAUDRATE
#define UART_BAUDRATE
Definition: parameters.h:59
NO_OS_PWM_POLARITY_HIGH
@ NO_OS_PWM_POLARITY_HIGH
Definition: no_os_pwm.h:63
SPI_OPS
#define SPI_OPS
Definition: parameters.h:80
OFFLOAD_RX_EN
#define OFFLOAD_RX_EN
Definition: spi_engine.h:59
SPI_CS
#define SPI_CS
Definition: parameters.h:76
NO_OS_UART_PAR_NO
@ NO_OS_UART_PAR_NO
Definition: no_os_uart.h:83
GPIO_OPS
#define GPIO_OPS
Definition: parameters.h:84
UART_DEVICE_ID
#define UART_DEVICE_ID
Definition: parameters.h:58
NO_OS_UART_CS_8
@ NO_OS_UART_CS_8
Definition: no_os_uart.h:72
GPIO_EXTRA
#define GPIO_EXTRA
Definition: parameters.h:85
PWM_OPS
#define PWM_OPS
Definition: parameters.h:99