APM:Libraries
Macros | Variables
AP_Baro_LPS2XH.cpp File Reference
#include <utility>
#include <stdio.h>
#include "AP_Baro_LPS2XH.h"
#include <AP_InertialSensor/AP_InertialSensor_Invensense_registers.h>
Include dependency graph for AP_Baro_LPS2XH.cpp:

Go to the source code of this file.

Macros

#define LPS22HB_WHOAMI   0xB1
 
#define LPS25HB_WHOAMI   0xBD
 
#define REG_ID   0x0F
 
#define LPS22H_ID   0xB1
 
#define LPS22H_CTRL_REG1   0x10
 
#define LPS22H_CTRL_REG2   0x11
 
#define LPS22H_CTRL_REG3   0x12
 
#define LPS22H_CTRL_REG1_SIM   (1 << 0)
 
#define LPS22H_CTRL_REG1_BDU   (1 << 1)
 
#define LPS22H_CTRL_REG1_LPFP_CFG   (1 << 2)
 
#define LPS22H_CTRL_REG1_EN_LPFP   (1 << 3)
 
#define LPS22H_CTRL_REG1_PD   (0 << 4)
 
#define LPS22H_CTRL_REG1_ODR_1HZ   (1 << 4)
 
#define LPS22H_CTRL_REG1_ODR_10HZ   (2 << 4)
 
#define LPS22H_CTRL_REG1_ODR_25HZ   (3 << 4)
 
#define LPS22H_CTRL_REG1_ODR_50HZ   (4 << 4)
 
#define LPS22H_CTRL_REG1_ODR_75HZ   (5 << 4)
 
#define LPS25H_CTRL_REG1_ADDR   0x20
 
#define LPS25H_CTRL_REG2_ADDR   0x21
 
#define LPS25H_CTRL_REG3_ADDR   0x22
 
#define LPS25H_CTRL_REG4_ADDR   0x23
 
#define LPS25H_FIFO_CTRL   0x2E
 
#define TEMP_OUT_ADDR   0x2B
 
#define PRESS_OUT_XL_ADDR   0x28
 

Variables

const AP_HAL::HALhal
 

Macro Definition Documentation

◆ LPS22H_CTRL_REG1

#define LPS22H_CTRL_REG1   0x10

Definition at line 31 of file AP_Baro_LPS2XH.cpp.

Referenced by AP_Baro_LPS2XH::_init().

◆ LPS22H_CTRL_REG1_BDU

#define LPS22H_CTRL_REG1_BDU   (1 << 1)

Definition at line 36 of file AP_Baro_LPS2XH.cpp.

Referenced by AP_Baro_LPS2XH::_init().

◆ LPS22H_CTRL_REG1_EN_LPFP

#define LPS22H_CTRL_REG1_EN_LPFP   (1 << 3)

Definition at line 38 of file AP_Baro_LPS2XH.cpp.

Referenced by AP_Baro_LPS2XH::_init().

◆ LPS22H_CTRL_REG1_LPFP_CFG

#define LPS22H_CTRL_REG1_LPFP_CFG   (1 << 2)

Definition at line 37 of file AP_Baro_LPS2XH.cpp.

Referenced by AP_Baro_LPS2XH::_init().

◆ LPS22H_CTRL_REG1_ODR_10HZ

#define LPS22H_CTRL_REG1_ODR_10HZ   (2 << 4)

Definition at line 41 of file AP_Baro_LPS2XH.cpp.

◆ LPS22H_CTRL_REG1_ODR_1HZ

#define LPS22H_CTRL_REG1_ODR_1HZ   (1 << 4)

Definition at line 40 of file AP_Baro_LPS2XH.cpp.

◆ LPS22H_CTRL_REG1_ODR_25HZ

#define LPS22H_CTRL_REG1_ODR_25HZ   (3 << 4)

Definition at line 42 of file AP_Baro_LPS2XH.cpp.

◆ LPS22H_CTRL_REG1_ODR_50HZ

#define LPS22H_CTRL_REG1_ODR_50HZ   (4 << 4)

Definition at line 43 of file AP_Baro_LPS2XH.cpp.

◆ LPS22H_CTRL_REG1_ODR_75HZ

#define LPS22H_CTRL_REG1_ODR_75HZ   (5 << 4)

Definition at line 44 of file AP_Baro_LPS2XH.cpp.

Referenced by AP_Baro_LPS2XH::_init().

◆ LPS22H_CTRL_REG1_PD

#define LPS22H_CTRL_REG1_PD   (0 << 4)

Definition at line 39 of file AP_Baro_LPS2XH.cpp.

◆ LPS22H_CTRL_REG1_SIM

#define LPS22H_CTRL_REG1_SIM   (1 << 0)

Definition at line 35 of file AP_Baro_LPS2XH.cpp.

◆ LPS22H_CTRL_REG2

#define LPS22H_CTRL_REG2   0x11

Definition at line 32 of file AP_Baro_LPS2XH.cpp.

Referenced by AP_Baro_LPS2XH::_init().

◆ LPS22H_CTRL_REG3

#define LPS22H_CTRL_REG3   0x12

Definition at line 33 of file AP_Baro_LPS2XH.cpp.

◆ LPS22H_ID

#define LPS22H_ID   0xB1

Definition at line 30 of file AP_Baro_LPS2XH.cpp.

◆ LPS22HB_WHOAMI

#define LPS22HB_WHOAMI   0xB1

Definition at line 25 of file AP_Baro_LPS2XH.cpp.

Referenced by AP_Baro_LPS2XH::_check_whoami().

◆ LPS25H_CTRL_REG1_ADDR

#define LPS25H_CTRL_REG1_ADDR   0x20

Definition at line 47 of file AP_Baro_LPS2XH.cpp.

Referenced by AP_Baro_LPS2XH::_init().

◆ LPS25H_CTRL_REG2_ADDR

#define LPS25H_CTRL_REG2_ADDR   0x21

Definition at line 48 of file AP_Baro_LPS2XH.cpp.

Referenced by AP_Baro_LPS2XH::_init().

◆ LPS25H_CTRL_REG3_ADDR

#define LPS25H_CTRL_REG3_ADDR   0x22

Definition at line 49 of file AP_Baro_LPS2XH.cpp.

◆ LPS25H_CTRL_REG4_ADDR

#define LPS25H_CTRL_REG4_ADDR   0x23

Definition at line 50 of file AP_Baro_LPS2XH.cpp.

◆ LPS25H_FIFO_CTRL

#define LPS25H_FIFO_CTRL   0x2E

Definition at line 51 of file AP_Baro_LPS2XH.cpp.

Referenced by AP_Baro_LPS2XH::_init().

◆ LPS25HB_WHOAMI

#define LPS25HB_WHOAMI   0xBD

Definition at line 26 of file AP_Baro_LPS2XH.cpp.

Referenced by AP_Baro_LPS2XH::_check_whoami().

◆ PRESS_OUT_XL_ADDR

#define PRESS_OUT_XL_ADDR   0x28

Definition at line 53 of file AP_Baro_LPS2XH.cpp.

Referenced by AP_Baro_LPS2XH::_update_pressure().

◆ REG_ID

#define REG_ID   0x0F

Definition at line 28 of file AP_Baro_LPS2XH.cpp.

Referenced by AP_Baro_LPS2XH::_check_whoami().

◆ TEMP_OUT_ADDR

#define TEMP_OUT_ADDR   0x2B

Definition at line 52 of file AP_Baro_LPS2XH.cpp.

Referenced by AP_Baro_LPS2XH::_update_temperature().

Variable Documentation

◆ hal

const AP_HAL::HAL& hal

Definition at line 14 of file AC_PID_test.cpp.