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

Implementation of IIO trigger example for AD4692 project. More...

#include "common_data.h"
#include "parameters.h"
#include "iio_ad4692.h"
#include "iio_app.h"
#include "iio_trigger.h"
#include "no_os_util.h"
#include "no_os_print_log.h"
Include dependency graph for iio_trigger_example.c:

Macros

#define DATA_BUFFER_SIZE   400
 

Functions

int example_main ()
 Basic example main executiont.
 

Variables

uint8_t iio_data_buffer [DATA_BUFFER_SIZE *16 *sizeof(uint32_t)]
 

Detailed Description

Implementation of IIO trigger example for AD4692 project.

Author
Radu Sabau (radu..nosp@m.saba.nosp@m.u@ana.nosp@m.log..nosp@m.com)

Copyright 2025(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Macro Definition Documentation

◆ DATA_BUFFER_SIZE

#define DATA_BUFFER_SIZE   400

Function Documentation

◆ example_main()

int example_main ( void )

Basic example main executiont.

Basic example main execution.

Returns
ret - Result of the example execution. If working correctly, will execute continuously the while(1) loop and will not return.

Basic example main executiont.

  • 50 ADC readings with delay.
  • Threshold event (non-blocking).
    Returns
    ret - Result of the example execution. If working correctly, will execute continuously the while(1) loop and will not return.
    Basic example main executiont.
Returns
ret - Result of the example execution. If working correctly, will execute print the sample data.

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).

Variable Documentation

◆ iio_data_buffer

uint8_t iio_data_buffer[DATA_BUFFER_SIZE *16 *sizeof(uint32_t)]