Go to the documentation of this file.
33 #ifndef __COMMON_DATA_H__
34 #define __COMMON_DATA_H__
39 #include "platform_includes.h"
44 #if defined(IIO_SW_TRIGGER_EXAMPLE) || defined(IIO_TIMER_TRIGGER_EXAMPLE)
53 #define DEMO_CHANNELS no_os_max(TOTAL_ADC_CHANNELS, TOTAL_DAC_CHANNELS)
55 #ifdef ENABLE_LOOPBACK
56 #define SAMPLES_PER_CHANNEL SAMPLES_PER_CHANNEL_PLATFORM
57 #else //ENABLE_LOOPBACK
58 #define SAMPLES_PER_CHANNEL 0
59 #define loopback_buffs NULL
60 #endif //ENABLE_LOOPBACK
65 #define MAX_SIZE_BASE_ADDR (SAMPLES_PER_CHANNEL * DEMO_CHANNELS * \
68 #define DAC_DDR_BASEADDR out_buff
69 #define ADC_DDR_BASEADDR in_buff
74 #ifdef IIO_SW_TRIGGER_EXAMPLE
75 #define ADC_DEMO_TRIG_NAME "adc-demo-sw-trig"
78 #define DAC_DEMO_TRIG_NAME "dac-demo-sw-trig"
82 #ifdef IIO_TIMER_TRIGGER_EXAMPLE
83 #define ADC_DEMO_TIMER_TRIG_NAME "adc_demo_timer_trig"
88 #define DAC_DEMO_TIMER_TRIG_NAME "dac_demo_timer_trig"
uint8_t in_buff[]
Definition: common_data.c:46
Header file for iio_trigger.
struct dac_demo_init_param dac_init_par
Definition: common_data.c:68
Config file of IIO Demo project.
Header file of ADC Demo Driver.
Structure holding the parameters for timer initialization.
Definition: no_os_timer.h:83
struct no_os_uart_init_param iio_demo_uart_ip
Definition: common_data.c:46
IIO hardware trigger initialization structure.
Definition: iio_trigger.h:86
IIO software trigger initialization structure.
Definition: iio_trigger.h:116
Structure holding the parameters for UART initialization.
Definition: no_os_uart.h:110
Structure holding the initial parameters for Interrupt Request.
Definition: no_os_irq.h:107
uint8_t out_buff[]
Definition: common_data.c:79
Header file of utility functions.
Definition: adc_demo.h:78
struct adc_demo_init_param adc_init_par
Definition: common_data.c:58
Definition: dac_demo.h:77
Header file of DAC Demo Driver.