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

Implementation of IIO example for adf5611 project. More...

#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "iio_adf5611.h"
#include "common_data.h"
#include "no_os_print_log.h"
#include "iio_app.h"
Include dependency graph for iio_example.c:

Macros

#define BOARD_NAME_SUPPORT   1
 

Functions

int example_main ()
 IIO example main execution.
 

Detailed Description

Implementation of IIO example for adf5611 project.

Author
Josemene (jude..nosp@m.osem.nosp@m.ene@a.nosp@m.nalo.nosp@m.g.com)

Copyright 2024(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Macro Definition Documentation

◆ BOARD_NAME_SUPPORT

#define BOARD_NAME_SUPPORT   1

Function Documentation

◆ example_main()

int example_main ( void )

IIO example main execution.

Basic example main execution.

Basic example main executiont.

Returns
ret - Result of the example execution. If working correctly, will execute continuously function iio_app_run and will not return.

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

GPIO Pin Interrupt Controller