Macro definitions to manipulate the bits of the status byte. More...
Macro definitions to manipulate the bits of the status byte.
Status byte explanation :
Bit | Meaning | Comment |
---|---|---|
7 | always 0 | |
6 | 1 : device is powered | |
5 | 1 : device is busy | Wait longer between 2 commands. |
4 | always 0 | |
3 | always 0 | |
2 | 1 : integrity test failed | Checksum error at power-up. |
1 | always 0 | |
0 | 1 : internal math saturation |
Macros | |
#define | ABP2_STATUS_BUSY 0x20 |
Sensor is busy. | |
#define | ABP2_STATUS_MEMERR 0x04 |
Memory integrity error. | |
#define | ABP2_STATUS_MATHSAT 0x01 |
Math saturation error. | |
#define | ABP2_STATUS_MASK (ABP2_STATUS_BUSY | ABP2_STATUS_MEMERR | ABP2_STATUS_MATHSAT) |
A bitwise AND of the status byte with this mask will return true in case of error. | |