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 "no_os_uart.h"
#include "no_os_error.h"
#include "no_os_delay.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
 
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.

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,
  _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

Here is the caller graph for this function:

◆ iio_app_remove()

int iio_app_remove ( struct iio_app_desc app)

Remove resources allocated by the IIO application

Here is the caller graph for this function:

◆ iio_app_run()

int iio_app_run ( struct iio_app_desc app)

Start an IIO application

Here is the caller graph for this function: