precision-converters-firmware
ad4170_accelerometer_config.h
Go to the documentation of this file.
1 /*************************************************************************/
13 #ifndef _AD4170_ACCELEROMETER_CONFIG_H_
14 #define _AD4170_ACCELEROMETER_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 filter type for accelerometer config (same for all channels) */
29 #define AD4170_FILTER_CONFIG AD4170_FILT_SINC3
30 
31 /* Select FS (or ODR) for accelerometer config (for SINC3 filter) */
32 #define AD4170_FS_CONFIG 625 // ODR = 50SPS
33 
34 /* Scaler factor used in FS value to ODR conversion (for SINC3 filter) */
35 #define FS_TO_ODR_CONV_SCALER (512U * AD4170_FS_CONFIG)
36 
37 /* Select continuous conversion mode for accelerometer config */
38 #define AD4170_CONT_CONV_MODE_CONFIG AD4170_MODE_CONT
39 
40 #define TOTAL_CHANNELS 1
41 
42 /******************************************************************************/
43 /********************** Variables and User Defined Data Types *****************/
44 /******************************************************************************/
45 
46 extern struct ad4170_init_param ad4170_accelerometer_config_params;
47 
48 #endif /* end of _AD4170_ACCELEROMETER_CONFIG_H_ */
struct ad4170_init_param ad4170_accelerometer_config_params
Definition: ad4170_accelerometer_config.c:34