Implementation of AD5791 IIO Driver.
More...
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "iio_ad5791.h"
#include "no_os_error.h"
#include "no_os_alloc.h"
Implementation of AD5791 IIO Driver.
- Author
- Andrei Drimbarean (andre.nosp@m.i.dr.nosp@m.imbar.nosp@m.ean@.nosp@m.analo.nosp@m.g.co.nosp@m.m)
Copyright 2021(c) Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
◆ ad5791_iio_init()
Initialize the AD5791 IIO driver.
- Parameters
-
| iio_dev | - Pointer to the IIO driver handler. |
| init_param | - Pointer to the initialization structure. |
- Returns
- 0 in case of success, negative error code otherwise.
◆ ad5791_iio_remove()
Free memory allocated by ad5791_iio_init().
- Parameters
-
| desc | -Pointer to the driver handler. |
- Returns
- 0 in case of success, negative error code otherwise.
◆ iio_ad5791_device
Initial value:= {
.debug_attributes =
NULL,
.buffer_attributes =
NULL,
.debug_reg_read = ad5791_iio_reg_read,
.debug_reg_write = ad5791_iio_reg_write
}
#define AD5791_CH_NO
Definition iio_ad5791.h:18
Struct describing the scan type.
Definition iio_types.h:137
#define NULL
Definition wrapper.h:67