no-OS
Macros | Variables
common_data.h File Reference

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

#include "platform_includes.h"
#include "app_config.h"
#include "no_os_util.h"
#include "adc_demo.h"
#include "dac_demo.h"
Include dependency graph for common_data.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEMO_CHANNELS   no_os_max(TOTAL_ADC_CHANNELS, TOTAL_DAC_CHANNELS)
 
#define SAMPLES_PER_CHANNEL   SAMPLES_PER_CHANNEL_PLATFORM
 
#define MAX_SIZE_BASE_ADDR
 
#define DAC_DDR_BASEADDR   out_buff
 
#define ADC_DDR_BASEADDR   in_buff
 

Variables

uint8_t in_buff []
 
uint8_t out_buff []
 
struct adc_demo_init_param adc_init_par
 
struct dac_demo_init_param dac_init_par
 

Detailed Description

Defines common data to be used by iio_demo examples.

Author
RBolboac (ramon.nosp@m.a.bo.nosp@m.lboac.nosp@m.a@an.nosp@m.alog..nosp@m.com)

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

Macro Definition Documentation

◆ ADC_DDR_BASEADDR

#define ADC_DDR_BASEADDR   in_buff

◆ DAC_DDR_BASEADDR

#define DAC_DDR_BASEADDR   out_buff

◆ DEMO_CHANNELS

#define DEMO_CHANNELS   no_os_max(TOTAL_ADC_CHANNELS, TOTAL_DAC_CHANNELS)

◆ MAX_SIZE_BASE_ADDR

#define MAX_SIZE_BASE_ADDR
Value:
sizeof(uint16_t))

◆ SAMPLES_PER_CHANNEL

#define SAMPLES_PER_CHANNEL   SAMPLES_PER_CHANNEL_PLATFORM

Variable Documentation

◆ adc_init_par

struct adc_demo_init_param adc_init_par

◆ dac_init_par

struct dac_demo_init_param dac_init_par

◆ in_buff

uint8_t in_buff[]

◆ out_buff

uint8_t out_buff[]
DEMO_CHANNELS
#define DEMO_CHANNELS
Definition: common_data.h:57
SAMPLES_PER_CHANNEL
#define SAMPLES_PER_CHANNEL
Definition: common_data.h:60