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

IIO Header file of LM75 Driver. More...

#include "lm75.h"
#include "iio_types.h"
Include dependency graph for iio_lm75.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  iio_lm75
 

Macros

#define LM75_UPDATE_INTERVAL   100
 
#define LM75_CH_ATTRIBUTE_INPUT   0
 
#define LM75_CH_ATTRIBUTE_MAX   1
 
#define LM75_CH_ATTRIBUTE_HYST   2
 

Functions

int iio_lm75_init (struct iio_lm75 **iio_lm75pp, struct lm75_dev *dev)
 Allocate and initialize resources used by LM75 IIO driver.
 
int iio_lm75_remove (struct iio_lm75 *iio_lm75)
 Release resources used by LM75 IIO driver back to system.
 

Detailed Description

IIO Header file of LM75 Driver.

Author
Niel Acuna (niel..nosp@m.acun.nosp@m.a@ana.nosp@m.log..nosp@m.com)

Copyright 2026(c) Analog Devices, Inc.

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

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 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.

Macro Definition Documentation

◆ LM75_CH_ATTRIBUTE_HYST

#define LM75_CH_ATTRIBUTE_HYST   2

◆ LM75_CH_ATTRIBUTE_INPUT

#define LM75_CH_ATTRIBUTE_INPUT   0

◆ LM75_CH_ATTRIBUTE_MAX

#define LM75_CH_ATTRIBUTE_MAX   1

◆ LM75_UPDATE_INTERVAL

#define LM75_UPDATE_INTERVAL   100

Function Documentation

◆ iio_lm75_init()

int iio_lm75_init ( struct iio_lm75 ** iio_lm75pp,
struct lm75_dev * dev )

Allocate and initialize resources used by LM75 IIO driver.

Parameters
[out]iio_lm75pppointer to lm75 iio device descriptor pointer.
[in]devlm75 device descriptor.
Returns
0 on success
-EINVAL if any one parameter is NULL
-ENOMEM when memory allocation failed
Here is the caller graph for this function:

◆ iio_lm75_remove()

int iio_lm75_remove ( struct iio_lm75 * iio_lm75)

Release resources used by LM75 IIO driver back to system.

Parameters
[in]iio_lm75lm75 iio device descriptor.
Returns
0 on success
-EINVAL if iio_lm75 is NULL
Here is the caller graph for this function: