no-OS
Loading...
Searching...
No Matches
iio_ltm4700.c File Reference

Source file for the LTM4700 IIO Driver. More...

#include <stdio.h>
#include <string.h>
#include <errno.h>
#include "no_os_alloc.h"
#include "no_os_error.h"
#include "no_os_units.h"
#include "no_os_util.h"
#include "ltm4700.h"
#include "iio_ltm4700.h"
#include "iio_types.h"
Include dependency graph for iio_ltm4700.c:

Enumerations

enum  ltm4700_iio_chan_type {
  LTM4700_IIO_VOUT_0_CHAN ,
  LTM4700_IIO_IOUT_0_CHAN ,
  LTM4700_IIO_VOUT_1_CHAN ,
  LTM4700_IIO_IOUT_1_CHAN ,
  LTM4700_IIO_VIN_CHAN ,
  LTM4700_IIO_IIN_CHAN ,
  LTM4700_IIO_TEMP_EXT_CHAN ,
  LTM4700_IIO_TEMP_IC_CHAN ,
  LTM4700_IIO_FREQ_CHAN ,
  LTM4700_IIO_PIN_CHAN ,
  LTM4700_IIO_POUT_0_CHAN ,
  LTM4700_IIO_POUT_1_CHAN
}
 

Functions

int ltm4700_iio_init (struct ltm4700_iio_desc **iio_desc, struct ltm4700_iio_desc_init_param *init_param)
 Initializes the LTM4700 IIO driver.
 
int ltm4700_iio_remove (struct ltm4700_iio_desc *desc)
 Free resources allocated by the init function.
 

Detailed Description

Source file for the LTM4700 IIO Driver.

Author
Carlos Jones Jr (carlo.nosp@m.sjr..nosp@m.jones.nosp@m.@ana.nosp@m.log.c.nosp@m.om)

Copyright 2026(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Enumeration Type Documentation

◆ ltm4700_iio_chan_type

Enumerator
LTM4700_IIO_VOUT_0_CHAN 
LTM4700_IIO_IOUT_0_CHAN 
LTM4700_IIO_VOUT_1_CHAN 
LTM4700_IIO_IOUT_1_CHAN 
LTM4700_IIO_VIN_CHAN 
LTM4700_IIO_IIN_CHAN 
LTM4700_IIO_TEMP_EXT_CHAN 
LTM4700_IIO_TEMP_IC_CHAN 
LTM4700_IIO_FREQ_CHAN 
LTM4700_IIO_PIN_CHAN 
LTM4700_IIO_POUT_0_CHAN 
LTM4700_IIO_POUT_1_CHAN 

Function Documentation

◆ ltm4700_iio_init()

int ltm4700_iio_init ( struct ltm4700_iio_desc ** iio_desc,
struct ltm4700_iio_desc_init_param * init_param )

Initializes the LTM4700 IIO driver.

Initialize the LTM4700 IIO driver.

Parameters
iio_desc- The iio device descriptor.
init_param- The structure that contains the device initial parameters.
Returns
0 in case of success, an error code otherwise.

◆ ltm4700_iio_remove()

int ltm4700_iio_remove ( struct ltm4700_iio_desc * desc)

Free resources allocated by the init function.

Parameters
desc- The iio device descriptor.
Returns
0 in case of success, an error code otherwise.