APM:Libraries
Macros | Variables
AP_Compass_BMM150.cpp File Reference
#include "AP_Compass_BMM150.h"
#include <AP_HAL/AP_HAL.h>
#include <utility>
#include <AP_HAL/utility/sparse-endian.h>
#include <AP_Math/AP_Math.h>
#include <stdio.h>
Include dependency graph for AP_Compass_BMM150.cpp:

Go to the source code of this file.

Macros

#define CHIP_ID_REG   0x40
 
#define CHIP_ID_VAL   0x32
 
#define POWER_AND_OPERATIONS_REG   0x4B
 
#define POWER_CONTROL_VAL   (1 << 0)
 
#define SOFT_RESET   (1 << 7 | 1 << 1)
 
#define OP_MODE_SELF_TEST_ODR_REG   0x4C
 
#define NORMAL_MODE   (0 << 1)
 
#define ODR_30HZ   (1 << 3 | 1 << 4 | 1 << 5)
 
#define ODR_20HZ   (1 << 3 | 0 << 4 | 1 << 5)
 
#define DATA_X_LSB_REG   0x42
 
#define REPETITIONS_XY_REG   0x51
 
#define REPETITIONS_Z_REG   0X52
 
#define DIG_X1_REG   0x5D
 
#define DIG_Y1_REG   0x5E
 
#define DIG_Z4_LSB_REG   0x62
 
#define DIG_Z4_MSB_REG   0x63
 
#define DIG_X2_REG   0x64
 
#define DIG_Y2_REG   0x65
 
#define DIG_Z2_LSB_REG   0x68
 
#define DIG_Z2_MSB_REG   0x69
 
#define DIG_Z1_LSB_REG   0x6A
 
#define DIG_Z1_MSB_REG   0x6B
 
#define DIG_XYZ1_LSB_REG   0x6C
 
#define DIG_XYZ1_MSB_REG   0x6D
 
#define DIG_Z3_LSB_REG   0x6E
 
#define DIG_Z3_MSB_REG   0x6F
 
#define DIG_XY2_REG   0x70
 
#define DIG_XY1_REG   0x71
 
#define MEASURE_TIME_USEC   16667
 

Variables

const AP_HAL::HALhal
 

Macro Definition Documentation

◆ CHIP_ID_REG

#define CHIP_ID_REG   0x40

Definition at line 27 of file AP_Compass_BMM150.cpp.

Referenced by AP_Compass_BMM150::init().

◆ CHIP_ID_VAL

#define CHIP_ID_VAL   0x32

Definition at line 28 of file AP_Compass_BMM150.cpp.

Referenced by AP_Compass_BMM150::init().

◆ DATA_X_LSB_REG

#define DATA_X_LSB_REG   0x42

Definition at line 39 of file AP_Compass_BMM150.cpp.

Referenced by AP_Compass_BMM150::_update().

◆ DIG_X1_REG

#define DIG_X1_REG   0x5D

Definition at line 45 of file AP_Compass_BMM150.cpp.

Referenced by AP_Compass_BMM150::_load_trim_values().

◆ DIG_X2_REG

#define DIG_X2_REG   0x64

Definition at line 49 of file AP_Compass_BMM150.cpp.

◆ DIG_XY1_REG

#define DIG_XY1_REG   0x71

Definition at line 60 of file AP_Compass_BMM150.cpp.

◆ DIG_XY2_REG

#define DIG_XY2_REG   0x70

Definition at line 59 of file AP_Compass_BMM150.cpp.

◆ DIG_XYZ1_LSB_REG

#define DIG_XYZ1_LSB_REG   0x6C

Definition at line 55 of file AP_Compass_BMM150.cpp.

◆ DIG_XYZ1_MSB_REG

#define DIG_XYZ1_MSB_REG   0x6D

Definition at line 56 of file AP_Compass_BMM150.cpp.

◆ DIG_Y1_REG

#define DIG_Y1_REG   0x5E

Definition at line 46 of file AP_Compass_BMM150.cpp.

◆ DIG_Y2_REG

#define DIG_Y2_REG   0x65

Definition at line 50 of file AP_Compass_BMM150.cpp.

◆ DIG_Z1_LSB_REG

#define DIG_Z1_LSB_REG   0x6A

Definition at line 53 of file AP_Compass_BMM150.cpp.

◆ DIG_Z1_MSB_REG

#define DIG_Z1_MSB_REG   0x6B

Definition at line 54 of file AP_Compass_BMM150.cpp.

◆ DIG_Z2_LSB_REG

#define DIG_Z2_LSB_REG   0x68

Definition at line 51 of file AP_Compass_BMM150.cpp.

◆ DIG_Z2_MSB_REG

#define DIG_Z2_MSB_REG   0x69

Definition at line 52 of file AP_Compass_BMM150.cpp.

◆ DIG_Z3_LSB_REG

#define DIG_Z3_LSB_REG   0x6E

Definition at line 57 of file AP_Compass_BMM150.cpp.

◆ DIG_Z3_MSB_REG

#define DIG_Z3_MSB_REG   0x6F

Definition at line 58 of file AP_Compass_BMM150.cpp.

◆ DIG_Z4_LSB_REG

#define DIG_Z4_LSB_REG   0x62

Definition at line 47 of file AP_Compass_BMM150.cpp.

◆ DIG_Z4_MSB_REG

#define DIG_Z4_MSB_REG   0x63

Definition at line 48 of file AP_Compass_BMM150.cpp.

◆ MEASURE_TIME_USEC

#define MEASURE_TIME_USEC   16667

Definition at line 62 of file AP_Compass_BMM150.cpp.

Referenced by AP_Compass_BMM150::init().

◆ NORMAL_MODE

#define NORMAL_MODE   (0 << 1)

Definition at line 35 of file AP_Compass_BMM150.cpp.

Referenced by AP_Compass_BMM150::init().

◆ ODR_20HZ

#define ODR_20HZ   (1 << 3 | 0 << 4 | 1 << 5)

Definition at line 37 of file AP_Compass_BMM150.cpp.

◆ ODR_30HZ

#define ODR_30HZ   (1 << 3 | 1 << 4 | 1 << 5)

Definition at line 36 of file AP_Compass_BMM150.cpp.

Referenced by AP_Compass_BMM150::init().

◆ OP_MODE_SELF_TEST_ODR_REG

#define OP_MODE_SELF_TEST_ODR_REG   0x4C

Definition at line 34 of file AP_Compass_BMM150.cpp.

Referenced by AP_Compass_BMM150::init().

◆ POWER_AND_OPERATIONS_REG

#define POWER_AND_OPERATIONS_REG   0x4B

Definition at line 30 of file AP_Compass_BMM150.cpp.

Referenced by AP_Compass_BMM150::_update(), and AP_Compass_BMM150::init().

◆ POWER_CONTROL_VAL

#define POWER_CONTROL_VAL   (1 << 0)

Definition at line 31 of file AP_Compass_BMM150.cpp.

Referenced by AP_Compass_BMM150::_update(), and AP_Compass_BMM150::init().

◆ REPETITIONS_XY_REG

#define REPETITIONS_XY_REG   0x51

Definition at line 41 of file AP_Compass_BMM150.cpp.

Referenced by AP_Compass_BMM150::init().

◆ REPETITIONS_Z_REG

#define REPETITIONS_Z_REG   0X52

Definition at line 42 of file AP_Compass_BMM150.cpp.

Referenced by AP_Compass_BMM150::init().

◆ SOFT_RESET

#define SOFT_RESET   (1 << 7 | 1 << 1)

Definition at line 32 of file AP_Compass_BMM150.cpp.

Referenced by AP_Compass_BMM150::_update(), and AP_Compass_BMM150::init().

Variable Documentation

◆ hal

const AP_HAL::HAL& hal

Definition at line 14 of file AC_PID_test.cpp.