precision-converters-firmware
|
#include "ad777x_support.h"
#include "no_os_error.h"
#include "ad777x_iio.h"
#include "app_config.h"
#include "no_os_util.h"
Macros | |
#define | AD777x_DOUT_FORMAT_SELECT 0x2 |
#define | AD777x_DATA_BYTES 3 |
#define | SAR_CONV_DELAY_USEC 1 |
#define | SAR_ACQ_DELAY_USEC 1 |
Functions | |
int32_t | ad777x_raw_data_read (ad7779_dev *dev, uint8_t ch_num, uint32_t *sd_adc_code) |
Read the SD ADC Code. More... | |
int32_t | ad777x_read_all_channels (ad7779_dev *dev, uint32_t *sd_adc_code) |
Read the SD ADC Code of all channels. More... | |
int32_t | ad777x_enable_single_dout (ad7779_dev *dev) |
Enable single DOUT for all 8 channels. More... | |
int32_t | ad7779_sar_data_read (ad7779_dev *dev, ad7779_sar_mux mux, uint16_t *sar_code) |
Read SAR ADC data. More... | |
#define AD777x_DATA_BYTES 3 |
#define AD777x_DOUT_FORMAT_SELECT 0x2 |
#define SAR_ACQ_DELAY_USEC 1 |
#define SAR_CONV_DELAY_USEC 1 |
int32_t ad7779_sar_data_read | ( | ad7779_dev * | dev, |
ad7779_sar_mux | mux, | ||
uint16_t * | sar_code | ||
) |
Read SAR ADC data.
dev[in]- | Pointer to IIO device instance |
mux | [in] - SAR mux configuration |
sar_code | [out] - SAR ADC code |
int32_t ad777x_enable_single_dout | ( | ad7779_dev * | dev | ) |
Enable single DOUT for all 8 channels.
dev[in]- | Pointer to IIO device instance |
int32_t ad777x_raw_data_read | ( | ad7779_dev * | dev, |
uint8_t | ch_num, | ||
uint32_t * | sd_adc_code | ||
) |
Read the SD ADC Code.
dev[in]- | Pointer to IIO device instance |
ch_num[in] | - Channel Id (Number) |
sd_adc_code[out]- | ADC Raw data |
int32_t ad777x_read_all_channels | ( | ad7779_dev * | dev, |
uint32_t * | sd_adc_code | ||
) |
Read the SD ADC Code of all channels.
dev[in]- | Pointer to IIO device instance |
sd_adc_code[out]- | ADC Raw data |