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"
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
◆ AD7091R8_CHANNEL
| #define AD7091R8_CHANNEL |
( |
| index | ) |
|
Value: { \
.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
◆ ad7091r8_iio_init()
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()
Free the resources allocated by ad7091r8_iio_init().
- Parameters
-
| desc | - The IIO device structure. |
- Returns
- ret - Result of the remove procedure.