precision-converters-firmware
ad7689_user_config.h
Go to the documentation of this file.
1 /***************************************************************************//*
2  * @file ad7689_user_config.h
3  * @brief User configurations for AD7689 No-OS driver
4 ******************************************************************************
5  * Copyright (c) 2021 Analog Devices, Inc.
6  * All rights reserved.
7  *
8  * This software is proprietary to Analog Devices, Inc. and its licensors.
9  * By using this software you agree to the terms of the associated
10  * Analog Devices Software License Agreement.
11 ******************************************************************************/
12 
13 #ifndef _AD7689_USER_CONFIG_H_
14 #define _AD7689_USER_CONFIG_H_
15 
16 /******************************************************************************/
17 /***************************** Include Files **********************************/
18 /******************************************************************************/
19 
20 #include "ad7689.h"
21 
22 /******************************************************************************/
23 /********************** Macros and Constants Definition ***********************/
24 /******************************************************************************/
25 
26 /* Select Input type (one at a time- default is unipolar) */
27 #define UNIPOLAR
28 //#define BIPOLAR
29 
30 /* Default ADC channel config (for all channels)
31  * Note: DO NOT SELECT TYPE AS 'AD7689_TEMPERATURE_SENSOR'. The input type is set to
32  * to 'temperature' during temperature channel scanning at run-time.
33  **/
34 #if defined(UNIPOLAR)
35 #define ADC_INPUT_TYPE_CFG AD7689_UNIPOLAR_GND
36 #else
37 #define ADC_INPUT_TYPE_CFG AD7689_BIPOLAR_COM
38 #endif
39 
40 /* Default ADC reference voltage configurations (temperature sensor enabled by default) */
41 #define ADC_REF_VOLTAGE_CFG AD7689_REF_EXTERNAL_TEMP_IBUF
42 #define ADC_DEFAULT_REF_VOLTAGE 5.0
43 
44 /******************************************************************************/
45 /********************** Public/Extern Declarations ****************************/
46 /******************************************************************************/
47 
48 extern struct ad7689_init_param ad7689_init_params;
49 
50 #endif /* _AD7689_USER_CONFIG_H_ */
struct ad7689_init_param ad7689_init_params
Definition: ad7689_user_config.c:29