no-OS
Variables
common_data.c File Reference

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

#include "common_data.h"
#include "no_os_gpio.h"
#include "no_os_spi.h"
#include "ad3552r.h"
#include "axi_dmac.h"
#include "clk_axi_clkgen.h"
#include "axi_dac_core.h"
Include dependency graph for common_data.c:

Variables

struct axi_dac_init ad3552r_core_ip
 
struct axi_clkgen_init clkgen_ip
 
struct axi_dmac_init dmac_ip
 
struct no_os_gpio_init_param gpio_ldac_param
 
struct no_os_gpio_init_param gpio_reset_param
 
struct no_os_gpio_init_param default_gpio_param
 
struct ad3552r_init_param default_ad3552r_param
 

Detailed Description

Defines common data to be used by iio examples.

Author
Angelo Dureghello (adure.nosp@m.ghel.nosp@m.lo@ba.nosp@m.ylib.nosp@m.re.co.nosp@m.m)

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

◆ ad3552r_core_ip

struct axi_dac_init ad3552r_core_ip
Initial value:
= {
.name = "ad3552r_core",
.bus_type = AXI_DAC_BUS_TYPE_QSPI,
.num_channels = 2,
}

◆ clkgen_ip

struct axi_clkgen_init clkgen_ip
Initial value:
= {
.name = "tx_clkgen",
.parent_rate = 100000000,
}

◆ default_ad3552r_param

struct ad3552r_init_param default_ad3552r_param

◆ default_gpio_param

struct no_os_gpio_init_param default_gpio_param
Initial value:
= {
.platform_ops = GPIO_OPS,
.extra = GPIO_EXTRA
}

◆ dmac_ip

struct axi_dmac_init dmac_ip
Initial value:
= {
.name = "tx_dmac",
.base = TX_DMA_BASEADDR,
.irq_option = IRQ_DISABLED
}

◆ gpio_ldac_param

struct no_os_gpio_init_param gpio_ldac_param
Initial value:
= {
.platform_ops = GPIO_OPS,
.extra = GPIO_EXTRA,
.number = GPIO_OFFSET + GPIO_LDAC_N,
}

◆ gpio_reset_param

struct no_os_gpio_init_param gpio_reset_param
Initial value:
= {
.platform_ops = GPIO_OPS,
.extra = GPIO_EXTRA,
}
GPIO_LDAC_N
#define GPIO_LDAC_N
Definition: parameters.h:52
AXI_DAC_BUS_TYPE_QSPI
@ AXI_DAC_BUS_TYPE_QSPI
Definition: axi_dac_core.h:46
TX_CLKGEN_BASEADDR
#define TX_CLKGEN_BASEADDR
Definition: parameters.h:92
TX_DMA_BASEADDR
#define TX_DMA_BASEADDR
Definition: parameters.h:91
IRQ_DISABLED
@ IRQ_DISABLED
Definition: axi_dmac.h:79
TX_CORE_BASEADDR
#define TX_CORE_BASEADDR
Definition: parameters.h:90
GPIO_OPS
#define GPIO_OPS
Definition: parameters.h:78
GPIO_RESET_N
#define GPIO_RESET_N
Definition: parameters.h:51
GPIO_EXTRA
#define GPIO_EXTRA
Definition: parameters.h:79
GPIO_OFFSET
#define GPIO_OFFSET
Definition: parameters.h:78