#include <stdbool.h>
#include <stdint.h>
#include "ad7779.h"
Go to the source code of this file.
◆ AD777x_CONV_TIMEOUT
#define AD777x_CONV_TIMEOUT 10000 |
◆ ad7779_sar_data_read()
int32_t ad7779_sar_data_read |
( |
ad7779_dev * |
dev, |
|
|
ad7779_sar_mux |
mux, |
|
|
uint16_t * |
sar_code |
|
) |
| |
Read SAR ADC data.
- Parameters
-
dev[in]- | Pointer to IIO device instance |
mux | [in] - SAR mux configuration |
sar_code | [out] - SAR ADC code |
- Returns
- 0 in case of success, negative error code otherwise
◆ ad777x_enable_single_dout()
int32_t ad777x_enable_single_dout |
( |
ad7779_dev * |
dev | ) |
|
Enable single DOUT for all 8 channels.
- Parameters
-
dev[in]- | Pointer to IIO device instance |
- Returns
- 0 in case of success, negative error code otherwise
◆ ad777x_raw_data_read()
int32_t ad777x_raw_data_read |
( |
ad7779_dev * |
dev, |
|
|
uint8_t |
ch_num, |
|
|
uint32_t * |
sd_adc_code |
|
) |
| |
Read the SD ADC Code.
- Parameters
-
dev[in]- | Pointer to IIO device instance |
ch_num[in] | - Channel Id (Number) |
sd_adc_code[out]- | ADC Raw data |
- Returns
- 0 in case of success, negative error code otherwise
◆ ad777x_read_all_channels()
int32_t ad777x_read_all_channels |
( |
ad7779_dev * |
dev, |
|
|
uint32_t * |
sd_adc_code |
|
) |
| |
Read the SD ADC Code of all channels.
- Parameters
-
dev[in]- | Pointer to IIO device instance |
sd_adc_code[out]- | ADC Raw data |
- Returns
- 0 in case of success, negative error code otherwise