precision-converters-firmware
Enumerations | Functions | Variables
ad4170_iio.h File Reference

Header file of ad4170_iio. More...

#include <stdio.h>
#include <stdbool.h>
#include "iio.h"
#include "iio_types.h"
Include dependency graph for ad4170_iio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  sensor_channels {
  SENSOR_CHANNEL0 ,
  SENSOR_CHANNEL1 ,
  NUM_OF_SENSOR_CHANNELS ,
  SENSOR_CHANNEL0 ,
  SENSOR_CHANNEL1 ,
  SENSOR_CHANNEL2 ,
  SENSOR_CHANNEL3 ,
  NUM_OF_SENSOR_CHANNELS ,
  SENSOR_CHANNEL0 ,
  SENSOR_CHANNEL1 ,
  SENSOR_CHANNEL2 ,
  SENSOR_CHANNEL3 ,
  SENSOR_CHANNEL4 ,
  SENSOR_CHANNEL5 ,
  SENSOR_CHANNEL6 ,
  SENSOR_CHANNEL7 ,
  NUM_OF_SENSOR_CHANNELS
}
 

Functions

int32_t ad4170_iio_initialize (void)
 Initialize the IIO interface for AD4170 IIO device. More...
 
void ad4170_iio_event_handler (void)
 Run the AD4170 IIO event handler. More...
 

Variables

struct ad4170_dev * p_ad4170_dev_inst
 

Detailed Description

Header file of ad4170_iio.

Copyright (c) 2021-22 Analog Devices, Inc. All rights reserved.

This software is proprietary to Analog Devices, Inc. and its licensors. By using this software you agree to the terms of the associated Analog Devices Software License Agreement.

Enumeration Type Documentation

◆ sensor_channels

Enumerator
SENSOR_CHANNEL0 
SENSOR_CHANNEL1 
NUM_OF_SENSOR_CHANNELS 
SENSOR_CHANNEL0 
SENSOR_CHANNEL1 
SENSOR_CHANNEL2 
SENSOR_CHANNEL3 
NUM_OF_SENSOR_CHANNELS 
SENSOR_CHANNEL0 
SENSOR_CHANNEL1 
SENSOR_CHANNEL2 
SENSOR_CHANNEL3 
SENSOR_CHANNEL4 
SENSOR_CHANNEL5 
SENSOR_CHANNEL6 
SENSOR_CHANNEL7 
NUM_OF_SENSOR_CHANNELS 

Function Documentation

◆ ad4170_iio_event_handler()

void ad4170_iio_event_handler ( void  )

Run the AD4170 IIO event handler.

Returns
none

This function monitors the new IIO client event

Here is the caller graph for this function:

◆ ad4170_iio_initialize()

int32_t ad4170_iio_initialize ( void  )

Initialize the IIO interface for AD4170 IIO device.

Returns
none
0 in case of success, negative error code otherwise
Here is the caller graph for this function:

Variable Documentation

◆ p_ad4170_dev_inst

struct ad4170_dev* p_ad4170_dev_inst
extern

Pointer to the struct representing the AD4170 IIO device