Go to the documentation of this file.
33 #ifndef __DMA_EXAMPLE_H__
34 #define __DMA_EXAMPLE_H__
#define SYSREF_SRC_INTERNAL
Definition: ad9528.h:275
Driver for the Analog Devices AXI-ADC-CORE module.
uint16_t channel_divider
Definition: ad9528.h:345
#define ADXCVR_REFCLK
Definition: axi_adxcvr.h:55
int32_t axi_dac_init_begin(struct axi_dac **dac_core, const struct axi_dac_init *init)
Begin AXI DAC Initialization.
Definition: axi_dac_core.c:1098
int dma_example_main()
DMA example main execution.
Definition: dma_example.c:77
Definition: axi_dmac.h:127
#define ADRV9025_RX_JESD_SUBCLASS
Definition: app_config.h:61
Header file of SPI Interface.
struct adxcvr * tx_adxcvr
Definition: app_jesd.c:53
@ RPOLE2_900_OHM
Definition: ad9523.h:336
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
AXI ADC Initialization Parameters structure.
Definition: axi_adc_core.h:143
const struct no_os_spi_init_param ad9528_spi_param
Definition: common_data.c:45
int32_t axi_adc_write(struct axi_adc *adc, uint32_t reg_addr, uint32_t reg_data)
AXI ADC Data Write.
Definition: axi_adc_core.c:71
int32_t axi_dmac_transfer_wait_completion(struct axi_dmac *dmac, uint32_t timeout_ms)
Definition: axi_dmac.c:525
struct jesd204_dev * jdev
Definition: axi_jesd204_rx.h:81
#define pr_err(fmt, args...)
Definition: no_os_print_log.h:88
#define AXI_ADC_RSTN
Definition: axi_adc_core.h:47
volatile bool transfer_done
Definition: axi_dmac.h:104
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
#define pr_info(fmt, args...)
Definition: no_os_print_log.h:115
int32_t axi_adc_init_begin(struct axi_adc **adc_core, const struct axi_adc_init *init)
Begin AXI ADC Initialization.
Definition: axi_adc_core.c:587
#define ADRV9025_TX_JESD_BITS_PER_SAMPLE
Definition: app_config.h:54
Driver for the Analog Devices AXI-DAC-CORE module.
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
#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
#define DRIVER_MODE_LVDS
Definition: ad9528.h:253
Definition: jesd204.h:239
@ CPOLE1_16_PF
Definition: ad9523.h:356
DMA example header for the adrv902x project.
struct axi_jesd204_tx * tx_jesd
Definition: app_jesd.c:50
#define AXI_ADC_REG_RSTN
Definition: axi_adc_core.h:45
#define ADRV9025_TX_JESD_HIGH_DENSITY
Definition: app_config.h:55
int32_t axi_dmac_remove(struct axi_dmac *dmac)
Definition: axi_dmac.c:367
#define RX_DMA_BASEADDR
Definition: parameters.h:64
#define SYSREF_PATTERN_NSHOT
Definition: ad9528.h:278
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:126
Definition: axi_dmac.h:102
uint32_t dac_buffer_dma[DAC_BUFFER_SAMPLES]
Definition: dma_example.c:65
struct axi_dmac * rx_dmac
Definition: main.c:171
int jesd204_fsm_start(struct jesd204_topology *topology, unsigned int link_idx)
Driver for the ADI AXI-ADXCVR Module.
int32_t axi_jesd204_tx_remove(struct axi_jesd204_tx *jesd)
Free resoulces allocated for JESD204 TX peripheral.
Definition: axi_jesd204_tx.c:912
#define ADRV9025_RX_JESD_FRAMES_PER_MULTIFRAME
Definition: app_config.h:60
struct axi_dmac * tx_dmac
Definition: main.c:181
#define TX_XCVR_BASEADDR
Definition: parameters.h:58
#define ADRV9025_TX_JESD_SUBCLASS
Definition: app_config.h:57
const struct no_os_gpio_init_param clkchip_gpio_init_param
Definition: common_data.c:55
@ IRQ_DISABLED
Definition: axi_dmac.h:79
int32_t axi_dac_set_datasel(struct axi_dac *dac, int32_t chan, enum axi_dac_data_sel sel)
AXI DAC Set Data type for specific channel.
Definition: axi_dac_core.c:590
const char * name
Definition: axi_dac_core.h:70
#define JESD204_LINKS_ALL
Definition: jesd204.h:49
struct no_os_gpio_init_param * gpio_resetb
Definition: ad9528.h:501
#define ADRV9025_STREAM_IMAGE_FILE
Definition: app_config.h:63
#define ADRV9025_RX_JESD_OCTETS_PER_FRAME
Definition: app_config.h:59
Driver for the Analog Devices AXI-DMAC core.
uint8_t num_channels
Definition: axi_adc_core.h:149
#define ADRV9025_TX_JESD_CONVS_PER_DEVICE
Definition: app_config.h:52
uint32_t src_addr
Definition: axi_dmac.h:106
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
Definition: axi_dac_core.h:68
struct jesd204_dev * jdev
Definition: ad9528.h:492
#define ADRV9025_DEVICE_CLK_KHZ
Definition: app_config.h:47
Definition: altera_adxcvr.h:102
uint32_t dest_addr
Definition: axi_dmac.h:107
const char * name
Definition: altera_adxcvr.h:103
uint8_t num_channels
Definition: axi_dac_core.h:74
struct axi_adc_init rx_adc_init
Definition: main.c:144
struct no_os_spi_init_param spi_init
Definition: ad9528.h:499
#define REF_MODE_EXT_REF
Definition: ad9528.h:270
enum cyclic_transfer cyclic
Definition: axi_dmac.h:105
struct adxcvr * rx_adxcvr
Definition: app_jesd.c:52
#define ADC_CHANNELS
Definition: iio_timer_trigger_example.h:41
#define RX_XCVR_BASEADDR
Definition: parameters.h:66
struct ad9528_dev * ad9528_device
#define SOURCE_VCO
Definition: ad9528.h:258
#define ADC_BUFFER_SAMPLES
Definition: parameters.h:161
bool export_no_os_clk
Definition: ad9528.h:504
Definition: axi_jesd204_tx.h:70
int dma_example_main(void)
DMA example main execution.
Definition: dma_example.c:77
#define ADRV9025_TX_JESD_CTRL_BITS_PER_SAMPLE
Definition: app_config.h:56
struct axi_dmac_init rx_dmac_init
Definition: main.c:162
struct jesd204_dev * jdev
Definition: axi_jesd204_tx.h:92
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
#define NO_OS_BIT(x)
Definition: no_os_util.h:45
@ NO
Definition: axi_dmac.h:98
#define ADXCVR_SYS_CLK_CPLL
Definition: axi_adxcvr.h:48
int32_t ad9528_remove(struct ad9528_dev *dev)
Free the resources allocated by ad9528_setup().
Definition: ad9528.c:1123
const uint32_t sine_lut_iq[1024]
Definition: axi_dac_core.c:145
#define AXI_ADC_MMCM_RSTN
Definition: axi_adc_core.h:46
int32_t axi_dmac_init(struct axi_dmac **dmac_core, const struct axi_dmac_init *init)
Definition: axi_dmac.c:334
uint8_t divider_phase
Definition: ad9528.h:343
#define SYSREF_NSHOT_8_PULSES
Definition: ad9528.h:289
#define RX_CORE_BASEADDR
Definition: parameters.h:63
@ CYCLIC
Definition: axi_dmac.h:99
struct axi_dmac_init tx_dmac_init
Definition: main.c:172
uint8_t driver_mode
Definition: ad9528.h:338
#define NULL
Definition: wrapper.h:64
uint16_t adc_buffer_dma[ADC_BUFFER_SAMPLES *ADC_CHANNELS]
Definition: dma_example.c:67
#define SOURCE_SYSREF_VCO
Definition: ad9528.h:260
Definition: axi_jesd204_rx.h:57
int32_t axi_adc_remove(struct axi_adc *adc)
AXI ADC Resources deallocation.
Definition: axi_adc_core.c:681
struct ad9528_platform_data * pdata
Definition: ad9528.h:503
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
struct axi_dac_init tx_dac_init
Definition: main.c:155
struct axi_jesd204_rx * rx_jesd
Definition: app_jesd.c:49
#define ADXCVR_SYS_CLK_QPLL0
Definition: axi_adxcvr.h:50
#define ADRV9025_LANE_RATE_KHZ
Definition: app_config.h:48
int32_t adxcvr_remove(struct adxcvr *xcvr)
adxcvr_remove
Definition: altera_adxcvr.c:489
int32_t axi_dac_remove(struct axi_dac *dac)
AXI DAC Resources deallocation.
Definition: axi_dac_core.c:1238
#define ADRV9025_TX_JESD_CONV_RESOLUTION
Definition: app_config.h:53
struct no_os_clk_desc * clk_out
Definition: axi_adxcvr.h:93
JESD204B/C Receive Peripheral Initialization Structure.
Definition: axi_jesd204_rx.h:88
uint8_t output_dis
Definition: ad9528.h:336
const char * name
Definition: axi_jesd204_tx.h:101
#define ADRV9025_TX_JESD_OCTETS_PER_FRAME
Definition: app_config.h:50
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
@ AXI_DAC_DATA_SEL_DMA
Definition: axi_dac_core.h:86
#define TX_JESD_BASEADDR
Definition: parameters.h:90
Header file of utility functions.
#define DAC_BUFFER_SAMPLES
Definition: parameters.h:160
#define SYSREF_LEVEL_HIGH
Definition: ad9528.h:293
uint8_t signal_source
Definition: ad9528.h:339
#define ADRV9025_TX_JESD_FRAMES_PER_MULTIFRAME
Definition: app_config.h:51
uint8_t channel_num
Definition: ad9528.h:332
JESD204B/C Transmit Peripheral Initialization Structure.
Definition: axi_jesd204_tx.h:99
uint32_t size
Definition: axi_dmac.h:103
struct no_os_clk_desc ** clk_desc
Definition: ad9528.h:490
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
struct no_os_clk_desc * lane_clk
Definition: axi_jesd204_rx.h:104
@ RZERO_1850_OHM
Definition: ad9523.h:350
Definition: axi_dmac.h:110
struct no_os_clk_desc * lane_clk
Definition: axi_jesd204_tx.h:125
int32_t adxcvr_init(struct adxcvr **ad_xcvr, const struct adxcvr_init *init)
adxcvr_init
Definition: altera_adxcvr.c:438
Driver for the Analog Devices AXI-JESD204-TX peripheral.