Loading...
Searching...
No Matches

Definitions for the LIS3MDL 3-axis magnetometer. More...

Detailed Description

Definitions for the LIS3MDL 3-axis magnetometer.

Author
René Herthel rene-.nosp@m.hert.nosp@m.hel@o.nosp@m.utlo.nosp@m.ok.de

Definition in file lis3mdl-internal.h.

Go to the source code of this file.

LIS3DML chip identification

#define LIS3MDL_CHIP_ID   (0x3D)
 
#define LIS3MDL_CHIP_ADDR   (0x1C)
 

LIS3DML device identification register

#define LIS3DML_WHO_AM_I_REG   (0x0F)
 

LIS3DML control register

#define LIS3MDL_CTRL_REG1   (0x20)
 
#define LIS3MDL_CTRL_REG2   (0x21)
 
#define LIS3MDL_CTRL_REG3   (0x22)
 
#define LIS3MDL_CTRL_REG4   (0x23)
 
#define LIS3MDL_CTRL_REG5   (0x24)
 

LIS3DML masks for CTRL_REG1

#define LIS3MDL_MASK_REG1_TEMP_EN   (0x80)
 

LIS3DML masks for CTRL_REG2

#define LIS3MDL_MASK_REG2_REBOOT   (0x06)
 
#define LIS3MDL_MASK_REG2_SOFT_RST   (0x04)
 

LIS3DML masks for CTRL_REG3

#define LIS3MDL_MASK_REG3_LOW_POWER_EN   (0x02)
 
#define LIS3MDL_MASK_REG3_CONT_CONV_MODE   (0x00)
 
#define LIS3MDL_MASK_REG3_Z_LOW_POWER   (0x00)
 
#define LIS3MDL_MASK_REG3_Z_MEDIUM_POWER   (0x04)
 

LIS3DML masks for CTRL_REG5

#define LIS3MDL_MASK_REG5_BDU   (0x40)
 
#define LIS3MDL_MASK_REG5_BDU_OFF   (0x00)
 

LIS3DML status register

#define LIS3MDL_STATUS_REG   (0x27)
 

LIS3DML magnometer output register

#define LIS3MDL_OUT_X_L_REG   (0x28)
 
#define LIS3MDL_OUT_X_H_REG   (0x29)
 
#define LIS3MDL_OUT_Y_L_REG   (0x2A)
 
#define LIS3MDL_OUT_Y_H_REG   (0x2B)
 
#define LIS3MDL_OUT_Z_L_REG   (0x2C)
 
#define LIS3MDL_OUT_Z_H_REG   (0x2D)
 

LIS3DML temperature output register

#define LIS3MDL_TEMP_OUT_L_REG   (0x2E)
 
#define LIS3MDL_TEMP_OUT_H_REG   (0x2F)
 

LIS3DML interrupt register

#define LIS3MDL_INT_CFG_REG   (0x30)
 
#define LIS3MDL_INT_SRC_REG   (0x31)
 
#define LIS3MDL_INT_THS_L_REG   (0x32)
 
#define LIS3MDL_INT_THS_H_REG   (0x33)
 

LIS3MDL masks for interrupt cfg register

#define LIS3MDL_MASK_INT_CFG_XIEN   (0x80)
 
#define LIS3MDL_MASK_INT_CFG_YIEN   (0x40)
 
#define LIS3MDL_MASK_INT_CFG_ZIEN   (0x20)
 
#define LIS3MDL_MASK_INT_CFG_IEA   (0x04)
 
#define LIS3MDL_MASK_INT_CFG_LIR   (0x02)
 
#define LIS3MDL_MASK_INT_CFG_IEN   (0x01)
 

LIS3MDL masks for interrupt src register

#define LIS3MDL_MASK_INT_SRC_PTH_X   (0x80)
 
#define LIS3MDL_MASK_INT_SRC_PTH_Y   (0x40)
 
#define LIS3MDL_MASK_INT_SRC_PTH_Z   (0x20)
 
#define LIS3MDL_MASK_INT_SRC_NTH_X   (0x10)
 
#define LIS3MDL_MASK_INT_SRC_NTH_Y   (0x08)
 
#define LIS3MDL_MASK_INT_SRC_NTH_Z   (0x04)
 
#define LIS3MDL_MASK_INT_SRC_MROI   (0x02)
 
#define LIS3MDL_MASK_INT_SRC_INT   (0x01)
 

Macro Definition Documentation

◆ LIS3DML_WHO_AM_I_REG

#define LIS3DML_WHO_AM_I_REG   (0x0F)

Definition at line 39 of file lis3mdl-internal.h.

◆ LIS3MDL_CHIP_ADDR

#define LIS3MDL_CHIP_ADDR   (0x1C)

Definition at line 32 of file lis3mdl-internal.h.

◆ LIS3MDL_CHIP_ID

#define LIS3MDL_CHIP_ID   (0x3D)

Definition at line 31 of file lis3mdl-internal.h.

◆ LIS3MDL_CTRL_REG1

#define LIS3MDL_CTRL_REG1   (0x20)

Definition at line 46 of file lis3mdl-internal.h.

◆ LIS3MDL_CTRL_REG2

#define LIS3MDL_CTRL_REG2   (0x21)

Definition at line 47 of file lis3mdl-internal.h.

◆ LIS3MDL_CTRL_REG3

#define LIS3MDL_CTRL_REG3   (0x22)

Definition at line 48 of file lis3mdl-internal.h.

◆ LIS3MDL_CTRL_REG4

#define LIS3MDL_CTRL_REG4   (0x23)

Definition at line 49 of file lis3mdl-internal.h.

◆ LIS3MDL_CTRL_REG5

#define LIS3MDL_CTRL_REG5   (0x24)

Definition at line 50 of file lis3mdl-internal.h.

◆ LIS3MDL_INT_CFG_REG

#define LIS3MDL_INT_CFG_REG   (0x30)

Definition at line 117 of file lis3mdl-internal.h.

◆ LIS3MDL_INT_SRC_REG

#define LIS3MDL_INT_SRC_REG   (0x31)

Definition at line 118 of file lis3mdl-internal.h.

◆ LIS3MDL_INT_THS_H_REG

#define LIS3MDL_INT_THS_H_REG   (0x33)

Definition at line 120 of file lis3mdl-internal.h.

◆ LIS3MDL_INT_THS_L_REG

#define LIS3MDL_INT_THS_L_REG   (0x32)

Definition at line 119 of file lis3mdl-internal.h.

◆ LIS3MDL_MASK_INT_CFG_IEA

#define LIS3MDL_MASK_INT_CFG_IEA   (0x04)

Definition at line 130 of file lis3mdl-internal.h.

◆ LIS3MDL_MASK_INT_CFG_IEN

#define LIS3MDL_MASK_INT_CFG_IEN   (0x01)

Definition at line 132 of file lis3mdl-internal.h.

◆ LIS3MDL_MASK_INT_CFG_LIR

#define LIS3MDL_MASK_INT_CFG_LIR   (0x02)

Definition at line 131 of file lis3mdl-internal.h.

◆ LIS3MDL_MASK_INT_CFG_XIEN

#define LIS3MDL_MASK_INT_CFG_XIEN   (0x80)

Definition at line 127 of file lis3mdl-internal.h.

◆ LIS3MDL_MASK_INT_CFG_YIEN

#define LIS3MDL_MASK_INT_CFG_YIEN   (0x40)

Definition at line 128 of file lis3mdl-internal.h.

◆ LIS3MDL_MASK_INT_CFG_ZIEN

#define LIS3MDL_MASK_INT_CFG_ZIEN   (0x20)

Definition at line 129 of file lis3mdl-internal.h.

◆ LIS3MDL_MASK_INT_SRC_INT

#define LIS3MDL_MASK_INT_SRC_INT   (0x01)

Definition at line 146 of file lis3mdl-internal.h.

◆ LIS3MDL_MASK_INT_SRC_MROI

#define LIS3MDL_MASK_INT_SRC_MROI   (0x02)

Definition at line 145 of file lis3mdl-internal.h.

◆ LIS3MDL_MASK_INT_SRC_NTH_X

#define LIS3MDL_MASK_INT_SRC_NTH_X   (0x10)

Definition at line 142 of file lis3mdl-internal.h.

◆ LIS3MDL_MASK_INT_SRC_NTH_Y

#define LIS3MDL_MASK_INT_SRC_NTH_Y   (0x08)

Definition at line 143 of file lis3mdl-internal.h.

◆ LIS3MDL_MASK_INT_SRC_NTH_Z

#define LIS3MDL_MASK_INT_SRC_NTH_Z   (0x04)

Definition at line 144 of file lis3mdl-internal.h.

◆ LIS3MDL_MASK_INT_SRC_PTH_X

#define LIS3MDL_MASK_INT_SRC_PTH_X   (0x80)

Definition at line 139 of file lis3mdl-internal.h.

◆ LIS3MDL_MASK_INT_SRC_PTH_Y

#define LIS3MDL_MASK_INT_SRC_PTH_Y   (0x40)

Definition at line 140 of file lis3mdl-internal.h.

◆ LIS3MDL_MASK_INT_SRC_PTH_Z

#define LIS3MDL_MASK_INT_SRC_PTH_Z   (0x20)

Definition at line 141 of file lis3mdl-internal.h.

◆ LIS3MDL_MASK_REG1_TEMP_EN

#define LIS3MDL_MASK_REG1_TEMP_EN   (0x80)

Definition at line 57 of file lis3mdl-internal.h.

◆ LIS3MDL_MASK_REG2_REBOOT

#define LIS3MDL_MASK_REG2_REBOOT   (0x06)

Definition at line 64 of file lis3mdl-internal.h.

◆ LIS3MDL_MASK_REG2_SOFT_RST

#define LIS3MDL_MASK_REG2_SOFT_RST   (0x04)

Definition at line 65 of file lis3mdl-internal.h.

◆ LIS3MDL_MASK_REG3_CONT_CONV_MODE

#define LIS3MDL_MASK_REG3_CONT_CONV_MODE   (0x00)

Definition at line 73 of file lis3mdl-internal.h.

◆ LIS3MDL_MASK_REG3_LOW_POWER_EN

#define LIS3MDL_MASK_REG3_LOW_POWER_EN   (0x02)

Definition at line 72 of file lis3mdl-internal.h.

◆ LIS3MDL_MASK_REG3_Z_LOW_POWER

#define LIS3MDL_MASK_REG3_Z_LOW_POWER   (0x00)

Definition at line 74 of file lis3mdl-internal.h.

◆ LIS3MDL_MASK_REG3_Z_MEDIUM_POWER

#define LIS3MDL_MASK_REG3_Z_MEDIUM_POWER   (0x04)

Definition at line 75 of file lis3mdl-internal.h.

◆ LIS3MDL_MASK_REG5_BDU

#define LIS3MDL_MASK_REG5_BDU   (0x40)

Definition at line 82 of file lis3mdl-internal.h.

◆ LIS3MDL_MASK_REG5_BDU_OFF

#define LIS3MDL_MASK_REG5_BDU_OFF   (0x00)

Definition at line 83 of file lis3mdl-internal.h.

◆ LIS3MDL_OUT_X_H_REG

#define LIS3MDL_OUT_X_H_REG   (0x29)

Definition at line 98 of file lis3mdl-internal.h.

◆ LIS3MDL_OUT_X_L_REG

#define LIS3MDL_OUT_X_L_REG   (0x28)

Definition at line 97 of file lis3mdl-internal.h.

◆ LIS3MDL_OUT_Y_H_REG

#define LIS3MDL_OUT_Y_H_REG   (0x2B)

Definition at line 100 of file lis3mdl-internal.h.

◆ LIS3MDL_OUT_Y_L_REG

#define LIS3MDL_OUT_Y_L_REG   (0x2A)

Definition at line 99 of file lis3mdl-internal.h.

◆ LIS3MDL_OUT_Z_H_REG

#define LIS3MDL_OUT_Z_H_REG   (0x2D)

Definition at line 102 of file lis3mdl-internal.h.

◆ LIS3MDL_OUT_Z_L_REG

#define LIS3MDL_OUT_Z_L_REG   (0x2C)

Definition at line 101 of file lis3mdl-internal.h.

◆ LIS3MDL_STATUS_REG

#define LIS3MDL_STATUS_REG   (0x27)

Definition at line 90 of file lis3mdl-internal.h.

◆ LIS3MDL_TEMP_OUT_H_REG

#define LIS3MDL_TEMP_OUT_H_REG   (0x2F)

Definition at line 110 of file lis3mdl-internal.h.

◆ LIS3MDL_TEMP_OUT_L_REG

#define LIS3MDL_TEMP_OUT_L_REG   (0x2E)

Definition at line 109 of file lis3mdl-internal.h.