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:

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.

SPDX-License-Identifier: BSD-3-Clause

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

◆ 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