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

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

#include <stdbool.h>
#include "iio.h"
#include "ltm4700.h"
Include dependency graph for iio_ltm4700.h:

Classes

struct  ltm4700_iio_desc
 Structure holding the LTM4700 IIO device descriptor. More...
 
struct  ltm4700_iio_desc_init_param
 Structure holding the LTM4700 IIO initialization parameter. More...
 

Enumerations

enum  ltm4700_iio_attr_id {
  LTM4700_IIO_VIN ,
  LTM4700_IIO_IIN ,
  LTM4700_IIO_VOUT ,
  LTM4700_IIO_IOUT ,
  LTM4700_IIO_TEMP_EXT ,
  LTM4700_IIO_TEMP_IC ,
  LTM4700_IIO_FREQ ,
  LTM4700_IIO_POUT ,
  LTM4700_IIO_PIN ,
  LTM4700_IIO_VOUT_COMMAND ,
  LTM4700_IIO_VOUT_MAX ,
  LTM4700_IIO_VOUT_MARGIN_HIGH ,
  LTM4700_IIO_VOUT_MARGIN_LOW ,
  LTM4700_IIO_OPERATION ,
  LTM4700_IIO_CLEAR_PEAKS ,
  LTM4700_IIO_DEVICE_ID
}
 

Functions

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

Detailed Description

Header 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_attr_id

Enumerator
LTM4700_IIO_VIN 
LTM4700_IIO_IIN 
LTM4700_IIO_VOUT 
LTM4700_IIO_IOUT 
LTM4700_IIO_TEMP_EXT 
LTM4700_IIO_TEMP_IC 
LTM4700_IIO_FREQ 
LTM4700_IIO_POUT 
LTM4700_IIO_PIN 
LTM4700_IIO_VOUT_COMMAND 
LTM4700_IIO_VOUT_MAX 
LTM4700_IIO_VOUT_MARGIN_HIGH 
LTM4700_IIO_VOUT_MARGIN_LOW 
LTM4700_IIO_OPERATION 
LTM4700_IIO_CLEAR_PEAKS 
LTM4700_IIO_DEVICE_ID 

Function Documentation

◆ ltm4700_iio_init()

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

Initialize the LTM4700 IIO driver.

Parameters
iio_desc- Pointer to IIO descriptor pointer
init_param- Initialization parameters
Returns
0 in case of success, negative error code otherwise

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- IIO descriptor to free
Returns
0 in case of success, negative error code otherwise
Parameters
desc- The iio device descriptor.
Returns
0 in case of success, an error code otherwise.