no-OS
Classes | Functions
iio_adt7420.h File Reference

Header file of IIO ADT7420 Driver. More...

#include <stdint.h>
#include <stdlib.h>
#include "iio.h"
Include dependency graph for iio_adt7420.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  adt7420_iio_dev
 iio device descriptor. More...
 
struct  adt7420_iio_init_param
 Configuration structure. More...
 

Functions

int adt7420_iio_init (struct adt7420_iio_dev **iio_dev, struct adt7420_iio_init_param *init_param)
 Initializes the adt7420 IIO driver. More...
 
int adt7420_iio_remove (struct adt7420_iio_dev *desc)
 Free the resources allocated by adt7420_iio_init(). More...
 

Detailed Description

Header file of IIO ADT7420 Driver.

Author
RNechita (ramon.nosp@m.a.ne.nosp@m.chita.nosp@m.@ana.nosp@m.log.c.nosp@m.om)

Copyright 2022(c) Analog Devices, Inc.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Function Documentation

◆ adt7420_iio_init()

int adt7420_iio_init ( struct adt7420_iio_dev **  iio_dev,
struct adt7420_iio_init_param init_param 
)

Initializes the adt7420 IIO driver.

Parameters
iio_dev- The iio device structure.
init_param- structure containing initial device parameters
Returns
ret - Result of the filling procedure.
Here is the caller graph for this function:

◆ adt7420_iio_remove()

int adt7420_iio_remove ( struct adt7420_iio_dev desc)

Free the resources allocated by adt7420_iio_init().

Parameters
desc- The IIO device structure.
Returns
ret - Result of the remove procedure.