APM:Libraries
Classes | Macros | Variables
AP_Compass_LSM9DS1.cpp File Reference
#include <assert.h>
#include <utility>
#include <AP_Math/AP_Math.h>
#include <AP_HAL/AP_HAL.h>
#include "AP_Compass_LSM9DS1.h"
Include dependency graph for AP_Compass_LSM9DS1.cpp:

Go to the source code of this file.

Classes

struct  sample_regs
 

Macros

#define LSM9DS1M_OFFSET_X_REG_L_M   0x05
 
#define LSM9DS1M_OFFSET_X_REG_H_M   0x06
 
#define LSM9DS1M_OFFSET_Y_REG_L_M   0x07
 
#define LSM9DS1M_OFFSET_Y_REG_H_M   0x08
 
#define LSM9DS1M_OFFSET_Z_REG_L_M   0x09
 
#define LSM9DS1M_OFFSET_Z_REG_H_M   0x0A
 
#define LSM9DS1M_WHO_AM_I   0x0F
 
#define WHO_AM_I_MAG   0x3D
 
#define LSM9DS1M_CTRL_REG1_M   0x20
 
#define LSM9DS1M_TEMP_COMP   (0x1 << 7)
 
#define LSM9DS1M_XY_ULTRA_HIGH   (0x3 << 5)
 
#define LSM9DS1M_80HZ   (0x7 << 2)
 
#define LSM9DS1M_FAST_ODR   (0x1 << 1)
 
#define LSM9DS1M_CTRL_REG2_M   0x21
 
#define LSM9DS1M_FS_16G   (0x3 << 5)
 
#define LSM9DS1M_CTRL_REG3_M   0x22
 
#define LSM9DS1M_SPI_ENABLE   (0x01 << 2)
 
#define LSM9DS1M_CONTINUOUS_MODE   0x0
 
#define LSM9DS1M_CTRL_REG4_M   0x23
 
#define LSM9DS1M_Z_ULTRA_HIGH   (0x3 << 2)
 
#define LSM9DS1M_CTRL_REG5_M   0x24
 
#define LSM9DS1M_BDU   (0x0 << 6)
 
#define LSM9DS1M_STATUS_REG_M   0x27
 
#define LSM9DS1M_OUT_X_L_M   0x28
 
#define LSM9DS1M_OUT_X_H_M   0x29
 
#define LSM9DS1M_OUT_Y_L_M   0x2A
 
#define LSM9DS1M_OUT_Y_H_M   0x2B
 
#define LSM9DS1M_OUT_Z_L_M   0x2C
 
#define LSM9DS1M_OUT_Z_H_M   0x2D
 
#define LSM9DS1M_INT_CFG_M   0x30
 
#define LSM9DS1M_INT_SRC_M   0x31
 
#define LSM9DS1M_INT_THS_L_M   0x32
 
#define LSM9DS1M_INT_THS_H_M   0x33
 

Variables

const AP_HAL::HALhal
 

Macro Definition Documentation

◆ LSM9DS1M_80HZ

#define LSM9DS1M_80HZ   (0x7 << 2)

Definition at line 24 of file AP_Compass_LSM9DS1.cpp.

Referenced by AP_Compass_LSM9DS1::_configure().

◆ LSM9DS1M_BDU

#define LSM9DS1M_BDU   (0x0 << 6)

Definition at line 38 of file AP_Compass_LSM9DS1.cpp.

Referenced by AP_Compass_LSM9DS1::_configure().

◆ LSM9DS1M_CONTINUOUS_MODE

#define LSM9DS1M_CONTINUOUS_MODE   0x0

Definition at line 32 of file AP_Compass_LSM9DS1.cpp.

Referenced by AP_Compass_LSM9DS1::_configure().

◆ LSM9DS1M_CTRL_REG1_M

#define LSM9DS1M_CTRL_REG1_M   0x20

Definition at line 21 of file AP_Compass_LSM9DS1.cpp.

Referenced by AP_Compass_LSM9DS1::_configure().

◆ LSM9DS1M_CTRL_REG2_M

#define LSM9DS1M_CTRL_REG2_M   0x21

◆ LSM9DS1M_CTRL_REG3_M

#define LSM9DS1M_CTRL_REG3_M   0x22

Definition at line 30 of file AP_Compass_LSM9DS1.cpp.

Referenced by AP_Compass_LSM9DS1::_configure().

◆ LSM9DS1M_CTRL_REG4_M

#define LSM9DS1M_CTRL_REG4_M   0x23

Definition at line 34 of file AP_Compass_LSM9DS1.cpp.

Referenced by AP_Compass_LSM9DS1::_configure().

◆ LSM9DS1M_CTRL_REG5_M

#define LSM9DS1M_CTRL_REG5_M   0x24

Definition at line 37 of file AP_Compass_LSM9DS1.cpp.

Referenced by AP_Compass_LSM9DS1::_configure().

◆ LSM9DS1M_FAST_ODR

#define LSM9DS1M_FAST_ODR   (0x1 << 1)

Definition at line 25 of file AP_Compass_LSM9DS1.cpp.

Referenced by AP_Compass_LSM9DS1::_configure().

◆ LSM9DS1M_FS_16G

#define LSM9DS1M_FS_16G   (0x3 << 5)

◆ LSM9DS1M_INT_CFG_M

#define LSM9DS1M_INT_CFG_M   0x30

Definition at line 48 of file AP_Compass_LSM9DS1.cpp.

◆ LSM9DS1M_INT_SRC_M

#define LSM9DS1M_INT_SRC_M   0x31

Definition at line 49 of file AP_Compass_LSM9DS1.cpp.

◆ LSM9DS1M_INT_THS_H_M

#define LSM9DS1M_INT_THS_H_M   0x33

Definition at line 51 of file AP_Compass_LSM9DS1.cpp.

Referenced by AP_Compass_LSM9DS1::_dump_registers().

◆ LSM9DS1M_INT_THS_L_M

#define LSM9DS1M_INT_THS_L_M   0x32

Definition at line 50 of file AP_Compass_LSM9DS1.cpp.

◆ LSM9DS1M_OFFSET_X_REG_H_M

#define LSM9DS1M_OFFSET_X_REG_H_M   0x06

Definition at line 12 of file AP_Compass_LSM9DS1.cpp.

◆ LSM9DS1M_OFFSET_X_REG_L_M

#define LSM9DS1M_OFFSET_X_REG_L_M   0x05

Definition at line 11 of file AP_Compass_LSM9DS1.cpp.

Referenced by AP_Compass_LSM9DS1::_dump_registers().

◆ LSM9DS1M_OFFSET_Y_REG_H_M

#define LSM9DS1M_OFFSET_Y_REG_H_M   0x08

Definition at line 14 of file AP_Compass_LSM9DS1.cpp.

◆ LSM9DS1M_OFFSET_Y_REG_L_M

#define LSM9DS1M_OFFSET_Y_REG_L_M   0x07

Definition at line 13 of file AP_Compass_LSM9DS1.cpp.

◆ LSM9DS1M_OFFSET_Z_REG_H_M

#define LSM9DS1M_OFFSET_Z_REG_H_M   0x0A

Definition at line 16 of file AP_Compass_LSM9DS1.cpp.

◆ LSM9DS1M_OFFSET_Z_REG_L_M

#define LSM9DS1M_OFFSET_Z_REG_L_M   0x09

Definition at line 15 of file AP_Compass_LSM9DS1.cpp.

◆ LSM9DS1M_OUT_X_H_M

#define LSM9DS1M_OUT_X_H_M   0x29

Definition at line 43 of file AP_Compass_LSM9DS1.cpp.

◆ LSM9DS1M_OUT_X_L_M

#define LSM9DS1M_OUT_X_L_M   0x28

Definition at line 42 of file AP_Compass_LSM9DS1.cpp.

◆ LSM9DS1M_OUT_Y_H_M

#define LSM9DS1M_OUT_Y_H_M   0x2B

Definition at line 45 of file AP_Compass_LSM9DS1.cpp.

◆ LSM9DS1M_OUT_Y_L_M

#define LSM9DS1M_OUT_Y_L_M   0x2A

Definition at line 44 of file AP_Compass_LSM9DS1.cpp.

◆ LSM9DS1M_OUT_Z_H_M

#define LSM9DS1M_OUT_Z_H_M   0x2D

Definition at line 47 of file AP_Compass_LSM9DS1.cpp.

◆ LSM9DS1M_OUT_Z_L_M

#define LSM9DS1M_OUT_Z_L_M   0x2C

Definition at line 46 of file AP_Compass_LSM9DS1.cpp.

◆ LSM9DS1M_SPI_ENABLE

#define LSM9DS1M_SPI_ENABLE   (0x01 << 2)

Definition at line 31 of file AP_Compass_LSM9DS1.cpp.

◆ LSM9DS1M_STATUS_REG_M

#define LSM9DS1M_STATUS_REG_M   0x27

Definition at line 40 of file AP_Compass_LSM9DS1.cpp.

Referenced by AP_Compass_LSM9DS1::_update().

◆ LSM9DS1M_TEMP_COMP

#define LSM9DS1M_TEMP_COMP   (0x1 << 7)

Definition at line 22 of file AP_Compass_LSM9DS1.cpp.

Referenced by AP_Compass_LSM9DS1::_configure().

◆ LSM9DS1M_WHO_AM_I

#define LSM9DS1M_WHO_AM_I   0x0F

Definition at line 18 of file AP_Compass_LSM9DS1.cpp.

Referenced by AP_Compass_LSM9DS1::_check_id().

◆ LSM9DS1M_XY_ULTRA_HIGH

#define LSM9DS1M_XY_ULTRA_HIGH   (0x3 << 5)

Definition at line 23 of file AP_Compass_LSM9DS1.cpp.

Referenced by AP_Compass_LSM9DS1::_configure().

◆ LSM9DS1M_Z_ULTRA_HIGH

#define LSM9DS1M_Z_ULTRA_HIGH   (0x3 << 2)

Definition at line 35 of file AP_Compass_LSM9DS1.cpp.

Referenced by AP_Compass_LSM9DS1::_configure().

◆ WHO_AM_I_MAG

#define WHO_AM_I_MAG   0x3D

Definition at line 19 of file AP_Compass_LSM9DS1.cpp.

Referenced by AP_Compass_LSM9DS1::_check_id().

Variable Documentation

◆ hal

const AP_HAL::HAL& hal

Definition at line 14 of file AC_PID_test.cpp.