no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
iio_ltc7871.h
Go to the documentation of this file.
1// /***************************************************************************//**
2// * @file iio_ltc7871.h
3// * @brief Header file for the LTC7871 IIO Driver
4// * @author Aldrin Abacan (aldrin.abacan@analog.com)
5// *******************************************************************************
6// * Copyright 2024(c) Analog Devices, Inc.
7// *
8// * Redistribution and use in source and binary forms, with or without
9// * modification, are permitted provided that the following conditions are met:
10// *
11// * 1. Redistributions of source code must retain the above copyright notice,
12// * this list of conditions and the following disclaimer.
13// *
14// * 2. Redistributions in binary form must reproduce the above copyright notice,
15// * this list of conditions and the following disclaimer in the documentation
16// * and/or other materials provided with the distribution.
17// *
18// * 3. Neither the name of Analog Devices, Inc. nor the names of its
19// * contributors may be used to endorse or promote products derived from this
20// * software without specific prior written permission.
21// *
22// * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR
23// * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
24// * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
25// * EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
26// * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27// * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
28// * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
29// * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30// * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
31// * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32// ******************************************************************************/
33
34#ifndef __IIO_LTC7871_H__
35#define __IIO_LTC7871_H__
36
37#include <stdbool.h>
38// #include "iio/iio.h"
39#include "iio.h"
40#include "ltc7871.h"
41
50
58
66int ltc7871_iio_init(struct ltc7871_iio_dev **iio_dev,
68
74int ltc7871_iio_remove(struct ltc7871_iio_dev *desc);
75
76#endif /* __IIO_LTC7871_H__ */
struct ad7616_init_param init_param
Definition ad7616_sdz.c:107
Header file of iio.
int ltc7871_iio_remove(struct ltc7871_iio_dev *desc)
Free resources allocated by the init function.
Definition iio_ltc7871.c:1476
int ltc7871_iio_init(struct ltc7871_iio_dev **iio_dev, struct ltc7871_iio_dev_init_param *init_param)
Initializes the LTC7871 IIO descriptor.
Definition iio_ltc7871.c:1441
Header file for the LTC7871 Driver.
Structure holding channels and attributes of a device.
Definition iio_types.h:238
Structure holding the LTC7871 IIO initalization parameter.
Definition iio_ltc7871.h:55
struct ltc7871_init_param * ltc7871_init_param
Definition iio_ltc7871.h:56
Structure holding the LTC7871 IIO device descriptor.
Definition iio_ltc7871.h:46
struct ltc7871_dev * ltc7871_dev
Definition iio_ltc7871.h:47
struct iio_device * iio_dev
Definition iio_ltc7871.h:48