precision-converters-firmware
|
Header for AD7134 No-OS driver supports. More...
#include <stdio.h>
#include <stdbool.h>
#include "ad713x.h"
Go to the source code of this file.
Macros | |
#define | AD7134_CONV_TIMEOUT 10000 |
#define | AD713X_DEV_CONFIG_PWR_MODE_RD(x) (((x) >> 1) & 0x1) |
#define | AD713X_DATA_PACKET_CONFIG_FRAME_RD(x) (((x) >> 4) & 0x7) |
#define | AD713X_DATA_PACKET_CONFIG_DCLK_FREQ_MODE_RD(x) (((x) >> 0) & 0xF) |
#define | AD713X_DIG_INT_CONFIG_FORMAT_MODE_RD(x) (((x) >> 0) & 0x3) |
#define | AD713X_DIGFILTER_SEL_CH_MODE_RD(x, ch) (((x) >> (2 * ch)) & 0x3) |
Functions | |
int32_t | ad7134_data_capture_init (struct ad713x_dev *dev) |
Perform the data capture initialization. More... | |
int32_t | ad7134_read_data (uint16_t *adc_data, uint8_t curr_chn) |
Read ADC data over DOUT0 and DOUT1 pins using bit-banging method. More... | |
int32_t | ad7134_perform_conv_and_read_sample (uint8_t input_chn, uint16_t *adc_data) |
Read ADC single sample data. More... | |
int32_t | ad7134_read_all_channels (uint16_t *chn_data) |
Read all chahnnels over DOUT0 and DOUT1 pins using bit-banging method. More... | |
Header for AD7134 No-OS driver supports.
Copyright (c) 2020, 2023 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 AD7134_CONV_TIMEOUT 10000 |
#define AD713X_DATA_PACKET_CONFIG_DCLK_FREQ_MODE_RD | ( | x | ) | (((x) >> 0) & 0xF) |
#define AD713X_DATA_PACKET_CONFIG_FRAME_RD | ( | x | ) | (((x) >> 4) & 0x7) |
#define AD713X_DEV_CONFIG_PWR_MODE_RD | ( | x | ) | (((x) >> 1) & 0x1) |
#define AD713X_DIG_INT_CONFIG_FORMAT_MODE_RD | ( | x | ) | (((x) >> 0) & 0x3) |
#define AD713X_DIGFILTER_SEL_CH_MODE_RD | ( | x, | |
ch | |||
) | (((x) >> (2 * ch)) & 0x3) |
int32_t ad7134_data_capture_init | ( | struct ad713x_dev * | dev | ) |
Perform the data capture initialization.
dev[in] | - AD7134 Device descriptor. |
This function configures the AD7134 registers to capture the data
int32_t ad7134_perform_conv_and_read_sample | ( | uint8_t | input_chn, |
uint16_t * | adc_data | ||
) |
Read ADC single sample data.
input_chn[in] | - Channel for which data is to read |
adc_data[out] | - Pointer to adc data read variable |
int32_t ad7134_read_all_channels | ( | uint16_t * | chn_data | ) |
Read all chahnnels over DOUT0 and DOUT1 pins using bit-banging method.
chn_data[out] | - Pointer to adc data read variable |
int32_t ad7134_read_data | ( | uint16_t * | adc_data, |
uint8_t | curr_chn | ||
) |
Read ADC data over DOUT0 and DOUT1 pins using bit-banging method.
adc_data[out] | - Pointer to adc data read variable |
curr_chn[in] | - Channel for which data is to read |