Implementation of IIO ADMT4000 driver.
More...
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include "iio_admt4000.h"
#include "admt4000.h"
#include "iio.h"
#include "iio_trigger.h"
#include "no_os_alloc.h"
#include "no_os_delay.h"
#include "no_os_gpio.h"
#include "no_os_util.h"
Implementation of IIO ADMT4000 driver.
- Author
- Kister Genesis Jimenez (kiste.nosp@m.r.ji.nosp@m.menez.nosp@m.@ana.nosp@m.log.c.nosp@m.om)
Copyright 2026(c) Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
◆ ADMT4000_GPIO_RAW_ATTR
| #define ADMT4000_GPIO_RAW_ATTR |
( |
| _gpio_num | ) |
|
Value: {\
.name = "gpio" # _gpio_num "_raw",\
.priv = _gpio_num,\
.show = admt4000_iio_read_gpio_raw,\
.store = admt4000_iio_write_gpio_raw \
}
◆ admt4000_iio_init()
Initializes the ADMT4000 IIO driver.
- Parameters
-
| iio_dev | - The iio device structure. |
| init_param | - Parameters for the initialization of iio_dev |
- Returns
- 0 in case of success, errno errors otherwise
◆ admt4000_iio_remove()
Free resources allocated by the init function.
- Parameters
-
| desc | - The iio device structure. |
- Returns
- 0 in case of success, errno errors otherwise