Go to the documentation of this file.
39 #ifndef __COMMON_DATA_H__
40 #define __COMMON_DATA_H__
45 #include "platform_includes.h"
50 #if defined(IIO_SW_TRIGGER_EXAMPLE) || defined(IIO_TIMER_TRIGGER_EXAMPLE)
57 #define DEMO_CHANNELS no_os_max(TOTAL_ADC_CHANNELS, TOTAL_DAC_CHANNELS)
59 #ifdef ENABLE_LOOPBACK
60 #define SAMPLES_PER_CHANNEL SAMPLES_PER_CHANNEL_PLATFORM
61 #else //ENABLE_LOOPBACK
62 #define SAMPLES_PER_CHANNEL 0
63 #define loopback_buffs NULL
64 #endif //ENABLE_LOOPBACK
69 #define MAX_SIZE_BASE_ADDR (SAMPLES_PER_CHANNEL * DEMO_CHANNELS * \
72 #define DAC_DDR_BASEADDR out_buff
73 #define ADC_DDR_BASEADDR in_buff
78 #ifdef IIO_SW_TRIGGER_EXAMPLE
79 #define ADC_DEMO_TRIG_NAME "adc-demo-sw-trig"
82 #define DAC_DEMO_TRIG_NAME "dac-demo-sw-trig"
86 #ifdef IIO_TIMER_TRIGGER_EXAMPLE
87 #define ADC_DEMO_TIMER_TRIG_NAME "adc_demo_timer_trig"
92 #define DAC_DEMO_TIMER_TRIG_NAME "dac_demo_timer_trig"
Header file for iio_trigger.
struct dac_demo_init_param dac_init_par
Definition: common_data.c:62
uint8_t in_buff[]
Definition: common_data.c:72
Config file of IIO Demo project.
Header file of ADC Demo Driver.
Structure holding the parameters for timer initialization.
Definition: no_os_timer.h:81
IIO hardware trigger initialization structure.
Definition: iio_trigger.h:92
IIO software trigger initialization structure.
Definition: iio_trigger.h:122
Structure holding the initial parameters for Interrupt Request.
Definition: no_os_irq.h:103
uint8_t out_buff[]
Definition: common_data.c:73
Header file of utility functions.
Definition: adc_demo.h:84
struct adc_demo_init_param adc_init_par
Definition: common_data.c:52
Definition: dac_demo.h:83
Header file of DAC Demo Driver.