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

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"
Include dependency graph for iio_admt4000.c:

Macros

#define ADMT4000_GPIO_RAW_ATTR(_gpio_num)
 

Functions

int admt4000_iio_init (struct admt4000_iio_dev **iio_dev, struct admt4000_iio_dev_init_param *init_param)
 Initializes the ADMT4000 IIO driver.
 
int admt4000_iio_remove (struct admt4000_iio_dev *desc)
 Free resources allocated by the init function.
 

Detailed Description

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

Macro Definition Documentation

◆ 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 \
}

Function Documentation

◆ admt4000_iio_init()

int admt4000_iio_init ( struct admt4000_iio_dev ** iio_dev,
struct admt4000_iio_dev_init_param * init_param )

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

int admt4000_iio_remove ( struct admt4000_iio_dev * desc)

Free resources allocated by the init function.

Parameters
desc- The iio device structure.
Returns
0 in case of success, errno errors otherwise