Example Program for EVAL-AD7606

Dependencies:   platform_drivers

Embed: (wiki syntax)

« Back to documentation index

ad7606_support.h File Reference

ad7606_support.h File Reference

Header for AD7606 No-OS driver supports. More...

Go to the source code of this file.

Functions

float convert_adc_raw_to_voltage (int32_t adc_raw, float scale)
 Function to convert adc raw data into equivalent voltage.
int32_t ad7606_read_conversion_data (struct ad7606_dev *dev, uint8_t bytes)
 Read the num_of_bytes from previous conversion.
polarity_e ad7606_get_input_polarity (uint8_t chn_range_bits)
 Function to get the polarity of analog input.

Detailed Description

Header for AD7606 No-OS driver supports.

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

Definition in file ad7606_support.h.


Function Documentation

polarity_e ad7606_get_input_polarity ( uint8_t  chn_range_bits )

Function to get the polarity of analog input.

Parameters:
chn_range_bits[in]- Bits from the channel range register
Returns:
UNIPOLAR or BIPOLAR

Definition at line 60 of file ad7606_support.c.

int32_t ad7606_read_conversion_data ( struct ad7606_dev *  dev,
uint8_t  num_of_bytes 
)

Read the num_of_bytes from previous conversion.

Parameters:
dev[in]-Device instance
num_of_bytes[in]- Number of bytes to read from previous conversion
Returns:
SUCCESS in case of success, FAILURE otherwise

Definition at line 81 of file ad7606_support.c.

float convert_adc_raw_to_voltage ( int32_t  adc_raw,
float  scale 
)

Function to convert adc raw data into equivalent voltage.

Parameters:
adc_raw[in]- ADC raw data
scale[in]- ADC raw to voltage conversion scale
Returns:
equivalent voltage

Definition at line 42 of file ad7606_support.c.