precision-converters-firmware
Toggle main menu visibility
Main Page
Related Pages
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
~
Functions
c
l
n
p
t
~
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
g
h
i
l
m
n
p
r
s
t
u
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Typedefs
Enumerations
a
c
f
i
l
p
r
s
v
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Loading...
Searching...
No Matches
runner
work
precision-converters-firmware
precision-converters-firmware
projects
ad4170_iio
app
ad4170_loadcell_config.h
Go to the documentation of this file.
1
/*************************************************************************/
13
#ifndef _AD4170_LOADCELL_CONFIG_H_
14
#define _AD4170_LOADCELL_CONFIG_H_
15
16
/******************************************************************************/
17
/***************************** Include Files **********************************/
18
/******************************************************************************/
19
20
#include <stdint.h>
21
#include <stdlib.h>
22
#include "ad4170.h"
23
24
/******************************************************************************/
25
/********************** Macros and Constants Definition ***********************/
26
/******************************************************************************/
27
28
/* Select the excitation type for load cell (AC/DC) - one at a time
29
* Note- AC excitation is not applicable in case of AD4190 */
30
#define LOADCELL_DC_EXCITATION
31
//#define LOADCELL_AC_EXCITATION
32
33
/* Select between 4/6 wire loadcell - one at a time */
34
#define FOUR_WIRE_LOAD_CELL
35
//#define SIX_WIRE_LOAD_CELL
36
37
/* Select filter type for loadcell config (same for all channels) */
38
#define AD4170_FILTER_CONFIG AD4170_FILT_SINC3
39
40
/* Select FS (or ODR) for loadcell config (for SINC3 filter) */
41
#define AD4170_FS_CONFIG 625
// ODR = 50SPS
42
43
/* Scaler factor used in FS value to ODR conversion (for SINC3 filter) */
44
#define FS_TO_ODR_CONV_SCALER (512U * AD4170_FS_CONFIG)
45
46
/* Select continuous conversion mode for loadcell config */
47
#define AD4170_CONT_CONV_MODE_CONFIG AD4170_MODE_CONT
48
49
#if defined (FOUR_WIRE_LOAD_CELL)
50
#define TOTAL_CHANNELS 4
51
#else
// SIX_WIRE_LOAD_CELL
52
#define TOTAL_CHANNELS 2
53
#endif
54
55
/******************************************************************************/
56
/********************** Variables and User Defined Data Types *****************/
57
/******************************************************************************/
58
59
extern
struct
ad4170_init_param
ad4170_loadcell_config_params
;
60
61
#endif
/* end of _AD4170_LOADCELL_CONFIG_H_ */
ad4170_loadcell_config_params
struct ad4170_init_param ad4170_loadcell_config_params
Definition
ad4170_loadcell_config.c:34
Generated by
1.9.8