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

struct no_os_uart_init_param iio_demo_uart_ip
 
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.

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

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.

Author
Robert Budai (rober.nosp@m.t.bu.nosp@m.dai@a.nosp@m.nalo.nosp@m.g.com)

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

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

◆ iio_demo_uart_ip

struct no_os_uart_init_param iio_demo_uart_ip

◆ in_buff

uint8_t in_buff[]

◆ out_buff

uint8_t out_buff[]
DEMO_CHANNELS
#define DEMO_CHANNELS
Definition: common_data.h:53
SAMPLES_PER_CHANNEL
#define SAMPLES_PER_CHANNEL
Definition: common_data.h:56