no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
iio_ltc7841.h
Go to the documentation of this file.
1/***************************************************************************/
33
34#ifndef IIO_LTC7841_H
35#define IIO_LTC7841_H
36
37#include <stdbool.h>
38#include "iio.h"
39#include "ltc7841.h"
40
41#define CHANNEL_COUNT 2
42#define SCALED_VOLTAGE 50 /* in units of uV/bit */
43#define DECIMAL_POINT_SCALE_VOLTAGE 10000
44
52
58 /* Rsense value used in units of milliOhm*/
60};
61
65
67int ltc7841_iio_remove(struct ltc7841_iio_desc * desc);
68
69#endif /* IIO_LTC7841_H */
struct ad7616_init_param init_param
Definition ad7616_sdz.c:107
Header file of iio.
int ltc7841_iio_init(struct ltc7841_iio_desc **iio_desc, struct ltc7841_iio_desc_init_param *init_param)
Initializes the LTC7841 IIO descriptor.
Definition iio_ltc7841.c:98
int ltc7841_iio_remove(struct ltc7841_iio_desc *desc)
Free resources allocated by the init function.
Definition iio_ltc7841.c:134
Header file of LTC7841 Driver.
Definition iio.c:192
Structure holding channels and attributes of a device.
Definition iio_types.h:238
Structure holding the LTC7841 IIO initialization parameter.
Definition iio_ltc7841.h:56
uint8_t LTC7841_rsense_value
Definition iio_ltc7841.h:59
struct ltc7841_init_param * ltc7841_init_param
Definition iio_ltc7841.h:57
Structure holding the LTC7841 IIO device descriptor.
Definition iio_ltc7841.h:48
struct ltc7841_desc * ltc7841_desc
Definition iio_ltc7841.h:49
struct iio_device * iio_dev
Definition iio_ltc7841.h:50