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

Header file of iio_app. More...

#include "iio.h"
#include "no_os_irq.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)
 
#define IIO_APP_TRIGGER(_name, _trig, _trig_descriptor)
 

Functions

int32_t iio_app_run (struct iio_app_device *devices, uint32_t len)
 Register devices and start an iio application. More...
 
int32_t iio_app_run_with_trigs (struct iio_app_device *devices, uint32_t len, struct iio_trigger_init *trigs, int32_t nb_trigs, void *irq_desc, struct iio_desc **iio_desc)
 

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\
}

◆ IIO_APP_TRIGGER

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

Function Documentation

◆ iio_app_run()

int32_t iio_app_run ( struct iio_app_device devices,
uint32_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:

◆ iio_app_run_with_trigs()

int32_t iio_app_run_with_trigs ( struct iio_app_device devices,
uint32_t  len,
struct iio_trigger_init trigs,
int32_t  nb_trigs,
void *  irq_desc,
struct iio_desc **  iio_desc 
)
Here is the caller graph for this function: