PX4 Firmware
PX4 Autopilot Software http://px4.io
BMI055_accel.hpp File Reference
Include dependency graph for BMI055_accel.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  BMI055_accel
 

Macros

#define BMI055_DEVICE_PATH_ACCEL   "/dev/bmi055_accel"
 
#define BMI055_DEVICE_PATH_ACCEL_EXT   "/dev/bmi055_accel_ext"
 
#define BMI055_ACC_CHIP_ID   0x00
 
#define BMI055_ACC_X_L   0x02
 
#define BMI055_ACC_X_H   0x03
 
#define BMI055_ACC_Y_L   0x04
 
#define BMI055_ACC_Y_H   0x05
 
#define BMI055_ACC_Z_L   0x06
 
#define BMI055_ACC_Z_H   0x07
 
#define BMI055_ACC_TEMP   0x08
 
#define BMI055_ACC_INT_STATUS_0   0x09
 
#define BMI055_ACC_INT_STATUS_1   0x0A
 
#define BMI055_ACC_INT_STATUS_2   0x0B
 
#define BMI055_ACC_INT_STATUS_3   0x0C
 
#define BMI055_ACC_FIFO_STATUS   0x0E
 
#define BMI055_ACC_RANGE   0x0F
 
#define BMI055_ACC_BW   0x10
 
#define BMI055_ACC_PMU_LPW   0x11
 
#define BMI055_ACC_PMU_LOW_POWER   0x12
 
#define BMI055_ACC_DATA_CTRL   0x13
 
#define BMI055_ACC_SOFTRESET   0x14
 
#define BMI055_ACC_INT_EN_0   0x16
 
#define BMI055_ACC_INT_EN_1   0x17
 
#define BMI055_ACC_INT_EN_2   0x18
 
#define BMI055_ACC_INT_MAP_0   0x19
 
#define BMI055_ACC_INT_MAP_1   0x1A
 
#define BMI055_ACC_INT_MAP_2   0x1B
 
#define BMI055_ACC_INT_SRC   0x1E
 
#define BMI055_ACC_INT_OUT_CTRL   0x20
 
#define BMI055_ACC_INT_LATCH   0x21
 
#define BMI055_ACC_INT_LH_0   0x22
 
#define BMI055_ACC_INT_LH_1   0x23
 
#define BMI055_ACC_INT_LH_2   0x24
 
#define BMI055_ACC_INT_LH_3   0x25
 
#define BMI055_ACC_INT_LH_4   0x26
 
#define BMI055_ACC_INT_MOT_0   0x27
 
#define BMI055_ACC_INT_MOT_1   0x28
 
#define BMI055_ACC_INT_MOT_2   0x29
 
#define BMI055_ACC_INT_TAP_0   0x2A
 
#define BMI055_ACC_INT_TAP_1   0x2B
 
#define BMI055_ACC_INT_ORIE_0   0x2C
 
#define BMI055_ACC_INT_ORIE_1   0x2D
 
#define BMI055_ACC_INT_FLAT_0   0x2E
 
#define BMI055_ACC_INT_FLAT_1   0x2F
 
#define BMI055_ACC_FIFO_CONFIG_0   0x30
 
#define BMI055_ACC_SELF_TEST   0x32
 
#define BMI055_ACC_EEPROM_CTRL   0x33
 
#define BMI055_ACC_SERIAL_CTRL   0x34
 
#define BMI055_ACC_OFFSET_CTRL   0x36
 
#define BMI055_ACC_OFC_SETTING   0x37
 
#define BMI055_ACC_OFFSET_X   0x38
 
#define BMI055_ACC_OFFSET_Y   0x39
 
#define BMI055_ACC_OFFSET_Z   0x3A
 
#define BMI055_ACC_TRIM_GPO   0x3B
 
#define BMI055_ACC_TRIM_GP1   0x3C
 
#define BMI055_ACC_FIFO_CONFIG_1   0x3E
 
#define BMI055_ACC_FIFO_DATA   0x3F
 
#define BMI055_ACC_WHO_AM_I   0xFA
 
#define BMI055_ACCEL_BW_7_81   (1<<3) | (0<<2) | (0<<1) | (0<<0)
 
#define BMI055_ACCEL_BW_15_63   (1<<3) | (0<<2) | (0<<1) | (1<<0)
 
#define BMI055_ACCEL_BW_31_25   (1<<3) | (0<<2) | (1<<1) | (0<<0)
 
#define BMI055_ACCEL_BW_62_5   (1<<3) | (0<<2) | (1<<1) | (1<<0)
 
#define BMI055_ACCEL_BW_125   (1<<3) | (1<<2) | (0<<1) | (0<<0)
 
#define BMI055_ACCEL_BW_250   (1<<3) | (1<<2) | (0<<1) | (1<<0)
 
#define BMI055_ACCEL_BW_500   (1<<3) | (1<<2) | (1<<1) | (0<<0)
 
#define BMI055_ACCEL_BW_1000   (1<<3) | (1<<2) | (1<<1) | (1<<0)
 
#define BMI055_ACCEL_NORMAL   (0<<7) | (0<<6) | (0<<5)
 
#define BMI055_ACCEL_DEEP_SUSPEND   (0<<7) | (0<<6) | (1<<5)
 
#define BMI055_ACCEL_LOW_POWER   (0<<7) | (1<<6) | (0<<5)
 
#define BMI055_ACCEL_SUSPEND   (1<<7) | (0<<6) | (0<<5)
 
#define BMI055_ACCEL_RANGE_2_G   (0<<3) | (0<<2) | (1<<1) | (1<<0)
 
#define BMI055_ACCEL_RANGE_4_G   (0<<3) | (1<<2) | (0<<1) | (1<<0)
 
#define BMI055_ACCEL_RANGE_8_G   (1<<3) | (0<<2) | (0<<1) | (0<<0)
 
#define BMI055_ACCEL_RANGE_16_G   (1<<3) | (1<<2) | (0<<1) | (0<<0)
 
#define BMI055_ACC_DRDY_INT_EN   (1<<4)
 
#define BMI055_ACC_DRDY_INT1   (1<<0)
 
#define BMI055_ACCEL_DEFAULT_RANGE_G   16
 
#define BMI055_ACCEL_DEFAULT_RATE   1000
 
#define BMI055_ACCEL_MAX_RATE   1000
 
#define BMI055_ACCEL_MAX_PUBLISH_RATE   280
 
#define BMI055_ACCEL_DEFAULT_DRIVER_FILTER_FREQ   50
 
#define BMI055_NEW_DATA_MASK   0x01
 
#define BMI055_ACCEL_NUM_CHECKED_REGISTERS   5
 

Macro Definition Documentation

◆ BMI055_ACC_BW

#define BMI055_ACC_BW   0x10

Definition at line 58 of file BMI055_accel.hpp.

Referenced by BMI055_accel::reset().

◆ BMI055_ACC_CHIP_ID

#define BMI055_ACC_CHIP_ID   0x00

Definition at line 44 of file BMI055_accel.hpp.

Referenced by BMI055_accel::probe().

◆ BMI055_ACC_DATA_CTRL

#define BMI055_ACC_DATA_CTRL   0x13

Definition at line 61 of file BMI055_accel.hpp.

◆ BMI055_ACC_DRDY_INT1

#define BMI055_ACC_DRDY_INT1   (1<<0)

Definition at line 129 of file BMI055_accel.hpp.

Referenced by BMI055_accel::reset().

◆ BMI055_ACC_DRDY_INT_EN

#define BMI055_ACC_DRDY_INT_EN   (1<<4)

Definition at line 126 of file BMI055_accel.hpp.

Referenced by BMI055_accel::reset().

◆ BMI055_ACC_EEPROM_CTRL

#define BMI055_ACC_EEPROM_CTRL   0x33

Definition at line 88 of file BMI055_accel.hpp.

◆ BMI055_ACC_FIFO_CONFIG_0

#define BMI055_ACC_FIFO_CONFIG_0   0x30

Definition at line 86 of file BMI055_accel.hpp.

◆ BMI055_ACC_FIFO_CONFIG_1

#define BMI055_ACC_FIFO_CONFIG_1   0x3E

Definition at line 97 of file BMI055_accel.hpp.

◆ BMI055_ACC_FIFO_DATA

#define BMI055_ACC_FIFO_DATA   0x3F

Definition at line 98 of file BMI055_accel.hpp.

◆ BMI055_ACC_FIFO_STATUS

#define BMI055_ACC_FIFO_STATUS   0x0E

Definition at line 56 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_EN_0

#define BMI055_ACC_INT_EN_0   0x16

Definition at line 63 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_EN_1

#define BMI055_ACC_INT_EN_1   0x17

Definition at line 64 of file BMI055_accel.hpp.

Referenced by BMI055_accel::reset().

◆ BMI055_ACC_INT_EN_2

#define BMI055_ACC_INT_EN_2   0x18

Definition at line 65 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_FLAT_0

#define BMI055_ACC_INT_FLAT_0   0x2E

Definition at line 84 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_FLAT_1

#define BMI055_ACC_INT_FLAT_1   0x2F

Definition at line 85 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_LATCH

#define BMI055_ACC_INT_LATCH   0x21

Definition at line 71 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_LH_0

#define BMI055_ACC_INT_LH_0   0x22

Definition at line 72 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_LH_1

#define BMI055_ACC_INT_LH_1   0x23

Definition at line 73 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_LH_2

#define BMI055_ACC_INT_LH_2   0x24

Definition at line 74 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_LH_3

#define BMI055_ACC_INT_LH_3   0x25

Definition at line 75 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_LH_4

#define BMI055_ACC_INT_LH_4   0x26

Definition at line 76 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_MAP_0

#define BMI055_ACC_INT_MAP_0   0x19

Definition at line 66 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_MAP_1

#define BMI055_ACC_INT_MAP_1   0x1A

Definition at line 67 of file BMI055_accel.hpp.

Referenced by BMI055_accel::reset().

◆ BMI055_ACC_INT_MAP_2

#define BMI055_ACC_INT_MAP_2   0x1B

Definition at line 68 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_MOT_0

#define BMI055_ACC_INT_MOT_0   0x27

Definition at line 77 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_MOT_1

#define BMI055_ACC_INT_MOT_1   0x28

Definition at line 78 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_MOT_2

#define BMI055_ACC_INT_MOT_2   0x29

Definition at line 79 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_ORIE_0

#define BMI055_ACC_INT_ORIE_0   0x2C

Definition at line 82 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_ORIE_1

#define BMI055_ACC_INT_ORIE_1   0x2D

Definition at line 83 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_OUT_CTRL

#define BMI055_ACC_INT_OUT_CTRL   0x20

Definition at line 70 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_SRC

#define BMI055_ACC_INT_SRC   0x1E

Definition at line 69 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_STATUS_0

#define BMI055_ACC_INT_STATUS_0   0x09

Definition at line 52 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_STATUS_1

#define BMI055_ACC_INT_STATUS_1   0x0A

Definition at line 53 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_STATUS_2

#define BMI055_ACC_INT_STATUS_2   0x0B

Definition at line 54 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_STATUS_3

#define BMI055_ACC_INT_STATUS_3   0x0C

Definition at line 55 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_TAP_0

#define BMI055_ACC_INT_TAP_0   0x2A

Definition at line 80 of file BMI055_accel.hpp.

◆ BMI055_ACC_INT_TAP_1

#define BMI055_ACC_INT_TAP_1   0x2B

Definition at line 81 of file BMI055_accel.hpp.

◆ BMI055_ACC_OFC_SETTING

#define BMI055_ACC_OFC_SETTING   0x37

Definition at line 91 of file BMI055_accel.hpp.

◆ BMI055_ACC_OFFSET_CTRL

#define BMI055_ACC_OFFSET_CTRL   0x36

Definition at line 90 of file BMI055_accel.hpp.

◆ BMI055_ACC_OFFSET_X

#define BMI055_ACC_OFFSET_X   0x38

Definition at line 92 of file BMI055_accel.hpp.

◆ BMI055_ACC_OFFSET_Y

#define BMI055_ACC_OFFSET_Y   0x39

Definition at line 93 of file BMI055_accel.hpp.

◆ BMI055_ACC_OFFSET_Z

#define BMI055_ACC_OFFSET_Z   0x3A

Definition at line 94 of file BMI055_accel.hpp.

◆ BMI055_ACC_PMU_LOW_POWER

#define BMI055_ACC_PMU_LOW_POWER   0x12

Definition at line 60 of file BMI055_accel.hpp.

◆ BMI055_ACC_PMU_LPW

#define BMI055_ACC_PMU_LPW   0x11

Definition at line 59 of file BMI055_accel.hpp.

Referenced by BMI055_accel::reset().

◆ BMI055_ACC_RANGE

#define BMI055_ACC_RANGE   0x0F

Definition at line 57 of file BMI055_accel.hpp.

Referenced by BMI055_accel::reset(), and BMI055_accel::set_accel_range().

◆ BMI055_ACC_SELF_TEST

#define BMI055_ACC_SELF_TEST   0x32

Definition at line 87 of file BMI055_accel.hpp.

◆ BMI055_ACC_SERIAL_CTRL

#define BMI055_ACC_SERIAL_CTRL   0x34

Definition at line 89 of file BMI055_accel.hpp.

◆ BMI055_ACC_SOFTRESET

#define BMI055_ACC_SOFTRESET   0x14

◆ BMI055_ACC_TEMP

#define BMI055_ACC_TEMP   0x08

Definition at line 51 of file BMI055_accel.hpp.

Referenced by BMI055_gyro::measure().

◆ BMI055_ACC_TRIM_GP1

#define BMI055_ACC_TRIM_GP1   0x3C

Definition at line 96 of file BMI055_accel.hpp.

◆ BMI055_ACC_TRIM_GPO

#define BMI055_ACC_TRIM_GPO   0x3B

Definition at line 95 of file BMI055_accel.hpp.

◆ BMI055_ACC_WHO_AM_I

#define BMI055_ACC_WHO_AM_I   0xFA

Definition at line 101 of file BMI055_accel.hpp.

Referenced by BMI055_accel::probe().

◆ BMI055_ACC_X_H

#define BMI055_ACC_X_H   0x03

Definition at line 46 of file BMI055_accel.hpp.

◆ BMI055_ACC_X_L

#define BMI055_ACC_X_L   0x02

Definition at line 45 of file BMI055_accel.hpp.

Referenced by BMI055_accel::measure().

◆ BMI055_ACC_Y_H

#define BMI055_ACC_Y_H   0x05

Definition at line 48 of file BMI055_accel.hpp.

◆ BMI055_ACC_Y_L

#define BMI055_ACC_Y_L   0x04

Definition at line 47 of file BMI055_accel.hpp.

◆ BMI055_ACC_Z_H

#define BMI055_ACC_Z_H   0x07

Definition at line 50 of file BMI055_accel.hpp.

◆ BMI055_ACC_Z_L

#define BMI055_ACC_Z_L   0x06

Definition at line 49 of file BMI055_accel.hpp.

◆ BMI055_ACCEL_BW_1000

#define BMI055_ACCEL_BW_1000   (1<<3) | (1<<2) | (1<<1) | (1<<0)

Definition at line 111 of file BMI055_accel.hpp.

◆ BMI055_ACCEL_BW_125

#define BMI055_ACCEL_BW_125   (1<<3) | (1<<2) | (0<<1) | (0<<0)

Definition at line 108 of file BMI055_accel.hpp.

◆ BMI055_ACCEL_BW_15_63

#define BMI055_ACCEL_BW_15_63   (1<<3) | (0<<2) | (0<<1) | (1<<0)

Definition at line 105 of file BMI055_accel.hpp.

◆ BMI055_ACCEL_BW_250

#define BMI055_ACCEL_BW_250   (1<<3) | (1<<2) | (0<<1) | (1<<0)

Definition at line 109 of file BMI055_accel.hpp.

◆ BMI055_ACCEL_BW_31_25

#define BMI055_ACCEL_BW_31_25   (1<<3) | (0<<2) | (1<<1) | (0<<0)

Definition at line 106 of file BMI055_accel.hpp.

◆ BMI055_ACCEL_BW_500

#define BMI055_ACCEL_BW_500   (1<<3) | (1<<2) | (1<<1) | (0<<0)

Definition at line 110 of file BMI055_accel.hpp.

Referenced by BMI055_accel::reset().

◆ BMI055_ACCEL_BW_62_5

#define BMI055_ACCEL_BW_62_5   (1<<3) | (0<<2) | (1<<1) | (1<<0)

Definition at line 107 of file BMI055_accel.hpp.

◆ BMI055_ACCEL_BW_7_81

#define BMI055_ACCEL_BW_7_81   (1<<3) | (0<<2) | (0<<1) | (0<<0)

Definition at line 104 of file BMI055_accel.hpp.

◆ BMI055_ACCEL_DEEP_SUSPEND

#define BMI055_ACCEL_DEEP_SUSPEND   (0<<7) | (0<<6) | (1<<5)

Definition at line 115 of file BMI055_accel.hpp.

◆ BMI055_ACCEL_DEFAULT_DRIVER_FILTER_FREQ

#define BMI055_ACCEL_DEFAULT_DRIVER_FILTER_FREQ   50

Definition at line 137 of file BMI055_accel.hpp.

◆ BMI055_ACCEL_DEFAULT_RANGE_G

#define BMI055_ACCEL_DEFAULT_RANGE_G   16

Definition at line 132 of file BMI055_accel.hpp.

Referenced by BMI055_accel::reset().

◆ BMI055_ACCEL_DEFAULT_RATE

#define BMI055_ACCEL_DEFAULT_RATE   1000

Definition at line 133 of file BMI055_accel.hpp.

Referenced by BMI055_accel::start().

◆ BMI055_ACCEL_LOW_POWER

#define BMI055_ACCEL_LOW_POWER   (0<<7) | (1<<6) | (0<<5)

Definition at line 116 of file BMI055_accel.hpp.

◆ BMI055_ACCEL_MAX_PUBLISH_RATE

#define BMI055_ACCEL_MAX_PUBLISH_RATE   280

Definition at line 135 of file BMI055_accel.hpp.

◆ BMI055_ACCEL_MAX_RATE

#define BMI055_ACCEL_MAX_RATE   1000

Definition at line 134 of file BMI055_accel.hpp.

◆ BMI055_ACCEL_NORMAL

#define BMI055_ACCEL_NORMAL   (0<<7) | (0<<6) | (0<<5)

Definition at line 114 of file BMI055_accel.hpp.

Referenced by BMI055_accel::reset().

◆ BMI055_ACCEL_NUM_CHECKED_REGISTERS

#define BMI055_ACCEL_NUM_CHECKED_REGISTERS   5

◆ BMI055_ACCEL_RANGE_16_G

#define BMI055_ACCEL_RANGE_16_G   (1<<3) | (1<<2) | (0<<1) | (0<<0)

Definition at line 123 of file BMI055_accel.hpp.

Referenced by BMI055_accel::set_accel_range().

◆ BMI055_ACCEL_RANGE_2_G

#define BMI055_ACCEL_RANGE_2_G   (0<<3) | (0<<2) | (1<<1) | (1<<0)

Definition at line 120 of file BMI055_accel.hpp.

Referenced by BMI055_accel::reset(), and BMI055_accel::set_accel_range().

◆ BMI055_ACCEL_RANGE_4_G

#define BMI055_ACCEL_RANGE_4_G   (0<<3) | (1<<2) | (0<<1) | (1<<0)

Definition at line 121 of file BMI055_accel.hpp.

Referenced by BMI055_accel::set_accel_range().

◆ BMI055_ACCEL_RANGE_8_G

#define BMI055_ACCEL_RANGE_8_G   (1<<3) | (0<<2) | (0<<1) | (0<<0)

Definition at line 122 of file BMI055_accel.hpp.

Referenced by BMI055_accel::set_accel_range().

◆ BMI055_ACCEL_SUSPEND

#define BMI055_ACCEL_SUSPEND   (1<<7) | (0<<6) | (0<<5)

Definition at line 117 of file BMI055_accel.hpp.

◆ BMI055_DEVICE_PATH_ACCEL

#define BMI055_DEVICE_PATH_ACCEL   "/dev/bmi055_accel"

Definition at line 40 of file BMI055_accel.hpp.

Referenced by bmi055::start().

◆ BMI055_DEVICE_PATH_ACCEL_EXT

#define BMI055_DEVICE_PATH_ACCEL_EXT   "/dev/bmi055_accel_ext"

Definition at line 41 of file BMI055_accel.hpp.

Referenced by bmi055::start().

◆ BMI055_NEW_DATA_MASK

#define BMI055_NEW_DATA_MASK   0x01

Definition at line 140 of file BMI055_accel.hpp.

Referenced by BMI055_accel::measure().