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

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

#include "iio.h"
Include dependency graph for iio_ad7091r8.h:

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.
 
int ad7091r8_iio_remove (struct ad7091r8_iio_dev *desc)
 Free the resources allocated by ad7091r8_iio_init().
 

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.

SPDX-License-Identifier: BSD-3-Clause

Macro Definition Documentation

◆ ad7091r8_iio_device

#define ad7091r8_iio_device ( chans)
Value:
{ \
.num_ch = NO_OS_ARRAY_SIZE(chans), \
.channels = chans, \
.pre_enable = ad7091r8_buffer_preenable, \
.trigger_handler = ad7091r8_trigger_handler, \
.debug_reg_read = ad7091r8_iio_read_reg, \
.debug_reg_write = ad7091r8_iio_write_reg \
}
#define NO_OS_ARRAY_SIZE(x)
Definition no_os_util.h:27

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.

◆ 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
extern