Loading...
Searching...
No Matches

Macro definitions to manipulate the bits of the status byte. More...

Detailed Description

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.
 

Macro Definition Documentation

◆ ABP2_STATUS_BUSY

#define ABP2_STATUS_BUSY   0x20

Sensor is busy.

Definition at line 118 of file abp2.h.

◆ ABP2_STATUS_MASK

#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.

Definition at line 122 of file abp2.h.

◆ ABP2_STATUS_MATHSAT

#define ABP2_STATUS_MATHSAT   0x01

Math saturation error.

Definition at line 120 of file abp2.h.

◆ ABP2_STATUS_MEMERR

#define ABP2_STATUS_MEMERR   0x04

Memory integrity error.

Definition at line 119 of file abp2.h.