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

Implementation of IIO AD7091R8 Driver. More...

#include <stdlib.h>
#include <stdio.h>
#include "no_os_error.h"
#include "no_os_util.h"
#include "iio_ad7091r8.h"
#include "ad7091r8.h"
#include "no_os_units.h"
#include "no_os_alloc.h"
Include dependency graph for iio_ad7091r8.c:

Macros

#define AD7091R8_CHANNEL(index)
 

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().
 

Detailed Description

Implementation of IIO AD7091R8 Driver.

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_CHANNEL

#define AD7091R8_CHANNEL ( index)
Value:
{ \
.ch_type = IIO_VOLTAGE, \
.indexed = 1, \
.channel = index, \
.scan_type = &ad7091r8_iio_scan_type, \
.scan_index = index, \
.attributes = ad7091r8_iio_attrs, \
.ch_out = false \
}
@ IIO_VOLTAGE
Definition iio_types.h:33

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.

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().

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