precision-converters-firmware
ad7689_support.h
Go to the documentation of this file.
1 /***************************************************************************/
13 #ifndef _AD7689_SUPPORT_H_
14 #define _AD7689_SUPPORT_H_
15 
16 /******************************************************************************/
17 /***************************** Include Files **********************************/
18 /******************************************************************************/
19 
20 #include <stdint.h>
21 #include "app_config.h"
22 
23 /******************************************************************************/
24 /********************** Macros and Constants Definition ***********************/
25 /******************************************************************************/
26 
27 /******************************************************************************/
28 /********************** Variables and User Defined Data Types *****************/
29 /******************************************************************************/
30 
31 /******************************************************************************/
32 /************************ Public Declarations *********************************/
33 /******************************************************************************/
34 
35 int32_t ad7689_read_single_sample(uint8_t input_chn, uint32_t *raw_data);
36 int32_t ad7689_perform_init_cnv(uint8_t first_active_chn,
37  uint8_t second_active_chn, uint8_t num_of_active_channels);
38 int32_t ad7689_read_converted_sample(uint8_t *adc_data, uint8_t next_chn);
39 
40 #endif /* _AD7689_SUPPORT_H_ */
int32_t ad7689_read_converted_sample(uint8_t *adc_data, uint8_t next_chn)
Read ADC raw data for recently sampled channel and trigger new conversion.
Definition: ad7689_support.c:126
int32_t ad7689_read_single_sample(uint8_t input_chn, uint32_t *raw_data)
Read the single ADC sample (raw data) for input channel.
Definition: ad7689_support.c:57
int32_t ad7689_perform_init_cnv(uint8_t first_active_chn, uint8_t second_active_chn, uint8_t num_of_active_channels)
Perform the 2 dummy conversions after device initialization.
Definition: ad7689_support.c:177
Configuration file of nanodac firmware example program.
Definition: ad77681.h:497