no-OS
Loading...
Searching...
No Matches
basic_example.c File Reference

Basic bring-up example for the AD9082 (VPK180) project. More...

#include "basic_example.h"
#include "common_data.h"
#include "parameters.h"
#include "app_config.h"
#include <stdio.h>
#include <inttypes.h>
#include "no_os_error.h"
#include "no_os_gpio.h"
#include "no_os_spi.h"
#include "xilinx_gpio.h"
#include "xilinx_spi.h"
#include "xil_cache.h"
#include "ad9081.h"
#include "axi_jesd204_rx.h"
#include "axi_jesd204_tx.h"
#include "axi_adc_core.h"
#include "axi_dac_core.h"
#include "axi_dmac.h"
Include dependency graph for basic_example.c:

Functions

int example_main (void)
 Basic example main execution.
 

Detailed Description

Basic bring-up example for the AD9082 (VPK180) project.

    Initializes the HMC7044 clocks, the AXI-JESD204 RX/TX cores and the
    AD9082 (ad9081 driver), runs the JESD204 FSM, and prints the link
    status.  No data is moved -- see the (future) dma/iio examples.
Author
Analog Devices, Inc.

Copyright 2026(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Function Documentation

◆ example_main()

int example_main ( void )

Basic example main execution.

Basic example main executiont.

Returns
0 on success, negative error code otherwise.

IIO descriptor and initialization parameter.

IIO app.

Declaring iio_devices structure

Initializing IIO app init param.

Initializing IIO app.

Running the IIO app (use iio_info or osc in terminal).

Set the threshold voltage to 5V

The comparator output will be available on the GPO_A pin

Set the DAC output on channel C to 5V

Measure input current on channel D