#include <stdbool.h>
#include <stdint.h>
#include "periph/gpio.h"
#include "periph/i2c.h"
 
Go to the source code of this file.
 | 
| enum   | hmc5883l_error_codes_t {  
  HMC5883L_OK = 0, 
HMC5883L_ERROR_I2C = -1, 
HMC5883L_ERROR_WRONG_ID = -2, 
HMC5883L_ERROR_NO_DATA = -3, 
 
  HMC5883L_ERROR_RAW_DATA = -4, 
HMC5883L_ERROR_COMMON = -5
 
 } | 
|   | Definition of error codes.  More...
  | 
|   | 
| enum   | hmc5883l_dor_t {  
  HMC5883L_DOR_0_75 = 0x00, 
HMC5883L_DOR_1_5 = 0x04, 
HMC5883L_DOR_3 = 0x08, 
HMC5883L_DOR_7_5 = 0x0c, 
 
  HMC5883L_DOR_15 = 0x10, 
HMC5883L_DOR_30 = 0x14, 
HMC5883L_DOR_75 = 0x18
 
 } | 
|   | Data output rates (DOR)  More...
  | 
|   | 
| enum   | hmc5883l_meas_mode_t { HMC5883L_MEAS_MODE_NORMAL = 0x00, 
HMC5883L_MEAS_MODE_BIAS_POS = 0x01, 
HMC5883L_MEAS_MODE_BIAS_NEG = 0x02
 } | 
|   | Measurement modes.  More...
  | 
|   | 
| enum   | hmc5883l_meas_avg_t { HMC5883L_MEAS_AVG_NONE = 0x00, 
HMC5883L_MEAS_AVG_2 = 0x20, 
HMC5883L_MEAS_AVG_4 = 0x40, 
HMC5883L_MEAS_AVG_8 = 0x60
 } | 
|   | Measurement avaraging (number of samples are averaged for output)  More...
  | 
|   | 
| enum   | hmc5883l_op_mode_t { HMC5883L_OP_MODE_CONTINUOUS = 0x00, 
HMC5883L_OP_MODE_SINGLE = 0x01, 
HMC5883L_OP_MODE_IDLE = 0x02
 } | 
|   | Operation modes.  More...
  | 
|   | 
| enum   | hmc5883l_gain_t {  
  HMC5883L_GAIN_1370 = 0x00, 
HMC5883L_GAIN_1090 = 0x20, 
HMC5883L_GAIN_820 = 0x40, 
HMC5883L_GAIN_660 = 0x60, 
 
  HMC5883L_GAIN_440 = 0x80, 
HMC5883L_GAIN_390 = 0xa0, 
HMC5883L_GAIN_330 = 0xc0, 
HMC5883L_GAIN_230 = 0xe0
 
 } | 
|   | Gain (determines the sensitivity and the range)  More...
  | 
|   |