Implementation of iio_ad4080.c.
More...
#include <stddef.h>
#include <errno.h>
#include "no_os_irq.h"
#include "iio.h"
#include "iio_types.h"
#include "ad4080.h"
Implementation of iio_ad4080.c.
- Author
- Niel Acuna (niel..nosp@m.acun.nosp@m.a@ana.nosp@m.log..nosp@m.com)
-
Marc Paolo Sosa (MarcP.nosp@m.aolo.nosp@m..Sosa.nosp@m.@ana.nosp@m.log.c.nosp@m.om)
Copyright 2025(c) Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
◆ AD4080_FIFO_TIMEOUT
| #define AD4080_FIFO_TIMEOUT 1440000000 |
◆ AD4080_IIO_APP_DEVICE_NAME_LEN
| #define AD4080_IIO_APP_DEVICE_NAME_LEN 16 |
◆ ad4080_device()
Checks if the given pointer is a valid AD4080 IIO descriptor.
Checks if the given pointer is a valid AD4080 IIO descriptor.
- Parameters
-
| iio_ad4080 | - The IIO AD4080 descriptor. |
| ad4080 | - Pointer to store the AD4080 device pointer. |
- Returns
- 0 on success, or an error code on failure.
◆ ad4080_iio_device()
Initializes the IIO device structure for the AD4080 device.
- Parameters
-
| iio_ad4080 | - The IIO AD4080 descriptor. |
| iio_device | - The IIO device structure to be initialized. |
- Returns
- 0 on success, or an error code on failure.
◆ iio_ad4080_fini()
teardown the ad4080 IIO driver
◆ iio_ad4080_init()
Initializes the IIO AD4080 descriptor.
- Parameters
-
| iio_ad4080 | - Pointer to store the initialized IIO AD4080 descriptor. |
| iio_ad4080_init_param | - Initialization parameters for the IIO AD4080 descriptor. |
- Returns
- 0 on success, or an error code on failure.