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

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

#include <stdbool.h>
#include "iio.h"
#include "lt7170.h"
Include dependency graph for iio_lt7170.h:

Classes

struct  lt7170_iio_desc
 Structure holding the LT7170 IIO device descriptor. More...
 
struct  lt7170_iio_desc_init_param
 Structure holding the LT7170 IIO initialization parameter. More...
 

Functions

int lt7170_iio_init (struct lt7170_iio_desc **, struct lt7170_iio_desc_init_param *)
 Initializes the LT7170 IIO descriptor.
 
int lt7170_iio_remove (struct lt7170_iio_desc *)
 Free resources allocated by the init function.
 

Detailed Description

Header file for the LT7170 IIO Driver.

Author
Cherrence Sarip (cherr.nosp@m.ence.nosp@m..sari.nosp@m.p@an.nosp@m.alog..nosp@m.com)

Copyright 2024(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Function Documentation

◆ lt7170_iio_init()

int lt7170_iio_init ( struct lt7170_iio_desc ** iio_desc,
struct lt7170_iio_desc_init_param * init_param )

Initializes the LT7170 IIO descriptor.

Initializes the LT7170 IIO descriptor.

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.

◆ lt7170_iio_remove()

int lt7170_iio_remove ( struct lt7170_iio_desc * iio_desc)

Free resources allocated by the init function.

Free resources allocated by the initialization function.

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