precision-converters-firmware
|
AD7768-1 No-OS driver support file. More...
#include <string.h>
#include <stdlib.h>
#include "app_config.h"
#include "ad77681_iio.h"
#include "ad77681_support.h"
#include "no_os_error.h"
Macros | |
#define | AD77681_SAMPLE_DATA_BUFF_LEN 6 |
#define | AD77681_24_BITS_SIGN_EXTENSION 0xFFFFFF |
#define | AD77681_2_BYTES_SHIFT 16 |
#define | AD77681_1_BYTE_SHIFT 8 |
Functions | |
int32_t | ad77681_enable_cont_conv_mode (void) |
Enable continuous conversion mode. More... | |
int32_t | ad77681_read_converted_sample (uint32_t *adc_raw) |
Read ADC raw data for recently sampled channel. More... | |
int32_t | ad77681_read_single_sample (uint32_t *adc_raw) |
Read ADC single sample data. More... | |
AD7768-1 No-OS driver support file.
AD7768-1 No-OS driver support header file.
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.
#define AD77681_1_BYTE_SHIFT 8 |
#define AD77681_24_BITS_SIGN_EXTENSION 0xFFFFFF |
#define AD77681_2_BYTES_SHIFT 16 |
#define AD77681_SAMPLE_DATA_BUFF_LEN 6 |
int32_t ad77681_enable_cont_conv_mode | ( | void | ) |
Enable continuous conversion mode.
int32_t ad77681_read_converted_sample | ( | uint32_t * | adc_raw | ) |
Read ADC raw data for recently sampled channel.
adc_raw[in,out] | - Pointer to adc data read variable |
int32_t ad77681_read_single_sample | ( | uint32_t * | adc_raw | ) |
Read ADC single sample data.
adc_raw[out] | - Pointer to adc data read variable |