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

Header file of IIO ADMT4000 driver. More...

#include "iio.h"
#include "no_os_gpio.h"
Include dependency graph for iio_admt4000.h:

Classes

struct  admt4000_iio_dev
 ADMT4000 IIO device descriptor. More...
 
struct  admt4000_iio_dev_init_param
 ADMT4000 IIO initialization parameters. More...
 

Macros

#define ADMT4000_NUM_CHANNELS   6
 

Enumerations

enum  admt4000_iio_chan_type {
  ADMT4000_TURNS ,
  ADMT4000_ANGLE ,
  ADMT4000_TEMP ,
  ADMT4000_COSINE ,
  ADMT4000_SINE ,
  ADMT4000_RADIUS
}
 ADMT4000 IIO channels enumeration. More...
 

Functions

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

Variables

struct iio_trigger admt4000_iio_trig_desc
 

Detailed Description

Header file 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_NUM_CHANNELS

#define ADMT4000_NUM_CHANNELS   6

Enumeration Type Documentation

◆ admt4000_iio_chan_type

ADMT4000 IIO channels enumeration.

Enumerator
ADMT4000_TURNS 
ADMT4000_ANGLE 
ADMT4000_TEMP 
ADMT4000_COSINE 
ADMT4000_SINE 
ADMT4000_RADIUS 

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

Variable Documentation

◆ admt4000_iio_trig_desc

struct iio_trigger admt4000_iio_trig_desc
extern