Go to the documentation of this file. 1 #ifndef SPI_ADXRS450_H_
2 #define SPI_ADXRS450_H_
4 #define ADXRS450_STARTUP_DELAY 50
7 #define ADXRS450_SENSOR_DATA 0x20
8 #define ADXRS450_WRITE_DATA 0x40
9 #define ADXRS450_READ_DATA 0x80
11 #define ADXRS450_RATE1 0x00
12 #define ADXRS450_TEMP1 0x02
13 #define ADXRS450_LOCST1 0x04
14 #define ADXRS450_HICST1 0x06
15 #define ADXRS450_QUAD1 0x08
16 #define ADXRS450_FAULT1 0x0A
17 #define ADXRS450_PID1 0x0C
18 #define ADXRS450_SNH 0x0E
19 #define ADXRS450_SNL 0x10
20 #define ADXRS450_DNC1 0x12
22 #define ADXRS450_P 0x01
23 #define ADXRS450_CHK 0x02
24 #define ADXRS450_CST 0x04
25 #define ADXRS450_PWR 0x08
26 #define ADXRS450_POR 0x10
27 #define ADXRS450_NVM 0x20
28 #define ADXRS450_Q 0x40
29 #define ADXRS450_PLL 0x80
30 #define ADXRS450_UV 0x100
31 #define ADXRS450_OV 0x200
32 #define ADXRS450_AMP 0x400
33 #define ADXRS450_FAIL 0x800
35 #define ADXRS450_WRERR_MASK (0x7 << 29)
37 #define ADXRS450_MAX_RX 4
38 #define ADXRS450_MAX_TX 4
40 #define ADXRS450_GET_ST(a) ((a >> 26) & 0x3)