Go to the documentation of this file.
33 #ifndef __IIO_SW_TRIGGER_EXAMPLE_H__
34 #define __IIO_SW_TRIGGER_EXAMPLE_H__
uint32_t pll_dac_frequency_khz
Definition: ad9144.h:1402
#define GPIO_PWDN_0
Definition: parameters.h:59
Platform dependent parameters.
uint32_t base_address
Definition: altera_gpio.h:67
Driver for the Analog Devices AXI-ADC-CORE module.
Definition: ad9152.h:1351
ad9523_channels
Definition: parameters.h:145
int adxcvr_clk_enable(struct adxcvr *xcvr)
AXI ADXCVR Clock Enable.
Definition: axi_adxcvr.c:479
int32_t axi_dac_data_setup(struct axi_dac *dac)
AXI DAC Data Setup.
Definition: axi_dac_core.c:1193
struct dac_demo_init_param dac_init_par
Definition: common_data.c:68
const char * name
Definition: axi_dac_core.h:55
struct ad9523_dev * ad9523_device
Definition: fmcdaq2.c:82
IIO application descriptor initialization parameters.
Definition: iio_app.h:101
uint16_t channel_divider
Definition: ad9528.h:345
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
struct ad9250_fast_detect_cfg ad9250_fast_detect
Definition: ad9250_cfg.h:81
int main(void)
main
Definition: fmcdaq3.c:125
uint8_t scrambling
Definition: fmcdaq2.c:114
int32_t ad9144_short_pattern_test(struct ad9144_dev *dev, const struct ad9144_init_param *init_param)
ad9144_short_pattern_test
Definition: ad9144.c:1282
struct no_os_gpio_desc * gpio_dac_txen
Definition: fmcdaq2.c:90
#define SYSREF_NSHOT_4_PULSES
Definition: ad9528.h:287
struct axi_jesd204_tx * ad9144_jesd
Definition: fmcdaq2.c:96
Header file of DAC Demo iio.
int8_t en_fd
Definition: ad9250.h:463
uint32_t lane_rate_kbps
Definition: ad9680.h:103
const char * name
Definition: altera_adxcvr.h:90
struct adc_demo_init_param adc_init_par
Definition: common_data.c:58
struct no_os_uart_init_param uart_init_params
Definition: iio_app.h:115
#define IIO_APP_DEVICE(_name, _dev, _dev_descriptor, _read_buff, _write_buff, _default_trigger_id)
Definition: iio_app.h:47
struct axi_dmac_init ad9144_dmac_param
Definition: fmcdaq2.c:147
struct no_os_gpio_desc * gpio_clkd_sync
Definition: fmcdaq2.c:88
uint8_t * lane_ids
Definition: jesd204.h:137
Adc descriptor.
Definition: aducm3029_adc.c:48
int32_t adc_demo_init(struct adc_demo_desc **desc, struct adc_demo_init_param *param)
init function for the adc demo driver
Definition: adc_demo.c:76
const char * name
Definition: axi_jesd204_tx.h:72
Definition: ad9152.h:1341
int main(void)
Definition: fmcadc5.c:66
#define GPIO_CLKD_SYNC
Definition: parameters.h:138
int32_t altera_a10_fpll_enable(struct altera_a10_fpll *fpll)
altera_a10_fpll_enable
Definition: clk_altera_a10_fpll.c:448
#define AD9680_TEST_PN9
Definition: ad9680.h:71
uint32_t lane_rate_kbps
Definition: ad9152.h:1348
int32_t axi_jesd204_rx_init_legacy(struct axi_jesd204_rx **jesd204, const struct jesd204_rx_init *init)
Device initialization.
Definition: axi_jesd204_rx.c:835
struct ad9517_state ad9517_st
Definition: ad9517.h:400
@ GPIO_PS
Definition: xilinx_gpio.h:56
#define ADC_MAX_SAMPLES
Definition: parameters.h:40
@ SPI_PS
Definition: xilinx_spi.h:62
Header file of AD9144 iio.
uint32_t pat_data
Definition: axi_dac_core.h:104
uint32_t size
Definition: iio_app.h:63
#define AD9625_TEST_OFF
Definition: ad9625.h:64
Platform dependent parameters.
Definition: axi_dmac.h:127
uint8_t samples_per_conv_frame
Definition: jesd204.h:135
struct axi_dac_channel ad9144_channels[2]
Definition: fmcdaq2.c:101
struct iio_desc * iio_desc
Definition: iio_app.h:86
uint8_t device_id
Definition: jesd204.h:127
const char * name
Definition: axi_dmac.h:128
#define GPIO_DAC_TXEN
Definition: parameters.h:136
struct ad9625_dev * ad9625_0_device
Definition: axi_fmcadc5_sync.h:92
struct adxcvr_init ad9144_xcvr_param
Definition: fmcdaq2.c:137
uint8_t channel_num
Definition: ad9523.h:303
@ UART_PL
Definition: xilinx_uart.h:57
#define RX_0_JESD_BASEADDR
Definition: parameters.h:45
uint8_t num_converters
Definition: ad9144.h:1384
uint8_t ctrl_bits_per_sample
Definition: jesd204.h:134
int32_t ad9517_remove(struct ad9517_dev *dev)
Free the resources allocated by ad9517_setup().
Definition: ad9517.c:220
Header file of SPI Interface.
struct adxcvr * xcvr
Definition: jesd204_clk.h:48
@ NO_OS_UART_STOP_1_BIT
Definition: no_os_uart.h:94
enum xil_uart_type type
Definition: xilinx_uart.h:69
struct fmcdaq2_init_param fmcdaq2_init
uint32_t subclass
Definition: ad9081.h:143
enum ad9517_type ad9517_type
Definition: ad9517.h:401
@ RPOLE2_900_OHM
Definition: ad9523.h:336
int32_t i5g_setup(struct s_i5g **descriptor, struct s_i5g_init init_param)
Definition: axi_fmcadc5_sync.c:377
Header file of AD9625 Driver.
unsigned long dcm
Definition: ad9680.h:107
int jesd204_topology_init(struct jesd204_topology **topology, struct jesd204_topology_dev *devs, unsigned int devs_number)
Output channel configuration.
Definition: ad9528.h:330
ADI JESD204B/C AXI_ADXCVR Highspeed Transceiver Device structure.
Definition: altera_adxcvr.h:89
Header file of AD9517 Driver.
AXI ADC Initialization Parameters structure.
Definition: axi_adc_core.h:143
Definition: fmcdaq2.c:132
const struct no_os_spi_init_param ad9528_spi_param
Definition: common_data.c:45
uint32_t lane_clk_khz
Definition: axi_jesd204_rx.h:102
@ LVDS_3_5mA
Definition: ad9517.h:371
@ AXI_DAC_DATA_SEL_DDS
Definition: axi_dac_core.h:84
struct ad9250_platform_data ad9250_pdata_lpc
Definition: ad9250_cfg.h:44
int32_t axi_dmac_transfer_wait_completion(struct axi_dmac *dmac, uint32_t timeout_ms)
Definition: axi_dmac.c:525
#define GPIO_RST_0
Definition: parameters.h:58
IIO application descriptor.
Definition: iio_app.h:80
struct jesd204_dev * jdev
Definition: axi_jesd204_rx.h:81
int32_t no_os_gpio_get_value(struct no_os_gpio_desc *desc, uint8_t *value)
Get the value of the specified GPIO.
Definition: no_os_gpio.c:221
struct iio_desc * iio_desc
Definition: iio_trigger.h:107
Header file of AD9680 Driver.
Header file of AD9250 Driver.
struct jesd204_link link_config
Definition: ad9144.h:1360
uint32_t test_samples[4]
Definition: ad9625.h:83
Definition: dac_demo.h:58
struct ad9523_init_param ad9523_param
Definition: fmcdaq2.c:133
uint8_t lane_mux[8]
Definition: ad9144.h:1395
void * buff
Definition: iio_app.h:64
#define NO_OS_IS_ERR_VALUE(x)
Definition: no_os_error.h:50
volatile bool transfer_done
Definition: axi_dmac.h:104
Header file of Delay functions.
struct iio_device dac_demo_iio_descriptor
Definition: iio_dac_demo.c:273
uint32_t axi_jesd204_rx_status_read(struct axi_jesd204_rx *jesd)
Read status of the JESD204 Receive Peripherial.
Definition: axi_jesd204_rx.c:212
const struct no_os_gpio_platform_ops xil_gpio_ops
Xilinx platform specific GPIO platform ops structure.
Definition: xilinx_gpio.c:450
enum jesd204_sysref_mode mode
Definition: jesd204.h:61
AXI ADC Device Descriptor.
Definition: axi_adc_core.h:122
int iio_sw_trig_init(struct iio_sw_trig **iio_trig, struct iio_sw_trig_init_param *init_param)
Initialize software trigger.
Definition: iio_trigger.c:177
int32_t ad9523_setup(struct ad9523_dev **device, const struct ad9523_init_param *init_param)
Setup the AD9523 device.
Definition: ad9523.c:422
struct jesd204_clk rx_jesd_clk
Definition: fmcdaq2.c:129
#define ADC_DDR_BASEADDR
Definition: main.c:62
uint32_t prbs_type
Definition: ad9144.h:1390
@ NIOS_II_SPI
Definition: altera_spi.h:48
enum no_os_spi_mode mode
Definition: no_os_spi.h:148
int32_t ad9144_datapath_prbs_test(struct ad9144_dev *dev, const struct ad9144_init_param *init_param)
ad9144_datapath_prbs_test
Definition: ad9144.c:1320
struct ad9523_platform_data * pdata
Definition: ad9523.h:483
uint8_t channel_num
Definition: ad9517.h:334
#define RX_1_CORE_BASEADDR
Definition: parameters.h:56
Header file of AD9680 iio.
uint8_t jesd204_subclass
Definition: ad9144.h:1393
@ UART_PS
Definition: xilinx_uart.h:59
uint8_t converter_resolution
Definition: jesd204.h:122
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:117
int32_t number
Definition: no_os_gpio.h:83
struct iio_trigger adc_iio_sw_trig_desc
Definition: iio_adc_demo_trig.c:55
struct axi_dac * ad9144_core
Definition: fmcdaq2.c:100
uint32_t device_id
Definition: ad9081.h:133
struct iio_trigger dac_iio_sw_trig_desc
Definition: iio_dac_demo_trig.c:55
const char * name
Definition: axi_adc_core.h:124
struct ad9517_platform_data * pdata
Definition: ad9517.h:377
int32_t ad9680_setup_jesd_fsm(struct ad9680_dev **device, const struct ad9680_init_param *init_param)
Definition: ad9680.c:294
const char * name
Definition: clk_altera_a10_fpll.h:52
iio configuration.
Definition: iio_axi_adc.h:77
#define AD9517_DIGITAL_LOCK_DETECT
Definition: ad9517.h:212
Definition: axi_fmcadc5_sync.h:91
int32_t ad9144_set_nco(struct ad9144_dev *dev, int32_t f_carrier_khz, int16_t phase)
Definition: ad9144.c:375
struct ad9523_channel_spec ad9523_channels[8]
Definition: fmcdaq2.c:86
uint8_t subclass
Definition: jesd204.h:125
@ ADC_DEVICE_CLK
Definition: parameters.h:150
struct link_init_param jtx_link_rx
Definition: fmcdaq2.c:151
Fast Detect module configuration.
Definition: ad9250.h:457
Driver for the Analog Devices AXI-DAC-CORE module.
struct jesd204_rx_init ad9680_jesd_param
Definition: fmcdaq2.c:141
Definition: iio_axi_dac.h:71
int32_t axi_jesd204_rx_init(struct axi_jesd204_rx **jesd204, const struct jesd204_rx_init *init)
Device initialization, JESD FSM ON.
Definition: axi_jesd204_rx.c:911
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
Definition: jesd204.h:248
struct jesd204_dev * jdev
Definition: jesd204.h:240
int32_t axi_jesd204_rx_remove(struct axi_jesd204_rx *jesd)
Free resoulces allocated for JESD204 RX peripheral.
Definition: axi_jesd204_rx.c:990
const char * name
Definition: axi_jesd204_rx.h:90
struct jesd204_sysref sysref
Definition: jesd204.h:139
struct jesd204_clk tx_jesd_clk
Definition: fmcdaq2.c:130
Output channel configuration.
Definition: ad9523.h:301
#define RX_0_CORE_BASEADDR
Definition: parameters.h:47
uint8_t scrambling
Definition: jesd204.h:130
bool lpm_enable
Definition: axi_adxcvr.h:115
#define ADXCVR_OUTCLK_PMA
Definition: axi_adxcvr.h:54
Header file of SPI Demux Interface.
const struct no_os_spi_platform_ops * platform_ops
Definition: no_os_spi.h:154
Definition: jesd204.h:239
@ CPOLE1_16_PF
Definition: ad9523.h:356
#define RX_1_JESD_BASEADDR
Definition: parameters.h:54
struct no_os_spi_init_param spi_init
Definition: ad9144.h:1381
uint32_t lanes_per_device
Definition: ad9081.h:142
int32_t altera_a10_fpll_set_rate(struct altera_a10_fpll *fpll, uint32_t rate)
altera_a10_fpll_set_rate
Definition: clk_altera_a10_fpll.c:340
@ NIOS_II_GPIO
Definition: altera_gpio.h:53
uint8_t link_converter_select[16]
Definition: ad9081.h:149
uint32_t device_clk_khz
Definition: axi_jesd204_tx.h:121
uint32_t link_id
Definition: fmcdaq2.c:108
#define AD9250_TEST_RAMP
Definition: ad9250.h:161
const struct no_os_gpio_platform_ops * platform_ops
Definition: no_os_gpio.h:87
struct xil_spi_init_param xil_spi_param
Definition: parameters.c:51
const struct iio_device ad9144_iio_descriptor
Definition: iio_ad9144.c:38
iio_axi_adc_descriptor
Definition: iio_axi_adc.h:53
uint32_t lane_rate_kbps
Definition: ad9625.h:82
IIO sw trigger example header for iio_demo project.
@ NO_OS_GPIO_LOW
Definition: no_os_gpio.h:115
const struct no_os_spi_platform_ops altera_spi_ops
Altera platform specific SPI platform ops structure.
Definition: altera_spi.c:158
uint32_t device_id
Definition: no_os_spi.h:142
int32_t ad9250_output_format(struct ad9250_dev *dev, int32_t format)
Specifies the output format. Note: This function modifies a shadowed register, therefore a call of ad...
Definition: ad9250.c:615
struct ad9517_lvds_cmos_channel_spec ad9517_lvds_cmos_channels[]
Definition: ad9467_fmc.c:136
#define IIO_APP_TRIGGER(_name, _trig, _trig_descriptor)
Definition: iio_app.h:56
uint8_t high_density
Definition: jesd204.h:131
struct iio_device const ad9152_iio_descriptor
Definition: iio_ad9152.c:38
struct ad9517_platform_data ad9517_pdata_lpc
Definition: ad9467_fmc.c:91
int32_t ad9250_setup(struct ad9250_dev **device, struct ad9250_init_param init_param)
Configures the device.
Definition: ad9250.c:86
#define GPIO_DAC_RESET
Definition: parameters.h:137
#define AD9680_TEST_PN23
Definition: ad9680.h:72
#define RX_DMA_BASEADDR
Definition: parameters.h:64
struct ad9144_dev * ad9144_device
Definition: fmcdaq2.c:83
int32_t ad9152_setup(struct ad9152_dev **device, struct ad9152_init_param init_param)
ad9152_setup
Definition: ad9152.c:90
int32_t ad9517_power_mode(struct ad9517_dev *dev, int32_t channel, int32_t mode)
Sets the power mode of the specified channel.
Definition: ad9517.c:825
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:126
struct no_os_spi_init_param spi_init
Definition: ad9517.h:398
struct iio_data_buffer * read_buff
Definition: iio_app.h:71
Definition: axi_dmac.h:102
uint8_t interpolation
Definition: ad9144.h:1386
int32_t axi_jesd204_tx_lane_clk_enable(struct axi_jesd204_tx *jesd)
JESD204 TX Lane Clock Enable.
Definition: axi_jesd204_tx.c:147
struct link_init_param jrx_link_tx
Definition: fmcdaq2.c:150
int jesd204_fsm_start(struct jesd204_topology *topology, unsigned int link_idx)
struct adxcvr * ad9680_xcvr
Definition: fmcdaq2.c:94
Driver for the ADI AXI-ADXCVR Module.
uint32_t prbs_type
Definition: ad9152.h:1347
int32_t iio_axi_adc_init(struct iio_axi_adc_desc **desc, struct iio_axi_adc_init_param *init)
Registers a iio_axi_adc_desc for reading/writing and parameterization of axi_adc device.
Definition: iio_axi_adc.c:476
int32_t axi_jesd204_tx_remove(struct axi_jesd204_tx *jesd)
Free resoulces allocated for JESD204 TX peripheral.
Definition: axi_jesd204_tx.c:912
struct ad9625_dev * ad9625_0_device
Definition: axi_fmcadc5_sync.h:101
@ DAC_DEVICE_SYSREF
Definition: parameters.h:147
uint8_t jesd204_mode
Definition: ad9144.h:1392
int32_t ad9144_status(struct ad9144_dev *dev)
ad9144_status - return the status of the JESD interface
Definition: ad9144.c:1243
const struct no_os_gpio_platform_ops altera_gpio_ops
Altera platform specific GPIO platform ops structure.
Definition: altera_gpio.c:253
int fmcdaq2_reconfig(struct ad9144_init_param *p_ad9144_param, struct adxcvr_init *ad9144_xcvr_param, struct ad9680_init_param *p_ad9680_param, struct adxcvr_init *ad9680_xcvr_param, struct ad9523_platform_data *p_ad9523_param)
Definition: fmcdaq2.c:815
Analog Devices JESD204 clock.
Definition: axi_dac_core.h:96
int iio_sw_trigger_example_main()
IIO sw trigger example main execution.
Definition: iio_sw_trigger_example.c:53
#define TX_XCVR_BASEADDR
Definition: parameters.h:58
@ IRQ_DISABLED
Definition: axi_dmac.h:79
uint8_t num_lanes
Definition: ad9144.h:1385
Header file of AD9523 Driver.
Structure holding the initialization parameters for Altera platform specific SPI parameters.
Definition: altera_spi.h:56
@ JESD204_SYSREF_ONESHOT
Definition: jesd204.h:40
Driver for the Altera ADXCVR Configuration.
struct no_os_gpio_desc * gpio_adc_pd
Definition: fmcdaq2.c:91
#define GPIO_PWR_GOOD
Definition: parameters.h:66
uint32_t tpl_phase_adjust
Definition: ad9081.h:151
struct ad9250_fast_detect_cfg * p_fd
Definition: ad9250.h:493
const char * name
Definition: axi_dac_core.h:70
#define JESD204_LINKS_ALL
Definition: jesd204.h:49
struct fmcdaq2_dev fmcdaq2
struct no_os_gpio_init_param * gpio_resetb
Definition: ad9528.h:501
struct jesd204_link jesd204_link
Definition: ad9680.h:91
struct no_os_gpio_desc * gpio_dac_reset
Definition: fmcdaq2.c:89
int64_t ad9517_frequency(struct ad9517_dev *dev, int32_t channel, int64_t frequency)
Sets the frequency on the specified channel.
Definition: ad9517.c:476
struct ad9680_init_param ad9680_param
Definition: fmcdaq2.c:135
uint8_t bits_per_sample
Definition: jesd204.h:120
struct iio_data_buffer * write_buff
Definition: iio_app.h:72
#define AD9144_PRBS15
Definition: ad9144.h:1350
@ SPI_PL
Definition: xilinx_spi.h:60
struct xil_gpio_init_param xil_gpio_param
Definition: parameters.c:46
@ AD9517_1
Definition: ad9517.h:341
uint8_t jesd_version
Definition: jesd204.h:123
struct axi_dmac * ad9680_dmac
Definition: fmcdaq2.c:104
int32_t ad9523_init(struct ad9523_init_param *init_param)
Initialize the AD9523 data structure with the default register values.
Definition: ad9523.c:347
struct ad9625_dev * ad9625_1_device
Definition: axi_fmcadc5_sync.h:93
int32_t ad9517_read(struct ad9517_dev *dev, uint32_t reg_addr, uint32_t *reg_value)
Reads data from a register.
Definition: ad9517.c:277
Driver for the Analog Devices AXI-DMAC core.
#define DAC_DDR_BASEADDR
Definition: parameters.h:41
int main(void)
Definition: fmcdaq2.c:1189
uint32_t dds_frequency_0
Definition: axi_dac_core.h:97
struct adxcvr * ad9144_xcvr
Definition: fmcdaq2.c:93
struct jesd204_dev * jdev
Definition: ad9680.h:90
uint32_t src_addr
Definition: axi_dmac.h:106
void iio_axi_dac_get_dev_descriptor(struct iio_axi_dac_desc *desc, struct iio_device **dev_descriptor)
Create structure describing a device, channels and attributes.
Definition: iio_axi_dac.c:646
uint32_t device_clk_khz
Definition: axi_jesd204_rx.h:100
Config file for DAQ3 project.
Config file for DAQ2 project.
#define GPIO_PWDN_1
Definition: parameters.h:61
bool is_transmit
Definition: jesd204.h:112
@ ADC_FPGA_CLK
Definition: parameters.h:152
struct axi_adc_init ad9680_core_param
Definition: fmcdaq2.c:143
uint32_t bits_per_sample
Definition: ad9081.h:139
uint32_t axi_jesd204_tx_status_read(struct axi_jesd204_tx *jesd)
Read status of the JESD204 Transmit Peripherial.
Definition: axi_jesd204_tx.c:170
uint32_t converters_per_device
Definition: ad9081.h:140
Definition: axi_dac_core.h:68
struct ad9517_lvpecl_channel_spec ad9517_lvpecl_channels[]
Definition: ad9467_fmc.c:109
const struct no_os_spi_platform_ops demux_spi_platform_ops
Demux specific SPI platform ops structure.
Definition: demux_spi.c:51
Header file of iio_axi_adc.
struct no_os_uart_init_param iio_demo_uart_ip
Definition: common_data.c:44
Definition: altera_adxcvr.h:102
int32_t dds_scale_0
Definition: axi_dac_core.h:99
Definition: ad9144.h:1355
#define GPIO_RST_1
Definition: parameters.h:60
uint32_t dest_addr
Definition: axi_dmac.h:107
struct iio_device const ad9680_iio_descriptor
Definition: iio_ad9680.c:37
#define SYSREF_PATTERN_CONTINUOUS
Definition: ad9528.h:279
int8_t jtx_in_standby
Definition: ad9250.h:326
uint32_t pll_ref_frequency_khz
Definition: ad9144.h:1400
int32_t no_os_gpio_remove(struct no_os_gpio_desc *desc)
Free the resources allocated by no_os_gpio_get().
Definition: no_os_gpio.c:104
unsigned long long sampling_frequency_hz
Definition: ad9680.h:106
const char * name
Definition: altera_adxcvr.h:103
#define AD9250_TEST_OFF
Definition: ad9250.h:153
#define AD9152_TEST_PN15
Definition: ad9152.h:1334
struct no_os_spi_init_param spi_init
Definition: ad9680.h:101
uint32_t out_clk_sel
Definition: axi_adxcvr.h:113
AXI DAC Device Descriptor.
Definition: axi_dac_core.h:53
struct ad9144_init_param ad9144_param
Definition: fmcdaq2.c:134
@ AXI_DAC_DATA_SEL_PN23
Definition: axi_dac_core.h:90
uint8_t octets_per_frame
Definition: jesd204.h:116
Structure holding the initialization parameters for Xilinx platform specific UART parameters.
Definition: xilinx_uart.h:67
#define AD9680_TEST_OFF
Definition: ad9680.h:70
struct no_os_spi_init_param spi_init
Definition: ad9528.h:499
enum xil_spi_type type
Definition: xilinx_spi.h:74
struct axi_dac_init ad9144_core_param
Definition: fmcdaq2.c:145
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
uint16_t frames_per_multiframe
Definition: jesd204.h:117
Driver for the Altera FPLL.
enum cyclic_transfer cyclic
Definition: axi_dmac.h:105
#define GPIO_JESD204_SYSREF
Definition: parameters.h:79
struct ad9517_lvpecl_channel_spec * lvpecl_channels
Definition: ad9517.h:378
const char * name
Definition: clk_altera_a10_fpll.h:45
int iio_app_run(struct iio_app_desc *app)
Definition: iio_axi_dac.h:53
JESD204B interface configuration.
Definition: ad9250.h:320
#define GPIO_ADC_PD
Definition: parameters.h:135
uint32_t stpl_samples[2][4]
Definition: ad9152.h:1345
#define AD9250_OUT_OFFSET_BINARY
Definition: ad9250.h:177
int32_t ad9152_datapath_prbs_test(struct ad9152_dev *dev, struct ad9152_init_param init_param)
ad9152_setup
Definition: ad9152.c:256
uint32_t link_id
Definition: jesd204.h:106
struct ad9250_jesd204b_cfg * p_jesd204b
Definition: ad9250.h:492
struct axi_dac * tx_dac
Definition: iio_axi_dac.h:73
#define RX_XCVR_BASEADDR
Definition: parameters.h:66
struct axi_dmac * ad9144_dmac
Definition: fmcdaq2.c:103
uint16_t channel_divider
Definition: ad9523.h:321
struct axi_adc * ad9680_core
Definition: fmcdaq2.c:99
Structure holding the initialization parameters for Xilinx platform specific SPI parameters when usin...
Definition: xilinx_spi.h:72
int iio_sw_trigger_example_main()
IIO sw trigger example main execution.
Definition: iio_sw_trigger_example.c:53
int32_t no_os_gpio_get(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Obtain the GPIO decriptor.
Definition: no_os_gpio.c:49
int iio_app_init(struct iio_app_desc **app, struct iio_app_init_param app_init_param)
struct iio_trigger_init * trigs
Definition: iio_app.h:111
int32_t ad9517_update(struct ad9517_dev *dev)
Transfers the contents of the buffer registers into the active registers.
Definition: ad9517.c:313
uint8_t channel_num
Definition: ad9517.h:356
uint32_t max_speed_hz
Definition: no_os_spi.h:144
uint8_t logical_lane_mapping[8]
Definition: ad9081.h:147
struct ad9528_dev * ad9528_device
uint16_t lmfc_offset
Definition: jesd204.h:64
uint32_t ref_rate_khz
Definition: axi_adxcvr.h:119
uint8_t capture_falling_edge
Definition: jesd204.h:62
uint32_t control_bits_per_sample
Definition: ad9081.h:141
Structure holding the initialization parameters for Altera platform specific GPIO parameters.
Definition: altera_gpio.h:61
uint8_t num_lanes
Definition: jesd204.h:114
uint32_t lane_rate_khz
Definition: altera_adxcvr.h:107
IIO software trigger structure.
Definition: iio_trigger.h:105
Definition: axi_jesd204_tx.h:70
int32_t ad9680_remove(struct ad9680_dev *dev)
Free the resources allocated by ad9680_setup().
Definition: ad9680.c:384
@ DAC_FPGA_SYSREF
Definition: parameters.h:149
#define AD9250_TEST_PNLONG
Definition: ad9250.h:158
struct ad9680_dev * ad9680_device
Definition: fmcdaq2.c:84
struct jesd204_dev * jdev
Definition: axi_jesd204_tx.h:92
Definition: clk_altera_a10_fpll.h:51
int32_t axi_dac_init(struct axi_dac **dac_core, const struct axi_dac_init *init)
AXI DAC Main Initialization.
Definition: axi_dac_core.c:1154
int32_t dac_demo_init(struct dac_demo_desc **desc, struct dac_demo_init_param *param)
init function for the dac demo driver
Definition: dac_demo.c:55
int32_t axi_jesd204_tx_init(struct axi_jesd204_tx **jesd204, const struct jesd204_tx_init *init)
Device initialization.
Definition: axi_jesd204_tx.c:819
int32_t ad9517_setup(struct ad9517_dev **device, struct ad9517_init_param init_param)
Initializes the AD9517.
Definition: ad9517.c:52
@ NO
Definition: axi_dmac.h:98
#define ADXCVR_SYS_CLK_CPLL
Definition: axi_adxcvr.h:48
int32_t nb_trigs
Definition: iio_app.h:113
int32_t ad9528_remove(struct ad9528_dev *dev)
Free the resources allocated by ad9528_setup().
Definition: ad9528.c:1123
const struct no_os_uart_platform_ops xil_uart_ops
Xilinx platform specific UART platform ops structure.
Definition: xilinx_uart.c:520
int32_t axi_jesd204_tx_init_legacy(struct axi_jesd204_tx **jesd204, const struct jesd204_tx_init *init)
Device initialization.
Definition: axi_jesd204_tx.c:729
uint32_t version
Definition: ad9081.h:146
#define AD9152_TEST_PN7
Definition: ad9152.h:1335
uint32_t dds_phase_0
Definition: axi_dac_core.h:98
@ AXI_ADC_PN23A
Definition: axi_adc_core.h:158
const uint32_t sine_lut_iq[1024]
Definition: axi_dac_core.c:145
struct axi_adc * rx_adc
Definition: iio_axi_adc.h:79
int32_t axi_adc_init(struct axi_adc **adc_core, const struct axi_adc_init *init)
AXI ADC Main Initialization.
Definition: axi_adc_core.c:641
int32_t axi_dmac_init(struct axi_dmac **dmac_core, const struct axi_dmac_init *init)
Definition: axi_dmac.c:334
#define RX_CORE_BASEADDR
Definition: parameters.h:63
int32_t ad9625_test(struct ad9625_dev *dev, uint32_t test_mode)
ad9625_test
Definition: ad9625.c:157
Definition: adc_demo.h:59
struct no_os_spi_init_param spi_init
Definition: ad9625.h:80
@ AXI_DAC_DATA_SEL_SED
Definition: axi_dac_core.h:85
struct ad9250_platform_data * pdata
Definition: ad9250.h:491
unsigned int fcenter_shift
Definition: ad9144.h:1387
#define NULL
Definition: wrapper.h:64
Structure holding the parameters for UART initialization.
Definition: no_os_uart.h:110
@ DAC_DEVICE_CLK
Definition: parameters.h:146
void * dev
Definition: iio_app.h:69
struct no_os_spi_init_param spi_init
Definition: ad9250.h:524
const struct no_os_spi_platform_ops xil_spi_ops
Spi engine platform specific SPI platform ops structure.
Definition: xilinx_spi.c:453
uint32_t high_density
Definition: ad9081.h:137
int32_t ad9523_remove(struct ad9523_dev *dev)
Free the resources allocated by ad9523_setup().
Definition: ad9523.c:725
int32_t no_os_gpio_set_value(struct no_os_gpio_desc *desc, uint8_t value)
Set the value of the specified GPIO.
Definition: no_os_gpio.c:197
uint32_t stpl_samples[4][4]
Definition: ad9144.h:1388
Definition: ad9144.h:1379
struct ad9625_dev * ad9625_1_device
Definition: axi_fmcadc5_sync.h:102
Definition: clk_altera_a10_fpll.h:44
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
@ ADC_FPGA_SYSREF
Definition: parameters.h:153
int32_t iio_axi_dac_init(struct iio_axi_dac_desc **desc, struct iio_axi_dac_init_param *init)
Registers a iio_axi_dac_desc for reading/writing and parameterization of axi_dac device.
Definition: iio_axi_dac.c:659
Header file of ADC Demo iio.
Header file of AD9152 Driver.
Definition: axi_jesd204_rx.h:57
@ NO_OS_UART_PAR_NO
Definition: no_os_uart.h:77
int32_t altera_a10_fpll_init(struct altera_a10_fpll **a10_fpll, const struct altera_a10_fpll_init *init)
altera_a10_fpll_init
Definition: clk_altera_a10_fpll.c:466
struct ad9528_platform_data * pdata
Definition: ad9528.h:503
struct jesd204_dev * jdev
Definition: ad9144.h:1359
uint8_t spi3wire
Definition: ad9144.h:1383
int32_t ad9625_setup(struct ad9625_dev **device, struct ad9625_init_param init_param)
ad9625_setup
Definition: ad9625.c:88
struct axi_dmac_init ad9680_dmac_param
Definition: fmcdaq2.c:148
int32_t ad9152_short_pattern_test(struct ad9152_dev *dev, struct ad9152_init_param init_param)
ad9152_setup
Definition: ad9152.c:216
Header file of iio_axi_dac.
void altera_a10_fpll_disable(struct altera_a10_fpll *fpll)
altera_a10_fpll_disable
Definition: clk_altera_a10_fpll.c:458
uint8_t device_id
Definition: no_os_uart.h:112
Driver for the Analog Devices AXI-JESD204-RX peripheral.
int32_t ad9528_init(struct ad9528_init_param *init_param)
Initializes the AD9528.
Definition: ad9528.c:299
#define RX_JESD_BASEADDR
Definition: parameters.h:65
int32_t ad9680_setup(struct ad9680_dev **device, const struct ad9680_init_param *init_param)
ad9680_setup
Definition: ad9680.c:220
Structure holding the initialization parameters for Xilinx platform specific GPIO parameters.
Definition: xilinx_gpio.h:64
#define ADXCVR_SYS_CLK_QPLL0
Definition: axi_adxcvr.h:50
#define AD9517_REG_PLL_READBACK
Definition: ad9517.h:75
int32_t adxcvr_remove(struct adxcvr *xcvr)
adxcvr_remove
Definition: altera_adxcvr.c:489
void * extra
Definition: no_os_gpio.h:89
Definition: jesd204_clk.h:47
@ LVPECL_780mV
Definition: ad9517.h:350
Header file of GPIO Interface.
uint8_t jesd204_scrambling
Definition: ad9144.h:1394
uint32_t frames_per_multiframe
Definition: ad9081.h:135
uint32_t sys_clk_sel
Definition: axi_adxcvr.h:109
uint8_t pll_enable
Definition: ad9144.h:1398
enum axi_dac_data_sel sel
Definition: axi_dac_core.h:105
struct no_os_clk_desc * clk_out
Definition: axi_adxcvr.h:93
JESD204B/C Receive Peripheral Initialization Structure.
Definition: axi_jesd204_rx.h:88
struct ad9517_lvds_cmos_channel_spec * lvds_cmos_channels
Definition: ad9517.h:379
int32_t ad9250_test_mode(struct ad9250_dev *dev, int32_t mode)
Sets the ADC's test mode.
Definition: ad9250.c:485
@ AXI_DAC_DATA_SEL_PN31
Definition: axi_dac_core.h:91
const char * name
Definition: axi_jesd204_tx.h:101
@ DAC_FPGA_CLK
Definition: parameters.h:148
uint32_t dds_dual_tone
Definition: axi_dac_core.h:103
@ GPIO_PL
Definition: xilinx_gpio.h:54
uint32_t converter_resolution
Definition: ad9081.h:138
int32_t axi_adc_pn_mon(struct axi_adc *adc, enum axi_adc_pn_sel sel, uint32_t delay_ms)
Monitor the AXI ADC PN Sequence.
Definition: axi_adc_core.c:136
int32_t axi_dmac_transfer_start(struct axi_dmac *dmac, struct axi_dma_transfer *dma_transfer)
Definition: axi_dmac.c:385
int32_t axi_dac_load_custom_data(struct axi_dac *dac, const uint32_t *custom_data_iq, uint32_t custom_tx_count, uint32_t address)
AXI DAC Load custom data.
Definition: axi_dac_core.c:1063
#define ADXCVR_REFCLK_DIV2
Definition: axi_adxcvr.h:56
int32_t ad9144_setup_jesd_fsm(struct ad9144_dev **device, const struct ad9144_init_param *init_param)
Definition: ad9144.c:1127
@ AXI_DAC_DATA_SEL_DMA
Definition: axi_dac_core.h:86
const char * name
Definition: axi_jesd204_rx.h:59
int32_t ad9152_remove(struct ad9152_dev *dev)
Free the resources allocated by ad9152_setup().
Definition: ad9152.c:201
#define TX_JESD_BASEADDR
Definition: parameters.h:90
Header file of utility functions.
int32_t ad9250_remove(struct ad9250_dev *dev)
Free the resources allocated by ad9250_setup().
Definition: ad9250.c:188
struct no_os_spi_init_param spi_init
Definition: ad9152.h:1343
struct no_os_uart_init_param iio_uart_ip
Definition: common_data.c:46
struct no_os_spi_init_param spi_init
Definition: ad9523.h:481
#define AD9144_PRBS7
Definition: ad9144.h:1349
void * extra
Definition: no_os_spi.h:158
@ ADC_DEVICE_SYSREF
Definition: parameters.h:151
Definition: axi_fmcadc5_sync.h:100
@ NO_OS_SPI_MODE_0
Definition: no_os_spi.h:61
enum spi_type type
Definition: altera_spi.h:58
int32_t ad9680_test(struct ad9680_dev *dev, uint32_t test_mode)
Definition: ad9680.c:96
uint32_t interpolation
Definition: ad9152.h:1346
uint8_t bank_id
Definition: jesd204.h:128
void iio_axi_adc_get_dev_descriptor(struct iio_axi_adc_desc *desc, struct iio_device **dev_descriptor)
Get device descriptor.
Definition: iio_axi_adc.c:463
struct iio_device adc_demo_iio_descriptor
Definition: iio_adc_demo.c:275
uint32_t lane_rate_kbps
Definition: ad9144.h:1389
struct ad9250_state ad9250_st_init
Definition: ad9250.h:526
uint8_t channel_num
Definition: ad9528.h:332
int32_t no_os_gpio_direction_output(struct no_os_gpio_desc *desc, uint8_t value)
Enable the output direction of the specified GPIO.
Definition: no_os_gpio.c:147
@ NO_OS_UART_CS_8
Definition: no_os_uart.h:66
#define AD9625_TEST_PNLONG
Definition: ad9625.h:69
struct iio_app_device * devices
Definition: iio_app.h:107
JESD204B/C Transmit Peripheral Initialization Structure.
Definition: axi_jesd204_tx.h:99
uint32_t size
Definition: axi_dmac.h:103
Header file of AD9144 Driver.
enum xil_gpio_type type
Definition: xilinx_gpio.h:66
Header file of AD9152 iio.
int32_t ad9625_remove(struct ad9625_dev *dev)
ad9625_remove
Definition: ad9625.c:143
void fmcdaq3_reconfig(struct ad9152_init_param *ad9152_param, struct adxcvr_init *ad9152_xcvr_param, struct ad9680_init_param *ad9680_param, struct adxcvr_init *ad9680_xcvr_param, struct ad9528_platform_data *ad9528_param)
Definition: fmcdaq3.c:79
int32_t ad9528_setup(struct ad9528_dev **device, struct ad9528_init_param init_param)
Initializes the AD9528.
Definition: ad9528.c:702
const char * name
Definition: axi_adc_core.h:145
@ AXI_ADC_PN9
Definition: axi_adc_core.h:157
struct no_os_clk_desc * lane_clk
Definition: axi_jesd204_rx.h:104
uint32_t samples_per_converter_per_frame
Definition: ad9081.h:136
struct axi_jesd204_rx * ad9680_jesd
Definition: fmcdaq2.c:97
int32_t axi_jesd204_rx_lane_clk_enable(struct axi_jesd204_rx *jesd)
JESD204 RX Lane Clock Enable.
Definition: axi_jesd204_rx.c:189
uint32_t nb_devices
Definition: iio_app.h:109
int32_t ad9144_remove(struct ad9144_dev *dev)
Definition: ad9144.c:1229
int32_t ad9152_status(struct ad9152_dev *dev)
ad9152_setup
Definition: ad9152.c:296
@ RZERO_1850_OHM
Definition: ad9523.h:350
@ LVDS
Definition: ad9517.h:365
uint32_t lane_clk_khz
Definition: axi_jesd204_tx.h:123
uint8_t num_converters
Definition: jesd204.h:115
Definition: axi_dmac.h:110
struct no_os_clk_desc * lane_clk
Definition: axi_jesd204_tx.h:125
struct adxcvr_init ad9680_xcvr_param
Definition: fmcdaq2.c:138
uint32_t parent_rate_khz
Definition: altera_adxcvr.h:108
uint32_t octets_per_frame
Definition: ad9081.h:134
int32_t ad9250_transfer(struct ad9250_dev *dev)
Initiates a transfer and waits for the operation to end. Note: This function may be called after a sh...
Definition: ad9250.c:288
int main(void)
main
Definition: fmcjesdadc1.c:67
int32_t adxcvr_init(struct adxcvr **ad_xcvr, const struct adxcvr_init *init)
adxcvr_init
Definition: altera_adxcvr.c:438
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140
Driver for the Analog Devices AXI-JESD204-TX peripheral.
struct jesd204_tx_init ad9144_jesd_param
Definition: fmcdaq2.c:140
unsigned long sysref_mode
Definition: ad9680.h:108
@ AXI_ADC_PN23
Definition: axi_adc_core.h:161