precision-converters-firmware
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ad777x_user_config.h
Go to the documentation of this file.
1/*************************************************************************/
13#ifndef _AD777x_USER_CONFIG_H_
14#define _AD777x_USER_CONFIG_H_
15
16/******************************************************************************/
17/***************************** Include Files **********************************/
18/******************************************************************************/
19
20#include "app_config.h"
21#include "ad7779.h"
22
23/******************************************************************************/
24/********************** Macros and Constants Definition ***********************/
25/******************************************************************************/
26
27/* Available Power Modes */
28#define AD777x_LOW_POWER 0
29#define AD777x_HIGH_RES 1
30
31/* Select the desired power mode */
32#define AD777x_POWER_MODE AD777x_HIGH_RES
33
34/* MCLK Divisor */
35#if (AD777x_POWER_MODE == AD777x_HIGH_RES)
36#define AD777x_MCLK_DIV 4
37#else
38#define AD777x_MCLK_DIV 8
39#endif
40
41/* Calculate the decimation factor */
42#define AD777x_DEC_RATE_INT (int) (AD777x_MCLK_FREQ/AD777x_MCLK_DIV/AD777x_SAMPLING_FREQUENCY)
43#define AD777x_DEC_RATE_DEC 0
44
45/* Gain correction factor. This default value represents a gain of 1 */
46#define AD777x_GAIN_CORR 0x555555
47
48/******************************************************************************/
49/********************** Variables and User Defined Data Types *****************/
50/******************************************************************************/
51
52extern ad7779_init_param ad777x_init_params;
53
54#endif /* end of _AD777x_USER_CONFIG_H_ */
ad7779_init_param ad777x_init_params
Definition ad777x_user_config.c:30
Configuration file of nanodac firmware example program.