precision-converters-firmware
ad4130_loadcell_config.h
Go to the documentation of this file.
1 /*************************************************************************/
13 #ifndef _AD4130_LOADCELL_CONFIG_H_
14 #define _AD4130_LOADCELL_CONFIG_H_
15 
16 /******************************************************************************/
17 /***************************** Include Files **********************************/
18 /******************************************************************************/
19 
20 #include <stdint.h>
21 #include "ad413x.h"
22 
23 /******************************************************************************/
24 /********************** Macros and Constants Definition ***********************/
25 /******************************************************************************/
26 
27 /* Select FS (or ODR) for loadcell config (applicable to all channels) */
28 #define AD4130_FS_CONFIG 48 // ODR = 50SPS for SINC3/4 filter
29 
30 /* Filter type for default loadcell config
31  * Note: Applicable for all setups to keep the same ODR for all channels */
32 #define AD4130_FILTER_TYPE AD413X_SYNC3_STANDALONE
33 
34 /* Scaler factor used in FS to ODR conversion (For SINC3/4 filter) */
35 #define FS_TO_ODR_CONV_SCALER (32U * AD4130_FS_CONFIG)
36 
37 /******************************************************************************/
38 /********************** Public/Extern Declarations ****************************/
39 /******************************************************************************/
40 
41 extern struct ad413x_init_param ad4130_loadcell_config_params;
42 
43 #endif /* end of _AD4130_LOADCELL_CONFIG_H_ */
struct ad413x_init_param ad4130_loadcell_config_params
Definition: ad4130_loadcell_config.c:28