no-OS
Classes | Macros | Functions
iio_app.h File Reference

Header file of iio_app. More...

#include "iio.h"
Include dependency graph for iio_app.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  iio_data_buffer
 
struct  iio_app_device
 

Macros

#define IIO_APP_DEVICE(_name, _dev, _dev_descriptor, _read_buff, _write_buff)
 

Functions

int32_t iio_app_run (struct iio_app_device *devices, int32_t len)
 Register devices and start an iio application. More...
 

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.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Macro Definition Documentation

◆ IIO_APP_DEVICE

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

Function Documentation

◆ iio_app_run()

int32_t iio_app_run ( struct iio_app_device devices,
int32_t  len 
)

Register devices and start an iio application.

Configuration for communication is done in parameters.h

Parameters
devices- is an array of devices to register to iiod
len- is the number of devices
Returns
0 on success, negative value otherwise
Here is the caller graph for this function: