Register definitions for the Honeywell HMC5883L 3-axis digital compass. More...
Register definitions for the Honeywell HMC5883L 3-axis digital compass.
Definition in file hmc5883l_regs.h.
Go to the source code of this file.
| #define | HMC5883L_I2C_ADDRESS (0x1e) | 
| HMC5883L I2C address.  | |
| #define | HMC5883L_ID { 0x48, 0x34, 0x33 } | 
| HMC5883L chip id defined in Identification Registers A..C.  | |
| #define | HMC5883L_ID_LEN (3) | 
| HMC5883L chip id length.  | |
Register structure definitions | |
| #define | HMC5883L_REG_CFG_A_MA (0x60) | 
| HMC5883L_REG_CFG_A<6:5>  | |
| #define | HMC5883L_REG_CFG_A_DO (0x1c) | 
| HMC5883L_REG_CFG_A<4:2>  | |
| #define | HMC5883L_REG_CFG_A_MS (0x03) | 
| HMC5883L_REG_CFG_A<1:0>  | |
| #define | HMC5883L_REG_CFG_B_GN (0xe0) | 
| HMC5883L_REG_CFG_N<7:5>  | |
| #define | HMC5883L_REG_CFG_B_GN_S (5) | 
| HMC5883L_REG_CFG_N<7:5> shift.  | |
| #define | HMC5883L_REG_MODE_HS (0x80) | 
| HMC5883L_REG_MODE<7>  | |
| #define | HMC5883L_REG_MODE_MD (0x03) | 
| HMC5883L_REG_MODE<1:0>  | |
| #define | HMC5883L_REG_STATUS_LOCK (0x02) | 
| HMC5883L_REG_STATUS<1>  | |
| #define | HMC5883L_REG_STATUS_RDY (0x01) | 
| HMC5883L_REG_STATUS<0>  | |