no-OS
Loading...
Searching...
No Matches
iio_app.h File Reference

Header file of iio_app. More...

#include "iio.h"
#include "no_os_irq.h"
#include "no_os_uart.h"
#include "no_os_error.h"
#include "no_os_delay.h"
Include dependency graph for iio_app.h:

Classes

struct  iio_data_buffer
 
struct  iio_app_device
 
struct  iio_app_desc
 IIO application descriptor. More...
 
struct  iio_app_init_param
 IIO application descriptor initialization parameters. More...
 

Macros

#define IIO_APP_DEVICE(_name, _dev, _dev_descriptor, _read_buff, _write_buff, _default_trigger_id)
 
#define IIO_APP_TRIGGER(_name, _trig, _trig_descriptor)
 

Functions

int iio_app_init (struct iio_app_desc **app, struct iio_app_init_param app_init_param)
 
int iio_app_run (struct iio_app_desc *app)
 
int iio_app_remove (struct iio_app_desc *app)
 

Detailed Description

Header file of iio_app.

Author
Mihail Chindris (mihai.nosp@m.l.ch.nosp@m.indri.nosp@m.s@an.nosp@m.alog..nosp@m.com)

Copyright 2013(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Macro Definition Documentation

◆ IIO_APP_DEVICE

#define IIO_APP_DEVICE ( _name,
_dev,
_dev_descriptor,
_read_buff,
_write_buff,
_default_trigger_id )
Value:
{\
.name = _name,\
.dev = _dev,\
.dev_descriptor = _dev_descriptor,\
.read_buff = _read_buff,\
.write_buff = _write_buff,\
.default_trigger_id = _default_trigger_id\
}

◆ IIO_APP_TRIGGER

#define IIO_APP_TRIGGER ( _name,
_trig,
_trig_descriptor )
Value:
{\
.name = _name,\
.trig = _trig,\
.descriptor = _trig_descriptor,\
}

Function Documentation

◆ iio_app_init()

int iio_app_init ( struct iio_app_desc ** app,
struct iio_app_init_param app_init_param )

Register devices for an IIO application

◆ iio_app_remove()

int iio_app_remove ( struct iio_app_desc * app)

Remove resources allocated by the IIO application

◆ iio_app_run()

int iio_app_run ( struct iio_app_desc * app)

Start an IIO application