precision-converters-firmware
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ad4170_iio.h
Go to the documentation of this file.
1/***************************************************************************/
12#ifndef _AD4170_IIO_H_
13#define _AD4170_IIO_H_
14
15/******************************************************************************/
16/***************************** Include Files **********************************/
17/******************************************************************************/
18
19#include <stdio.h>
20#include <stdbool.h>
21
22#include "iio.h"
23#include "iio_types.h"
24
25/******************************************************************************/
26/************************ Macros/Constants ************************************/
27/******************************************************************************/
28
29/* ADC channels assigned to sensors for the measurement (each channel per sensor) */
37
38/******************************************************************************/
39/************************ Public Declarations *********************************/
40/******************************************************************************/
41
42/* AD4170 global device instance for accessing device specific APIs */
43extern struct ad4170_dev *p_ad4170_dev_inst;
44
45/* Init the IIO interface */
46int32_t ad4170_iio_initialize(void);
47
48/* Run the IIO event handler */
50
51#endif /* _AD4170_IIO_H_ */
sensor_channels
Definition ad4130_iio.h:30
@ SENSOR_CHANNEL1
Definition ad4170_iio.h:32
@ SENSOR_CHANNEL2
Definition ad4170_iio.h:33
@ NUM_OF_SENSOR_CHANNELS
Definition ad4170_iio.h:35
@ SENSOR_CHANNEL3
Definition ad4170_iio.h:34
@ SENSOR_CHANNEL0
Definition ad4170_iio.h:31
void ad4170_iio_event_handler(void)
Run the AD4170 IIO event handler.
Definition ad4170_iio.c:3038
struct ad4170_dev * p_ad4170_dev_inst
Definition ad4170_iio.c:130
int32_t ad4170_iio_initialize(void)
Initialize the IIO interface for AD4170 IIO device.
Definition ad4170_iio.c:2929