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_pwm.h"
#include "ad796x.h"
#include "axi_dmac.h"
#include "clk_axi_clkgen.h"
#include "axi_adc_core.h"
#include "axi_pwm_extra.h"
Include dependency graph for common_data.c:

Variables

struct axi_adc_init ad796x_core_ip
 
struct axi_clkgen_init clkgen_ip
 
struct axi_dmac_init dmac_ip
 
struct axi_pwm_init_param axi_pwm_0_extra
 
struct no_os_pwm_init_param axi_pwm_0_ip
 
struct axi_pwm_init_param axi_pwm_1_extra
 
struct no_os_pwm_init_param axi_pwm_1_ip
 
struct xil_gpio_init_param xil_gpio_init
 
struct no_os_gpio_init_param gpio_adc_en3_fmc_ip
 
struct no_os_gpio_init_param gpio_adc_en2_fmc_ip
 
struct no_os_gpio_init_param gpio_adc_en1_fmc_ip
 
struct no_os_gpio_init_param gpio_adc_en0_fmc_ip
 
struct ad796x_init_param ad796x_init_param
 

Detailed Description

Defines common data to be used by iio 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.

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

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. 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.
  3. 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.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 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

◆ ad796x_core_ip

struct axi_adc_init ad796x_core_ip
Initial value:
= {
.name = "ad796x_core",
.num_channels = 1,
}

◆ ad796x_init_param

Initial value:
= {
.ad796x_core_ip = &ad796x_core_ip,
.clkgen_ip = &clkgen_ip,
.dmac_ip = &dmac_ip,
.axi_pwm_0_ip = &axi_pwm_0_ip,
.axi_pwm_1_ip = &axi_pwm_1_ip,
.gpio_ip[3] = &gpio_adc_en3_fmc_ip,
.gpio_ip[2] = &gpio_adc_en2_fmc_ip,
.gpio_ip[1] = &gpio_adc_en1_fmc_ip,
.gpio_ip[0] = &gpio_adc_en0_fmc_ip,
}

◆ axi_pwm_0_extra

struct axi_pwm_init_param axi_pwm_0_extra
Initial value:
= {
.base_addr = AXI_PWMGEN_BASEADDR,
.ref_clock_Hz = 125000000,
.channel = 0
}

◆ axi_pwm_0_ip

struct no_os_pwm_init_param axi_pwm_0_ip
Initial value:
= {
.period_ns = PWM_0_PERIOD_NS,
.duty_cycle_ns = PWM_0_DUTY_NS,
.phase_ns = PWM_0_PHASE,
.platform_ops = &axi_pwm_ops,
.extra = &axi_pwm_0_extra
}

◆ axi_pwm_1_extra

struct axi_pwm_init_param axi_pwm_1_extra
Initial value:
= {
.base_addr = AXI_PWMGEN_BASEADDR,
.ref_clock_Hz = 125000000,
.channel = 1
}

◆ axi_pwm_1_ip

struct no_os_pwm_init_param axi_pwm_1_ip
Initial value:
= {
.period_ns = PWM_1_PERIOD_NS,
.duty_cycle_ns = PWM_1_DUTY_NS,
.phase_ns = PWM_1_PHASE,
.platform_ops = &axi_pwm_ops,
.extra = &axi_pwm_1_extra
}

◆ clkgen_ip

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

◆ dmac_ip

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

◆ gpio_adc_en0_fmc_ip

struct no_os_gpio_init_param gpio_adc_en0_fmc_ip
Initial value:
= {
.number = GPIO_EN0_FMC,
.platform_ops = GPIO_OPS,
.extra = GPIO_EXTRA
}

◆ gpio_adc_en1_fmc_ip

struct no_os_gpio_init_param gpio_adc_en1_fmc_ip
Initial value:
= {
.number = GPIO_EN1_FMC,
.platform_ops = GPIO_OPS,
.extra = GPIO_EXTRA
}

◆ gpio_adc_en2_fmc_ip

struct no_os_gpio_init_param gpio_adc_en2_fmc_ip
Initial value:
= {
.number = GPIO_EN2_FMC,
.platform_ops = GPIO_OPS,
.extra = GPIO_EXTRA
}

◆ gpio_adc_en3_fmc_ip

struct no_os_gpio_init_param gpio_adc_en3_fmc_ip
Initial value:
= {
.number = GPIO_EN3_FMC,
.platform_ops = GPIO_OPS,
.extra = GPIO_EXTRA
}

◆ xil_gpio_init

struct xil_gpio_init_param xil_gpio_init
Initial value:
= {
.device_id = GPIO_DEVICE_ID,
.type = GPIO_PS
}
RX_CLKGEN_BASEADDR
#define RX_CLKGEN_BASEADDR
Definition: parameters.h:97
GPIO_EN2_FMC
#define GPIO_EN2_FMC
Definition: parameters.h:79
PWM_0_PHASE
#define PWM_0_PHASE
Definition: parameters.h:93
dmac_ip
struct axi_dmac_init dmac_ip
Definition: common_data.c:70
GPIO_PS
@ GPIO_PS
Definition: xilinx_gpio.h:56
GPIO_EN1_FMC
#define GPIO_EN1_FMC
Definition: parameters.h:78
gpio_adc_en1_fmc_ip
struct no_os_gpio_init_param gpio_adc_en1_fmc_ip
Definition: common_data.c:126
PWM_1_PERIOD_NS
#define PWM_1_PERIOD_NS
Definition: parameters.h:95
PWM_1_DUTY_NS
#define PWM_1_DUTY_NS
Definition: parameters.h:96
PWM_0_PERIOD_NS
#define PWM_0_PERIOD_NS
Definition: parameters.h:91
axi_pwm_ops
const struct no_os_pwm_platform_ops axi_pwm_ops
AXI platform specific PWM platform ops structure.
Definition: axi_pwm.c:406
AD796X_MODE1_EXT_REF_5P0
@ AD796X_MODE1_EXT_REF_5P0
Definition: ad796x.h:50
axi_pwm_0_extra
struct axi_pwm_init_param axi_pwm_0_extra
Definition: common_data.c:81
RX_DMA_BASEADDR
#define RX_DMA_BASEADDR
Definition: parameters.h:64
IRQ_DISABLED
@ IRQ_DISABLED
Definition: axi_dmac.h:79
clkgen_ip
struct axi_clkgen_init clkgen_ip
Definition: common_data.c:64
GPIO_DEVICE_ID
#define GPIO_DEVICE_ID
Definition: parameters.h:87
gpio_adc_en2_fmc_ip
struct no_os_gpio_init_param gpio_adc_en2_fmc_ip
Definition: common_data.c:120
PWM_1_PHASE
#define PWM_1_PHASE
Definition: parameters.h:97
gpio_adc_en0_fmc_ip
struct no_os_gpio_init_param gpio_adc_en0_fmc_ip
Definition: common_data.c:132
PWM_0_DUTY_NS
#define PWM_0_DUTY_NS
Definition: parameters.h:92
RX_CORE_BASEADDR
#define RX_CORE_BASEADDR
Definition: parameters.h:63
axi_pwm_1_extra
struct axi_pwm_init_param axi_pwm_1_extra
Definition: common_data.c:95
gpio_adc_en3_fmc_ip
struct no_os_gpio_init_param gpio_adc_en3_fmc_ip
Definition: common_data.c:114
GPIO_OPS
#define GPIO_OPS
Definition: parameters.h:78
GPIO_EN3_FMC
#define GPIO_EN3_FMC
Definition: parameters.h:80
ad796x_core_ip
struct axi_adc_init ad796x_core_ip
Definition: common_data.c:63
axi_pwm_0_ip
struct no_os_pwm_init_param axi_pwm_0_ip
Definition: common_data.c:87
GPIO_EN0_FMC
#define GPIO_EN0_FMC
Definition: parameters.h:77
axi_pwm_1_ip
struct no_os_pwm_init_param axi_pwm_1_ip
Definition: common_data.c:101
GPIO_EXTRA
#define GPIO_EXTRA
Definition: parameters.h:79
AXI_PWMGEN_BASEADDR
#define AXI_PWMGEN_BASEADDR
Definition: parameters.h:98