no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
iio_ltc7871.h File Reference
#include <stdbool.h>
#include "iio.h"
#include "ltc7871.h"
Include dependency graph for iio_ltc7871.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ltc7871_iio_dev
 Structure holding the LTC7871 IIO device descriptor. More...
 
struct  ltc7871_iio_dev_init_param
 Structure holding the LTC7871 IIO initalization parameter. More...
 

Functions

int ltc7871_iio_init (struct ltc7871_iio_dev **iio_dev, struct ltc7871_iio_dev_init_param *init_param)
 Initializes the LTC7871 IIO descriptor.
 
int ltc7871_iio_remove (struct ltc7871_iio_dev *desc)
 Free resources allocated by the init function.
 

Function Documentation

◆ ltc7871_iio_init()

int ltc7871_iio_init ( struct ltc7871_iio_dev ** iio_dev,
struct ltc7871_iio_dev_init_param * init_param )

Initializes the LTC7871 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.
Here is the caller graph for this function:

◆ ltc7871_iio_remove()

int ltc7871_iio_remove ( struct ltc7871_iio_dev * desc)

Free resources allocated by the init function.

Parameters
desc- The iio device descriptor.
Returns
0 in case of success, an error code otherwise.
Here is the caller graph for this function: