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

IIO example header for eval-ad7616 project. More...

#include <stdio.h>
#include "common_data.h"
#include "iio.h"
#include "ad7616.h"
#include "iio_ad7616.h"
#include "no_os_util.h"
#include "no_os_gpio.h"
#include "no_os_print_log.h"
#include "iio_app.h"
Include dependency graph for iio_example.c:

Functions

int example_main ()
 IIO example main execution.
 

Variables

struct no_os_uart_desc * uart_desc
 

Detailed Description

IIO example header for eval-ad7616 project.

Author
Esteban Blanc (eblan.nosp@m.c@ba.nosp@m.ylibr.nosp@m.e.co.nosp@m.m)

Copyright 2024(c) Analog Devices, Inc. Copyright 2024(c) BayLibre, SAS.

SPDX-License-Identifier: BSD-3-Clause

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 the while(1) loop 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

Variable Documentation

◆ uart_desc

struct no_os_uart_desc* uart_desc
extern