1#ifndef ARDUINO_ADXL375_ADXL375_CONSTANTS_H
2#define ARDUINO_ADXL375_ADXL375_CONSTANTS_H
9#define ADXL375_WRITE_BYTE 0b01000000
10#define ADXL375_READ_BYTE 0b11000000
12#define ADXL375_DEFAULT_I2C_ADDRESS 0x1D
15 ADXL375_Fixed_Device_ID_Code = 0xE5
26enum ADXL375_BATCHING_DATA_RATE{
28 ADXL375_BDR_3200_HZ = 0b1111,
29 ADXL375_BDR_1600_HZ = 0b1110,
30 ADXL375_BDR_800_HZ = 0b1101,
31 ADXL375_BDR_6_25HZ = 0b0110,
32 ADXL375_BDR_3_13_HZ = 0b0101,
33 ADXL375_BDR_1_56_HZ = 0b0100,
34 ADXL375_BDR_0_78_HZ = 0b0011,
35 ADXL375_BDR_0_39_HZ = 0b0010,
36 ADXL375_BDR_0_20_HZ = 0b0001,
37 ADXL375_NO_BATCHING = 0b0000
40enum ADXL375_Low_power_BDR{
41 ADXL375_BDR_400_HZ = 0b1100,
42 ADXL375_BDR_100_HZ = 0b1010,
43 ADXL375_BDR_50_HZ = 0b1001,
44 ADXL375_BDR_25_HZ = 0b1100,
45 ADXL375_BDR_12_5_HZ = 0b0111,
48enum ADXL375_FIFO_MODES {
51 ADXL375_BYPASS_MODE = 0b00000000,
54 ADXL375_FIFO_MODE = 0b01111010,
68 ADXL375_STREAM_MODE = 0b01111001,
81 ADXL375_TRIGGER_MODE = 0b01111011,
127enum ADXL375_INTERRUPTS {
129 ADXL375_Data_Ready = 7,
130 ADXL375_Single_Shock = 6,
131 ADXL375_Double_Shock = 5,
134 ADXL375_Activity = 4,
137 ADXL375_Inactivity = 3,
141 ADXL375_Watermark = 1,
154 ADXL375_ODR_3200_HZ = 0b1111,
155 ADXL375_ODR_1600_HZ = 0b1110,
156 ADXL375_ODR_800_HZ = 0b1101,
158 ADXL375_ODR_200_HZ = 0b1011,
159 ADXL375_ODR_100_HZ = 0b1010,
160 ADXL375_ODR_50_HZ = 0b1001,
161 ADXL375_ODR_25_HZ = 0b1000,
162 ADXL375_ODR_12_5_HZ = 0b0111,
163 ADXL375_ODR_6_25HZ = 0b0110,
164 ADXL375_ODR_3_13_HZ = 0b0101,
165 ADXL375_ODR_1_56_HZ = 0b0100,
166 ADXL375_ODR_0_78_HZ = 0b0011,
167 ADXL375_ODR_0_39_HZ = 0b0010,
168 ADXL375_ODR_0_20_HZ = 0b0001,
169 ADXL375_ODR_0_10_HZ = 0b0000
174enum ADXL375_Low_power_ODR{
175 ADXL375_Low_ODR_400_HZ = 0b1100,
176 ADXL375_Low_ODR_200_HZ = 0b1011,
177 ADXL375_Low_ODR_100_HZ = 0b1010,
178 ADXL375_Low_ODR_50_HZ = 0b1001,
179 ADXL375_Low_ODR_25_HZ = 0b1100,
180 ADXL375_Low_ODR_12_5_HZ = 0b0111,
183 enum ADXL375_Self_test_ODR{
184 ADXL375_Self_ODR_800_HZ = 0b1101,
185 ADXL375_Self_ODR_400_HZ = 0b1100,
186 ADXL375_Self_ODR_200_HZ = 0b1011,
187 ADXL375_Self_ODR_100_HZ = 0b1010,
188 ADXL375_Self_ODR_3200_HZ = 0b1111,