no-OS
app_config.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef APP_CONFIG_H_
35 #define APP_CONFIG_H_
36 
37 //#define XILINX_PLATFORM
38 //#define IIO_SUPPORT
39 
40 #endif /* APP_CONFIG_H_ */
41 
axi_adc_core.h
Driver for the Analog Devices AXI-ADC-CORE module.
NO_OS_SPI_MODE_1
@ NO_OS_SPI_MODE_1
Definition: no_os_spi.h:63
adxcvr_clk_enable
int adxcvr_clk_enable(struct adxcvr *xcvr)
AXI ADXCVR Clock Enable.
Definition: axi_adxcvr.c:479
GPIO_ADC_SELA
#define GPIO_ADC_SELA
Definition: parameters.h:69
ad6676_test
int32_t ad6676_test(struct ad6676_dev *dev, uint32_t test_mode)
Perform an interface test.
Definition: ad6676.c:782
iio_app_init_param
IIO application descriptor initialization parameters.
Definition: iio_app.h:101
no_os_gpio_init_param
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
ad6676_dev
Definition: ad6676.h:327
adxcvr::name
const char * name
Definition: altera_adxcvr.h:90
ad6676_init_param::f_adc_hz
uint32_t f_adc_hz
Definition: ad6676.h:301
iio_app_init_param::uart_init_params
struct no_os_uart_init_param uart_init_params
Definition: iio_app.h:115
IIO_APP_DEVICE
#define IIO_APP_DEVICE(_name, _dev, _dev_descriptor, _read_buff, _write_buff, _default_trigger_id)
Definition: iio_app.h:47
GPIO_ADC_SELB
#define GPIO_ADC_SELB
Definition: parameters.h:70
parameters.h
Parameters Definitions.
axi_jesd204_rx_init_legacy
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
ad5766.h
Header file of AD5766 Driver.
GPIO_PS
@ GPIO_PS
Definition: xilinx_gpio.h:56
SPI_PS
@ SPI_PS
Definition: xilinx_spi.h:62
ad6676_init_param::scrambling_en
uint8_t scrambling_en
Definition: ad6676.h:317
iio_data_buffer::size
uint32_t size
Definition: iio_app.h:63
axi_dmac_init
Definition: axi_dmac.h:127
axi_dmac_init::name
const char * name
Definition: axi_dmac.h:128
UART_PL
@ UART_PL
Definition: xilinx_uart.h:57
ad6676_init_param::bw_margin_high_mhz
uint8_t bw_margin_high_mhz
Definition: ad6676.h:305
ad6676_init_param::decimation
uint8_t decimation
Definition: ad6676.h:307
no_os_spi.h
Header file of SPI Interface.
NO_OS_UART_STOP_1_BIT
@ NO_OS_UART_STOP_1_BIT
Definition: no_os_uart.h:94
xil_uart_init_param::type
enum xil_uart_type type
Definition: xilinx_uart.h:69
ad5766_core_init_param
Definition: ad5766_core.h:47
adxcvr
ADI JESD204B/C AXI_ADXCVR Highspeed Transceiver Device structure.
Definition: altera_adxcvr.h:89
axi_adc_init
AXI ADC Initialization Parameters structure.
Definition: axi_adc_core.h:143
iio_app.h
Header file of iio_app.
xilinx_uart.h
axi_dmac_transfer_wait_completion
int32_t axi_dmac_transfer_wait_completion(struct axi_dmac *dmac, uint32_t timeout_ms)
Definition: axi_dmac.c:525
iio_app_desc
IIO application descriptor.
Definition: iio_app.h:80
ad6676_init_param::use_extclk
uint8_t use_extclk
Definition: ad6676.h:311
pr_err
#define pr_err(fmt, args...)
Definition: no_os_print_log.h:88
ad6676_init_param::scale
uint8_t scale
Definition: ad6676.h:310
iio_data_buffer::buff
void * buff
Definition: iio_app.h:64
no_os_delay.h
Header file of Delay functions.
axi_jesd204_rx_status_read
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
xil_gpio_ops
const struct no_os_gpio_platform_ops xil_gpio_ops
Xilinx platform specific GPIO platform ops structure.
Definition: xilinx_gpio.c:450
axi_adc
AXI ADC Device Descriptor.
Definition: axi_adc_core.h:122
pr_info
#define pr_info(fmt, args...)
Definition: no_os_print_log.h:115
ADC_DDR_BASEADDR
#define ADC_DDR_BASEADDR
Definition: main.c:62
ad6676_init_param::lvds_syncb
uint8_t lvds_syncb
Definition: ad6676.h:318
UART_PS
@ UART_PS
Definition: xilinx_uart.h:59
GPIO_ADC_S0
#define GPIO_ADC_S0
Definition: parameters.h:71
no_os_gpio_init_param::number
int32_t number
Definition: no_os_gpio.h:83
no_os_print_log.h
Print messages helpers.
axi_adc::name
const char * name
Definition: axi_adc_core.h:124
ad5766_core_setup
int32_t ad5766_core_setup(struct spi_engine_desc *eng_desc, ad5766_core **ad_core, ad5766_core_init_param init_param)
ad5766_core_setup
Definition: ad5766_core.c:163
ad5766_dev::spi_desc
struct no_os_spi_desc * spi_desc
Definition: ad5766.h:137
iio_axi_adc_init_param
iio configuration.
Definition: iio_axi_adc.h:77
ad6676_init_param::shuffle_thresh
uint8_t shuffle_thresh
Definition: ad6676.h:315
xil_gpio_init_param::device_id
uint32_t device_id
Definition: xilinx_gpio.h:68
GPIO_ADC_OEN
#define GPIO_ADC_OEN
Definition: parameters.h:68
ad5766_init_param
Definition: ad5766.h:144
NO_OS_ARRAY_SIZE
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49
jesd204_rx_init::name
const char * name
Definition: axi_jesd204_rx.h:90
ad5766_dev
Definition: ad5766.h:135
ad6676_init_param::bw_margin_low_mhz
uint8_t bw_margin_low_mhz
Definition: ad6676.h:304
AD5766_SPI_ENGINE_BASEADDR
#define AD5766_SPI_ENGINE_BASEADDR
Definition: parameters.h:47
spi_eng_init_param
struct spi_engine_init_param spi_eng_init_param
Definition: parameters.c:55
xil_spi_param
struct xil_spi_init_param xil_spi_param
Definition: parameters.c:51
iio_axi_adc_desc
iio_axi_adc_descriptor
Definition: iio_axi_adc.h:53
GPIO_ADC_AGC2
#define GPIO_ADC_AGC2
Definition: parameters.h:75
no_os_spi_init_param::device_id
uint32_t device_id
Definition: no_os_spi.h:142
RX_DMA_BASEADDR
#define RX_DMA_BASEADDR
Definition: parameters.h:64
ad6676_init_param::shuffle_ctrl
uint8_t shuffle_ctrl
Definition: ad6676.h:314
no_os_spi_init_param::chip_select
uint8_t chip_select
Definition: no_os_spi.h:146
iio_app_device::read_buff
struct iio_data_buffer * read_buff
Definition: iio_app.h:71
axi_dma_transfer
Definition: axi_dmac.h:102
ad6676_init_param::bw_margin_if_mhz
int8_t bw_margin_if_mhz
Definition: ad6676.h:306
axi_adxcvr.h
Driver for the ADI AXI-ADXCVR Module.
iio_axi_adc_init
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
no_os_error.h
Error codes definition.
ad6676_init_param::attenuation
uint8_t attenuation
Definition: ad6676.h:309
iio_app_device
Definition: iio_app.h:67
GPIO_ADC_S1
#define GPIO_ADC_S1
Definition: parameters.h:72
IRQ_DISABLED
@ IRQ_DISABLED
Definition: axi_dmac.h:79
ad5766_core.h
Header file of AD5766 Core Driver.
TESTGENMODE_OFF
#define TESTGENMODE_OFF
Definition: ad6676.h:197
spi_engine.h
SPI_AD5766_CS
#define SPI_AD5766_CS
Definition: parameters.h:49
SPI_PL
@ SPI_PL
Definition: xilinx_spi.h:60
xil_gpio_param
struct xil_gpio_init_param xil_gpio_param
Definition: parameters.c:46
axi_dmac.h
Driver for the Analog Devices AXI-DMAC core.
iio_data_buffer
Definition: iio_app.h:62
ad6676_init_param::ref_clk
uint32_t ref_clk
Definition: ad6676.h:300
AD5766_DMA_BASEADDR
#define AD5766_DMA_BASEADDR
Definition: parameters.h:45
UART_IRQ_ID
#define UART_IRQ_ID
Definition: parameters.h:50
GPIO_DEVICE_ID
#define GPIO_DEVICE_ID
Definition: parameters.h:84
iio_axi_adc.h
Header file of iio_axi_adc.
adxcvr_init
Definition: altera_adxcvr.h:102
UART_BAUDRATE
#define UART_BAUDRATE
Definition: parameters.h:53
no_os_gpio_remove
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
ad6676_init_param::n_lanes
uint8_t n_lanes
Definition: ad6676.h:320
adxcvr_init::name
const char * name
Definition: altera_adxcvr.h:103
xilinx_gpio.h
ad6676_init_param::sysref_pd
uint8_t sysref_pd
Definition: ad6676.h:319
xil_uart_init_param
Structure holding the initialization parameters for Xilinx platform specific UART parameters.
Definition: xilinx_uart.h:67
ad6676_gpio_config
int32_t ad6676_gpio_config(struct ad6676_init_param init_param)
ad6676_gpio_config
Definition: ad6676_ebz.c:68
xil_spi_init_param::type
enum xil_spi_type type
Definition: xilinx_spi.h:74
no_os_gpio_desc
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
GPIO_JESD204_SYSREF
#define GPIO_JESD204_SYSREF
Definition: parameters.h:79
iio_app_run
int iio_app_run(struct iio_app_desc *app)
main
int main(void)
main
Definition: ad5766_sdz.c:55
ad6676_init_param::spi_init
struct no_os_spi_init_param spi_init
Definition: ad6676.h:324
ad6676_init_param::f_if_hz
uint32_t f_if_hz
Definition: ad6676.h:302
RX_XCVR_BASEADDR
#define RX_XCVR_BASEADDR
Definition: parameters.h:66
no_os_spi_desc::extra
void * extra
Definition: no_os_spi.h:212
SPI_ENGINE
@ SPI_ENGINE
Definition: xilinx_spi.h:64
xil_spi_init_param
Structure holding the initialization parameters for Xilinx platform specific SPI parameters when usin...
Definition: xilinx_spi.h:72
ad5766_core_init_param::core_baseaddr
uint32_t core_baseaddr
Definition: ad5766_core.h:48
no_os_gpio_get
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
iio_app_init
int iio_app_init(struct iio_app_desc **app, struct iio_app_init_param app_init_param)
GPIO_ADC_AGC1
#define GPIO_ADC_AGC1
Definition: parameters.h:74
parameters.h
Platform dependent parameters.
main
int main(void)
main
Definition: ad6676_ebz.c:251
ad6676_init_param::spi3wire
uint8_t spi3wire
Definition: ad6676.h:312
NO
@ NO
Definition: axi_dmac.h:98
AD5766_M_10V_TO_P_10V
@ AD5766_M_10V_TO_P_10V
Definition: ad5766.h:126
ADXCVR_SYS_CLK_CPLL
#define ADXCVR_SYS_CLK_CPLL
Definition: axi_adxcvr.h:48
GPIO_RESET
#define GPIO_RESET
Definition: parameters.h:52
ad5766_core
Definition: ad5766_core.h:39
xil_uart_ops
const struct no_os_uart_platform_ops xil_uart_ops
Xilinx platform specific UART platform ops structure.
Definition: xilinx_uart.c:520
AD5766_DISABLE
@ AD5766_DISABLE
Definition: ad5766.h:97
iio_axi_adc_init_param::rx_adc
struct axi_adc * rx_adc
Definition: iio_axi_adc.h:79
axi_adc_init
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
axi_dmac_init
int32_t axi_dmac_init(struct axi_dmac **dmac_core, const struct axi_dmac_init *init)
Definition: axi_dmac.c:334
RX_CORE_BASEADDR
#define RX_CORE_BASEADDR
Definition: parameters.h:63
ad6676_init_param::ext_l
uint8_t ext_l
Definition: ad6676.h:308
NULL
#define NULL
Definition: wrapper.h:64
no_os_uart_init_param
Structure holding the parameters for UART initialization.
Definition: no_os_uart.h:110
ad6676_init_param::frames_per_multiframe
uint8_t frames_per_multiframe
Definition: ad6676.h:321
xil_spi_ops
const struct no_os_spi_platform_ops xil_spi_ops
Spi engine platform specific SPI platform ops structure.
Definition: xilinx_spi.c:453
SPI_DEVICE_ID
#define SPI_DEVICE_ID
Definition: parameters.h:69
spi_engine_init_param
Structure containing the init parameters needed by the SPI engine.
Definition: spi_engine.h:83
TESTGENMODE_PN9_SEQ
#define TESTGENMODE_PN9_SEQ
Definition: ad6676.h:201
init_param
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
iio_device
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
axi_jesd204_rx
Definition: axi_jesd204_rx.h:57
NO_OS_UART_PAR_NO
@ NO_OS_UART_PAR_NO
Definition: no_os_uart.h:77
spi_eng_platform_ops
const struct no_os_spi_platform_ops spi_eng_platform_ops
Spi engine platform specific SPI platform ops structure.
Definition: spi_engine.c:61
no_os_uart_init_param::device_id
uint8_t device_id
Definition: no_os_uart.h:112
axi_jesd204_rx.h
Driver for the Analog Devices AXI-JESD204-RX peripheral.
RX_JESD_BASEADDR
#define RX_JESD_BASEADDR
Definition: parameters.h:65
AD5766_CORE_BASEADDR
#define AD5766_CORE_BASEADDR
Definition: parameters.h:46
xil_gpio_init_param
Structure holding the initialization parameters for Xilinx platform specific GPIO parameters.
Definition: xilinx_gpio.h:64
TESTGENMODE_PN23_SEQ
#define TESTGENMODE_PN23_SEQ
Definition: ad6676.h:200
default_init_param
AD9361_InitParam default_init_param
Definition: main.c:183
TESTGENMODE_RAMP
#define TESTGENMODE_RAMP
Definition: ad6676.h:204
no_os_gpio.h
Header file of GPIO Interface.
jesd204_rx_init
JESD204B/C Receive Peripheral Initialization Structure.
Definition: axi_jesd204_rx.h:88
gpio_extra_param
struct xil_gpio_init_param gpio_extra_param
Definition: parameters.c:63
GPIO_PL
@ GPIO_PL
Definition: xilinx_gpio.h:54
axi_adc_pn_mon
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
axi_dmac_transfer_start
int32_t axi_dmac_transfer_start(struct axi_dmac *dmac, struct axi_dma_transfer *dma_transfer)
Definition: axi_dmac.c:385
UART_DEVICE_ID
#define UART_DEVICE_ID
Definition: parameters.h:52
ADXCVR_REFCLK_DIV2
#define ADXCVR_REFCLK_DIV2
Definition: axi_adxcvr.h:56
axi_jesd204_rx::name
const char * name
Definition: axi_jesd204_rx.h:59
ad6676_init_param::bw_hz
uint32_t bw_hz
Definition: ad6676.h:303
ad6676.h
Header file of AD6676 Driver.
AD5766_ZERO
@ AD5766_ZERO
Definition: ad5766.h:130
ad6676_setup
int32_t ad6676_setup(struct ad6676_dev **device, struct ad6676_init_param init_param)
Initialize the device.
Definition: ad6676.c:632
iio_uart_ip
struct no_os_uart_init_param iio_uart_ip
Definition: common_data.c:46
AD5766_DDR_BASEADDR
#define AD5766_DDR_BASEADDR
Definition: parameters.h:48
spi_engine_init_param::ref_clk_hz
uint32_t ref_clk_hz
Definition: spi_engine.h:85
NO_OS_SPI_MODE_0
@ NO_OS_SPI_MODE_0
Definition: no_os_spi.h:61
GPIO_ADC_RESETB
#define GPIO_ADC_RESETB
Definition: parameters.h:73
xilinx_spi.h
iio_axi_adc_get_dev_descriptor
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
no_os_gpio_direction_output
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
ad5766_init
int32_t ad5766_init(struct ad5766_dev **device, struct ad5766_init_param init_param)
Definition: ad5766.c:286
NO_OS_UART_CS_8
@ NO_OS_UART_CS_8
Definition: no_os_uart.h:66
iio_app_init_param::devices
struct iio_app_device * devices
Definition: iio_app.h:107
axi_dma_transfer::size
uint32_t size
Definition: axi_dmac.h:103
xil_gpio_init_param::type
enum xil_gpio_type type
Definition: xilinx_gpio.h:66
axi_adc_init::name
const char * name
Definition: axi_adc_core.h:145
AXI_ADC_PN9
@ AXI_ADC_PN9
Definition: axi_adc_core.h:157
axi_jesd204_rx_lane_clk_enable
int32_t axi_jesd204_rx_lane_clk_enable(struct axi_jesd204_rx *jesd)
JESD204 RX Lane Clock Enable.
Definition: axi_jesd204_rx.c:189
iio_app_init_param::nb_devices
uint32_t nb_devices
Definition: iio_app.h:109
ad6676_init_param
Definition: ad6676.h:299
axi_dmac
Definition: axi_dmac.h:110
adxcvr_init
int32_t adxcvr_init(struct adxcvr **ad_xcvr, const struct adxcvr_init *init)
adxcvr_init
Definition: altera_adxcvr.c:438
no_os_spi_init_param
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140
AXI_ADC_PN23
@ AXI_ADC_PN23
Definition: axi_adc_core.h:161