precision-converters-firmware
Macros | Functions | Variables
ad719x_iio.h File Reference

Header file for ad719x IIO interface. More...

#include "iio.h"
#include "iio_types.h"
#include "ad719x.h"
Include dependency graph for ad719x_iio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define REAL_BITS   ADC_RESOLUTION
 
#define STORAGE_BITS   32
 
#define MODE_BIT_POSTION   21
 
#define BPDSW_BIT_POSTION   6
 
#define CNV_START_CMD   0x5C
 
#define CNV_STOP_CMD   0x58
 
#define BYTES_TRANSFER_THREE   3
 
#define AD719X_CHN_SHIFT   4
 

Functions

int32_t ad719x_iio_initialize (void)
 Initialize the ad719x IIO Interface. More...
 
void ad719x_iio_event_handler (void)
 Run the ad719x IIO event handler. More...
 

Variables

struct ad719x_dev * p_ad719x_dev_inst
 

Detailed Description

Header file for ad719x IIO interface.

Copyright (c) 2021-22,2024 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.

Macro Definition Documentation

◆ AD719X_CHN_SHIFT

#define AD719X_CHN_SHIFT   4

◆ BPDSW_BIT_POSTION

#define BPDSW_BIT_POSTION   6

◆ BYTES_TRANSFER_THREE

#define BYTES_TRANSFER_THREE   3

◆ CNV_START_CMD

#define CNV_START_CMD   0x5C

◆ CNV_STOP_CMD

#define CNV_STOP_CMD   0x58

◆ MODE_BIT_POSTION

#define MODE_BIT_POSTION   21

◆ REAL_BITS

#define REAL_BITS   ADC_RESOLUTION

◆ STORAGE_BITS

#define STORAGE_BITS   32

Function Documentation

◆ ad719x_iio_event_handler()

void ad719x_iio_event_handler ( void  )

Run the ad719x IIO event handler.

Returns
None
Here is the caller graph for this function:

◆ ad719x_iio_initialize()

int32_t ad719x_iio_initialize ( void  )

Initialize the ad719x IIO Interface.

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

Variable Documentation

◆ p_ad719x_dev_inst

struct ad719x_dev* p_ad719x_dev_inst
extern