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

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

#include <stdbool.h>
#include "iio.h"
#include "lt8722.h"
Include dependency graph for iio_lt8722.h:

Classes

struct  lt8722_iio_dev
 Structure holding the LT8722 IIO device descriptor. More...
 
struct  lt8722_iio_dev_init_param
 Structure holding the LT8722 IIO initalization parameter. More...
 

Functions

int lt8722_iio_init (struct lt8722_iio_dev **, struct lt8722_iio_dev_init_param *)
 Initializes the LT8722 IIO descriptor.
 
int lt8722_iio_remove (struct lt8722_iio_dev *)
 Free resources allocated by the init function.
 

Detailed Description

Header file for the LT8722 IIO Driver.

Author
Ramon Cristopher Calam (ramon.nosp@m.cris.nosp@m.tophe.nosp@m.r.ca.nosp@m.lam@a.nosp@m.nalo.nosp@m.g.com)

Copyright 2024(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Function Documentation

◆ lt8722_iio_init()

int lt8722_iio_init ( struct lt8722_iio_dev ** iio_dev,
struct lt8722_iio_dev_init_param * init_param )

Initializes the LT8722 IIO descriptor.

Initializes the LT8722 IIO descriptor.

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

◆ lt8722_iio_remove()

int lt8722_iio_remove ( struct lt8722_iio_dev * desc)

Free resources allocated by the init function.

Free resources allocated by the initialization function.

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