33#ifndef __COMMON_DATA_H__
34#define __COMMON_DATA_H__
36#include "platform_includes.h"
41#if defined(IIO_SW_TRIGGER_EXAMPLE) || defined(IIO_TIMER_TRIGGER_EXAMPLE)
47#define DEMO_CHANNELS no_os_max(TOTAL_ADC_CHANNELS, TOTAL_DAC_CHANNELS)
50#define SAMPLES_PER_CHANNEL SAMPLES_PER_CHANNEL_PLATFORM
52#define SAMPLES_PER_CHANNEL 0
53#define loopback_buffs NULL
56extern uint8_t in_buff[];
57extern uint8_t out_buff[];
59#define MAX_SIZE_BASE_ADDR (SAMPLES_PER_CHANNEL * DEMO_CHANNELS * \
59#define MAX_SIZE_BASE_ADDR (SAMPLES_PER_CHANNEL * DEMO_CHANNELS * \ …
62#define DAC_DDR_BASEADDR out_buff
63#define ADC_DDR_BASEADDR in_buff
68#ifdef IIO_SW_TRIGGER_EXAMPLE
69#define ADC_DEMO_TRIG_NAME "adc-demo-sw-trig"
72#define DAC_DEMO_TRIG_NAME "dac-demo-sw-trig"
76#ifdef IIO_TIMER_TRIGGER_EXAMPLE
77#define ADC_DEMO_TIMER_TRIG_NAME "adc_demo_timer_trig"
82#define DAC_DEMO_TIMER_TRIG_NAME "dac_demo_timer_trig"
Header file of ADC Demo Driver.
Header file of DAC Demo Driver.
Config file of IIO Demo project.
struct adc_demo_init_param adc_init_par
Definition common_data.c:52
struct dac_demo_init_param dac_init_par
Definition common_data.c:62
struct no_os_uart_init_param iio_demo_uart_ip
Definition common_data.c:40
Header file for iio_trigger.
Header file of utility functions.
IIO hardware trigger initialization structure.
Definition iio_trigger.h:77
IIO software trigger initialization structure.
Definition iio_trigger.h:107
Structure holding the initial parameters for Interrupt Request.
Definition no_os_irq.h:101
Structure holding the parameters for timer initialization.
Definition no_os_timer.h:71
Structure holding the parameters for UART initialization.
Definition no_os_uart.h:98