no-OS
Classes | Macros | Functions | Variables
iio_ad7091r8.h File Reference

Header file of IIO AD7091R8 driver header file. More...

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

Go to the source code of this file.

Classes

struct  ad7091r8_iio_dev
 AD7091r8 IIO device descriptor structure. More...
 
struct  ad7091r8_iio_dev_init_param
 AD7091r8 IIO device initial parameters structure. More...
 

Macros

#define ad7091r8_iio_device(chans)
 

Functions

int ad7091r8_iio_init (struct ad7091r8_iio_dev **iio_dev, struct ad7091r8_iio_dev_init_param *init_param)
 Initializes the AD7091R8 IIO driver. More...
 
int ad7091r8_iio_remove (struct ad7091r8_iio_dev *desc)
 Free the resources allocated by ad7091r8_iio_init(). More...
 

Variables

struct iio_trigger ad7091r8_iio_timer_trig_desc
 

Detailed Description

Header file of IIO AD7091R8 driver header file.

Author
Marcelo Schmitt (marce.nosp@m.lo.s.nosp@m.chmit.nosp@m.t@an.nosp@m.alog..nosp@m.com)

Copyright 2024(c) Analog Devices, Inc.

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

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 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

◆ ad7091r8_iio_device

#define ad7091r8_iio_device (   chans)
Value:
{ \
.num_ch = NO_OS_ARRAY_SIZE(chans), \
.channels = chans, \
.pre_enable = (int32_t (*)())ad7091r8_buffer_preenable, \
.trigger_handler = (int32_t (*)())ad7091r8_trigger_handler, \
.debug_reg_read = (int32_t (*)())ad7091r8_iio_read_reg, \
.debug_reg_write = (int32_t (*)())ad7091r8_iio_write_reg \
}

Function Documentation

◆ ad7091r8_iio_init()

int ad7091r8_iio_init ( struct ad7091r8_iio_dev **  iio_dev,
struct ad7091r8_iio_dev_init_param init_param 
)

Initializes the AD7091R8 IIO driver.

Function to be called to initialize a AD7091R-2/-4/-8 device.

Parameters
iio_dev- The iio device structure.
init_param- The structure that contains the device initial parameters.
Returns
ret - Result of the initialization procedure.
Here is the caller graph for this function:

◆ ad7091r8_iio_remove()

int ad7091r8_iio_remove ( struct ad7091r8_iio_dev desc)

Free the resources allocated by ad7091r8_iio_init().

Function to be called to remove a AD7091R-2/-4/-8 device.

Parameters
desc- The IIO device structure.
Returns
ret - Result of the remove procedure.

Variable Documentation

◆ ad7091r8_iio_timer_trig_desc

struct iio_trigger ad7091r8_iio_timer_trig_desc
NO_OS_ARRAY_SIZE
#define NO_OS_ARRAY_SIZE(x)
Definition: no_os_util.h:49