precision-converters-firmware
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ad719x_user_config.h
Go to the documentation of this file.
1/*************************************************************************/
13#ifndef AD719X_USER_CONFIG_H_
14#define AD719X_USER_CONFIG_H_
15
16/******************************************************************************/
17/***************************** Include Files **********************************/
18/******************************************************************************/
19#include "ad719x.h"
20/******************************************************************************/
21/********************** Macros and Constants Definition ***********************/
22/******************************************************************************/
23#if (ACTIVE_MODE == NORMAL_MODE)
24#define AD719X_DEFAULT_REF_VOLTAGE 5.0
25#define SAMPLING_RATE_HZ 1200
26#define DATA_OUTPUT_RATE_BITS 0x001
27#define DEFAULT_GAIN AD719X_ADC_GAIN_1
28#else
29#define AD719X_DEFAULT_REF_VOLTAGE 5
30#define DEFAULT_GAIN AD719X_ADC_GAIN_128
31#if (ACTIVE_MODE == NOISE_TEST)
32#define SAMPLING_RATE_HZ 4.7
33#define DATA_OUTPUT_RATE_BITS 0x3FF
34#elif (ACTIVE_MODE == FAST_50HZ_TEST)
35#define SAMPLING_RATE_HZ 44
36#define DATA_OUTPUT_RATE_BITS 0x06
37#endif
38#endif
39
40/******************************************************************************/
41/********************** Variables and User Defined Data Types *****************/
42/******************************************************************************/
43extern struct ad719x_init_param ad719x_init_params;
44extern struct no_os_gpio_init_param gpio_cs_init;
45
46#endif /* AD719X_USER_CONFIG_H_ */
struct no_os_gpio_init_param gpio_cs_init
Definition ad719x_user_config.c:34
struct ad719x_init_param ad719x_init_params
Definition ad719x_user_config.c:58