SELKIELogger  1.0.0
Collaboration diagram for LPMS IMU Data test bits:
#define LPMS_IMU_ACCEL_RAW   0
 accel_raw[] will contain data
 
#define LPMS_IMU_ACCEL_CAL   1
 accel_cal[] will contain data
 
#define LPMS_IMU_GYRO_RAW   3
 gyro_raw[] will contain data
 
#define LPMS_IMU_GYRO_CAL   5
 gyro_cal[] will contain data
 
#define LPMS_IMU_GYRO_ALIGN   7
 gyro_align[] will contain data
 
#define LPMS_IMU_MAG_RAW   8
 mag_raw[] will contain data
 
#define LPMS_IMU_MAG_CAL   9
 mag_cal[] will contain data
 
#define LPMS_IMU_OMEGA   10
 omega[] will contain data
 
#define LPMS_IMU_QUATERNION   11
 quaternion[] will contain data
 
#define LPMS_IMU_EULER   12
 euler[] will contain data
 
#define LPMS_IMU_ACCEL_LINEAR   13
 accel_linear[] will contain data
 
#define LPMS_IMU_PRESSURE   14
 pressure will contain data
 
#define LPMS_IMU_ALTITUDE   15
 altitude will contain data
 
#define LPMS_IMU_TEMPERATURE   16
 temperature will contain data
 
#define LPMS_HAS(x, y)   (((x) & (1 << y)) == (1 << y))
 

Detailed Description

Use these flags to test for the presence of data in either inbound data (test the reply to a GET_OUTPUTS/SET_OUTPUTS packet) or in lpms_data.present

Macro Definition Documentation

◆ LPMS_HAS

#define LPMS_HAS (   x,
 
)    (((x) & (1 << y)) == (1 << y))

Check if masked bit is/bits are set

Definition at line 115 of file LPMSTypes.h.