no-OS
Functions | Variables
app_iio.c File Reference

Application IIO setup. More...

#include "error.h"
#include "uart.h"
#include "uart_extra.h"
#include "iio.h"
#include "parameters.h"
#include "app_iio.h"
#include "iio_ad9680.h"
#include "iio_ad9152.h"
#include "irq.h"
#include "irq_extra.h"
Include dependency graph for app_iio.c:

Functions

int32_t iio_server_init (struct iio_axi_adc_init_param *adc_init, struct iio_axi_dac_init_param *dac_init, struct ad9680_dev *ad9680_device, struct ad9152_dev *ad9152_device)
 Application IIO setup. More...
 

Variables

struct iio_data_buffer g_read_buff
 

Detailed Description

Application IIO setup.

Author
Antoniu Miclaus (anton.nosp@m.iu.m.nosp@m.iclau.nosp@m.s@an.nosp@m.alog..nosp@m.com)

Copyright 2020(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.

Function Documentation

◆ iio_server_init()

int32_t iio_server_init ( struct iio_axi_adc_init_param adc_init,
struct iio_axi_dac_init_param dac_init,
struct ad9680_dev ad9680_device,
struct ad9152_dev ad9152_device 
)

Application IIO setup.

Returns
SUCCESS in case of success, FAILURE otherwise.

Variable Documentation

◆ g_read_buff

struct iio_data_buffer g_read_buff
Initial value:
= {
.buff = (void *)ADC_DDR_BASEADDR,
.size = 0xFFFFFFFF,
}
ADC_DDR_BASEADDR
#define ADC_DDR_BASEADDR
Definition: parameters.h:64