precision-converters-firmware
Macros | Functions
ad717x_support.c File Reference

Support file for AD717X device configurations. More...

#include <string.h>
#include "ad717x_support.h"
#include "ad717x_iio.h"
#include "no_os_error.h"
#include "app_config.h"
#include "no_os_irq.h"
Include dependency graph for ad717x_support.c:

Macros

#define AD717x_CONV_TIMEOUT   10000
 

Functions

int32_t ad717x_enable_cont_read (ad717x_dev *device, bool cont_read_en)
 Enable/Disable continuous read mode. More...
 
int32_t ad717x_adc_read_converted_sample (uint32_t *adc_data)
 Read ADC raw data for recently sampled channel. More...
 

Detailed Description

Support file for AD717X device configurations.

Copyright (c) 2022 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

◆ AD717x_CONV_TIMEOUT

#define AD717x_CONV_TIMEOUT   10000

Function Documentation

◆ ad717x_adc_read_converted_sample()

int32_t ad717x_adc_read_converted_sample ( uint32_t *  adc_data)

Read ADC raw data for recently sampled channel.

Parameters
adc_data[out]- Pointer to adc data read variable
Returns
0 in case of success, negative error code otherwise
Note
This function is intended to call from the conversion end trigger event. Therefore, this function should just read raw ADC data without further monitoring conversion end event

◆ ad717x_enable_cont_read()

int32_t ad717x_enable_cont_read ( ad717x_dev *  device,
bool  cont_read_en 
)

Enable/Disable continuous read mode.

Parameters
device[in]- The AD717x Device descriptor
cont_read_en[in]- True in case of enable CONT_READ/ False in case of disable
Returns
0 in case of success, negative error code otherwise
Here is the caller graph for this function: