no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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
 

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:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
  • The use of this software may or may not infringe the patent rights of one or more patent holders. This license does not release you from the requirement that you obtain separate licenses from these patent holders to use this software.
  • Use of the software either in source or binary form, must be run on or directly connected to an Analog Devices Inc. component.

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,
}
#define TX_CORE_BASEADDR
Definition parameters.h:85
@ AXI_DAC_BUS_TYPE_QSPI
Definition axi_dac_core.h:40

◆ clkgen_ip

struct axi_clkgen_init clkgen_ip
Initial value:
= {
.name = "tx_clkgen",
.parent_rate = 100000000,
}
#define TX_CLKGEN_BASEADDR
Definition parameters.h:87

◆ default_gpio_param

struct no_os_gpio_init_param default_gpio_param
Initial value:
= {
.platform_ops = GPIO_OPS,
.extra = GPIO_EXTRA
}
#define GPIO_EXTRA
Definition parameters.h:73
#define GPIO_OPS
Definition parameters.h:72

◆ dmac_ip

struct axi_dmac_init dmac_ip
Initial value:
= {
.name = "tx_dmac",
.base = TX_DMA_BASEADDR,
.irq_option = IRQ_DISABLED
}
#define TX_DMA_BASEADDR
Definition parameters.h:86
@ IRQ_DISABLED
Definition axi_dmac.h:70

◆ 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,
}
#define GPIO_OFFSET
Definition parameters.h:73
#define GPIO_LDAC_N
Definition parameters.h:47

◆ gpio_reset_param

struct no_os_gpio_init_param gpio_reset_param
Initial value:
= {
.platform_ops = GPIO_OPS,
.extra = GPIO_EXTRA,
}
#define GPIO_RESET_N
Definition parameters.h:46