Paparazzi UAS  v6.0_unstable-94-gda5b527-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
bmp280_regs.h File Reference
#include "std.h"
+ Include dependency graph for bmp280_regs.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  bmp280_reg_calib_data
 

Macros

#define BMP280_I2C_ADDR   0xEC
 
#define BMP280_I2C_ADDR_ALT   0xEE
 
BMP280 chip identifier
#define BMP280_CHIP_ID   0x50
 
#define BMP280_CALIB_LSB_DATA_ADDR   0x88
 
#define BMP280_CALIB_DATA_LEN   24
 
#define BMP280_DIG_T1_UINT   0x88
 
#define BMP280_DIG_T2_INT   0x8A
 
#define BMP280_DIG_T3_INT   0x8C
 
#define BMP280_DIG_P1_UINT   0x8E
 
#define BMP280_DIG_P2_INT   0x90
 
#define BMP280_DIG_P3_INT   0x92
 
#define BMP280_DIG_P4_INT   0x94
 
#define BMP280_DIG_P5_INT   0x96
 
#define BMP280_DIG_P6_INT   0x98
 
#define BMP280_DIG_P7_INT   0x9A
 
#define BMP280_DIG_P8_INT   0x9C
 
#define BMP280_DIG_P9_INT   0x9E
 
#define BMP280_CONFIG_ADDR   0xF4
 
#define BMP280_CONFIG_LEN   0x02
 
#define BMP280_DATA_START_REG_ADDR   0xF7
 
#define BMP280_P_T_DATA_LEN   6
 
#define BMP280_P_DATA_LEN   3
 
#define BMP280_T_DATA_LEN   3
 
#define BMP280_CHIP_ID_REG_ADDR   0xD0
 
#define BMP280_RESET_REG_ADDR   0xF3
 
#define BMP280_STATUS_REG_ADDR   0xF3
 
#define BMP280_CTRL_MEAS_REG_ADDR   0xF4
 
#define BMP280_CONFIG_REG_ADDR   0xF5
 
#define BMP280_P_MSB_REG_ADDR   0xF7
 
#define BMP280_P_LSB_REG_ADDR   0xF8
 
#define BMP280_P_XLSB_REG_ADDR   0xF9
 
#define BMP280_T_MSB_REG_ADDR   0xFA
 
#define BMP280_T_LSB_REG_ADDR   0xFB
 
#define BMP280_T_XLSB_REG_ADDR   0xFC
 
#define BMP280_ID_NB   0x58
 
#define BMP280_RESET_VAL   0xB6
 
#define BMP280_EOC_BIT   (1<<3)
 
#define BMP280_NVRAM_COPY_BIT   (1<<0)
 
#define BMP280_NO_OVERSAMPLING_T   (0x00<<5)
 
#define BMP280_OVERSAMPLING_1X_T   (0x01<<5)
 
#define BMP280_OVERSAMPLING_2X_T   (0x02<<5)
 
#define BMP280_OVERSAMPLING_4X_T   (0x03<<5)
 
#define BMP280_OVERSAMPLING_8X_T   (0x04<<5)
 
#define BMP280_OVERSAMPLING_16X_T   (0x05<<5)
 
#define BMP280_NO_OVERSAMPLING_P   (0x00<<2)
 
#define BMP280_OVERSAMPLING_1X_P   (0x01<<2)
 
#define BMP280_OVERSAMPLING_2X_P   (0x02<<2)
 
#define BMP280_OVERSAMPLING_4X_P   (0x03<<2)
 
#define BMP280_OVERSAMPLING_8X_P   (0x04<<2)
 
#define BMP280_OVERSAMPLING_16X_P   (0x05<<2)
 
#define BMP280_POWER_SLEEP_MODE   (0x00)
 
#define BMP280_POWER_FORCED_MODE   (0x01)
 
#define BMP280_POWER_NORMAL_MODE   (0x03)
 
#define BMP280_INACTIVITY_HALF_MS   (0x00<<5)
 
#define BMP280_INACTIVITY_62_5_MS   (0x01<<5)
 
#define BMP280_INACTIVITY_125_MS   (0x02<<5)
 
#define BMP280_INACTIVITY_250_MS   (0x03<<5)
 
#define BMP280_INACTIVITY_500_MS   (0x04<<5)
 
#define BMP280_INACTIVITY_1000_MS   (0x05<<5)
 
#define BMP280_INACTIVITY_2000_MS   (0x06<<5)
 
#define BMP280_INACTIVITY_4000_MS   (0x07<<5)
 
#define BMP280_IIR_FILTER_COEFF_1   (0x00<<2)
 
#define BMP280_IIR_FILTER_COEFF_2   (0x01<<2)
 
#define BMP280_IIR_FILTER_COEFF_4   (0x02<<2)
 
#define BMP280_IIR_FILTER_COEFF_8   (0x03<<2)
 
#define BMP280_IIR_FILTER_COEFF_16   (0x04<<2)
 
#define BMP280_DISABLE_SPI_IF   (0x00)
 
#define BMP280_ENABLE_SPI_IF   (0x01)
 
Power mode macros
#define BMP280_SLEEP_MODE   0x00
 
#define BMP280_FORCED_MODE   0x01
 
#define BMP280_NORMAL_MODE   0x03
 
Sensor component selection macros
#define BMP280_PRESS   0x01
 
#define BMP280_TEMP   0x02
 
#define BMP280_ALL   0x03
 

Macro to combine two 8 bit data's to form a 16 bit data

#define BMP280_CONCAT_BYTES(msb, lsb)   (((uint16_t)msb << 8) | (uint16_t)lsb)
 
#define BMP280_COMPENSATION   BMP280_DOUBLE_PRECISION_COMPENSATION
 
enum  Bmp280Status {
  BMP280_STATUS_UNINIT, BMP280_STATUS_GET_CALIB, BMP280_STATUS_CONFIGURE, BMP280_STATUS_READ_STATUS_REG,
  BMP280_STATUS_READ_DATA_REGS
}
 Status enum. More...
 

Data Structure Documentation

struct bmp280_reg_calib_data

Definition at line 157 of file bmp280_regs.h.

Data Fields
uint16_t dig_p1
int16_t dig_p2
int16_t dig_p3
int16_t dig_p4
int16_t dig_p5
int16_t dig_p6
int16_t dig_p7
int16_t dig_p8
int16_t dig_p9
uint16_t dig_t1
int16_t dig_t2
int16_t dig_t3
int32_t t_fine

Macro Definition Documentation

#define BMP280_ALL   0x03

Definition at line 136 of file bmp280_regs.h.

#define BMP280_CALIB_DATA_LEN   24

Definition at line 45 of file bmp280_regs.h.

Referenced by bmp280_i2c_periodic().

#define BMP280_CALIB_LSB_DATA_ADDR   0x88

Definition at line 44 of file bmp280_regs.h.

Referenced by bmp280_i2c_periodic().

#define BMP280_CHIP_ID   0x50

Definition at line 41 of file bmp280_regs.h.

#define BMP280_CHIP_ID_REG_ADDR   0xD0

Definition at line 68 of file bmp280_regs.h.

#define BMP280_COMPENSATION   BMP280_DOUBLE_PRECISION_COMPENSATION

Definition at line 142 of file bmp280_regs.h.

#define BMP280_CONCAT_BYTES (   msb,
  lsb 
)    (((uint16_t)msb << 8) | (uint16_t)lsb)

Definition at line 139 of file bmp280_regs.h.

Referenced by parse_calib_data().

#define BMP280_CONFIG_ADDR   0xF4

Definition at line 61 of file bmp280_regs.h.

#define BMP280_CONFIG_LEN   0x02

Definition at line 62 of file bmp280_regs.h.

Referenced by bmp280_i2c_periodic().

#define BMP280_CONFIG_REG_ADDR   0xF5

Definition at line 72 of file bmp280_regs.h.

Referenced by bmp280_i2c_periodic().

#define BMP280_CTRL_MEAS_REG_ADDR   0xF4

Definition at line 71 of file bmp280_regs.h.

Referenced by bmp280_i2c_periodic().

#define BMP280_DATA_START_REG_ADDR   0xF7

Definition at line 63 of file bmp280_regs.h.

Referenced by bmp280_i2c_periodic().

#define BMP280_DIG_P1_UINT   0x8E

Definition at line 50 of file bmp280_regs.h.

#define BMP280_DIG_P2_INT   0x90

Definition at line 51 of file bmp280_regs.h.

#define BMP280_DIG_P3_INT   0x92

Definition at line 52 of file bmp280_regs.h.

#define BMP280_DIG_P4_INT   0x94

Definition at line 53 of file bmp280_regs.h.

#define BMP280_DIG_P5_INT   0x96

Definition at line 54 of file bmp280_regs.h.

#define BMP280_DIG_P6_INT   0x98

Definition at line 55 of file bmp280_regs.h.

#define BMP280_DIG_P7_INT   0x9A

Definition at line 56 of file bmp280_regs.h.

#define BMP280_DIG_P8_INT   0x9C

Definition at line 57 of file bmp280_regs.h.

#define BMP280_DIG_P9_INT   0x9E

Definition at line 58 of file bmp280_regs.h.

#define BMP280_DIG_T1_UINT   0x88

Definition at line 47 of file bmp280_regs.h.

#define BMP280_DIG_T2_INT   0x8A

Definition at line 48 of file bmp280_regs.h.

#define BMP280_DIG_T3_INT   0x8C

Definition at line 49 of file bmp280_regs.h.

#define BMP280_DISABLE_SPI_IF   (0x00)

Definition at line 123 of file bmp280_regs.h.

#define BMP280_ENABLE_SPI_IF   (0x01)

Definition at line 124 of file bmp280_regs.h.

#define BMP280_EOC_BIT   (1<<3)

Definition at line 85 of file bmp280_regs.h.

Referenced by bmp280_i2c_event().

#define BMP280_FORCED_MODE   0x01

Definition at line 129 of file bmp280_regs.h.

#define BMP280_I2C_ADDR   0xEC

Definition at line 37 of file bmp280_regs.h.

#define BMP280_I2C_ADDR_ALT   0xEE

Definition at line 38 of file bmp280_regs.h.

#define BMP280_ID_NB   0x58

Definition at line 81 of file bmp280_regs.h.

#define BMP280_IIR_FILTER_COEFF_1   (0x00<<2)

Definition at line 117 of file bmp280_regs.h.

#define BMP280_IIR_FILTER_COEFF_16   (0x04<<2)

Definition at line 121 of file bmp280_regs.h.

#define BMP280_IIR_FILTER_COEFF_2   (0x01<<2)

Definition at line 118 of file bmp280_regs.h.

Referenced by bmp280_i2c_periodic().

#define BMP280_IIR_FILTER_COEFF_4   (0x02<<2)

Definition at line 119 of file bmp280_regs.h.

#define BMP280_IIR_FILTER_COEFF_8   (0x03<<2)

Definition at line 120 of file bmp280_regs.h.

#define BMP280_INACTIVITY_1000_MS   (0x05<<5)

Definition at line 113 of file bmp280_regs.h.

#define BMP280_INACTIVITY_125_MS   (0x02<<5)

Definition at line 110 of file bmp280_regs.h.

#define BMP280_INACTIVITY_2000_MS   (0x06<<5)

Definition at line 114 of file bmp280_regs.h.

#define BMP280_INACTIVITY_250_MS   (0x03<<5)

Definition at line 111 of file bmp280_regs.h.

#define BMP280_INACTIVITY_4000_MS   (0x07<<5)

Definition at line 115 of file bmp280_regs.h.

#define BMP280_INACTIVITY_500_MS   (0x04<<5)

Definition at line 112 of file bmp280_regs.h.

#define BMP280_INACTIVITY_62_5_MS   (0x01<<5)

Definition at line 109 of file bmp280_regs.h.

Referenced by bmp280_i2c_periodic().

#define BMP280_INACTIVITY_HALF_MS   (0x00<<5)

Definition at line 108 of file bmp280_regs.h.

#define BMP280_NO_OVERSAMPLING_P   (0x00<<2)

Definition at line 96 of file bmp280_regs.h.

#define BMP280_NO_OVERSAMPLING_T   (0x00<<5)

Definition at line 89 of file bmp280_regs.h.

#define BMP280_NORMAL_MODE   0x03

Definition at line 130 of file bmp280_regs.h.

#define BMP280_NVRAM_COPY_BIT   (1<<0)

Definition at line 86 of file bmp280_regs.h.

Referenced by bmp280_i2c_event().

#define BMP280_OVERSAMPLING_16X_P   (0x05<<2)

Definition at line 101 of file bmp280_regs.h.

#define BMP280_OVERSAMPLING_16X_T   (0x05<<5)

Definition at line 94 of file bmp280_regs.h.

#define BMP280_OVERSAMPLING_1X_P   (0x01<<2)

Definition at line 97 of file bmp280_regs.h.

#define BMP280_OVERSAMPLING_1X_T   (0x01<<5)

Definition at line 90 of file bmp280_regs.h.

Referenced by bmp280_i2c_periodic().

#define BMP280_OVERSAMPLING_2X_P   (0x02<<2)

Definition at line 98 of file bmp280_regs.h.

#define BMP280_OVERSAMPLING_2X_T   (0x02<<5)

Definition at line 91 of file bmp280_regs.h.

#define BMP280_OVERSAMPLING_4X_P   (0x03<<2)

Definition at line 99 of file bmp280_regs.h.

#define BMP280_OVERSAMPLING_4X_T   (0x03<<5)

Definition at line 92 of file bmp280_regs.h.

#define BMP280_OVERSAMPLING_8X_P   (0x04<<2)

Definition at line 100 of file bmp280_regs.h.

Referenced by bmp280_i2c_periodic().

#define BMP280_OVERSAMPLING_8X_T   (0x04<<5)

Definition at line 93 of file bmp280_regs.h.

#define BMP280_P_DATA_LEN   3

Definition at line 65 of file bmp280_regs.h.

#define BMP280_P_LSB_REG_ADDR   0xF8

Definition at line 74 of file bmp280_regs.h.

#define BMP280_P_MSB_REG_ADDR   0xF7

Definition at line 73 of file bmp280_regs.h.

#define BMP280_P_T_DATA_LEN   6

Definition at line 64 of file bmp280_regs.h.

Referenced by bmp280_i2c_periodic().

#define BMP280_P_XLSB_REG_ADDR   0xF9

Definition at line 75 of file bmp280_regs.h.

#define BMP280_POWER_FORCED_MODE   (0x01)

Definition at line 104 of file bmp280_regs.h.

#define BMP280_POWER_NORMAL_MODE   (0x03)

Definition at line 105 of file bmp280_regs.h.

Referenced by bmp280_i2c_periodic().

#define BMP280_POWER_SLEEP_MODE   (0x00)

Definition at line 103 of file bmp280_regs.h.

#define BMP280_PRESS   0x01

Definition at line 134 of file bmp280_regs.h.

#define BMP280_RESET_REG_ADDR   0xF3

Definition at line 69 of file bmp280_regs.h.

#define BMP280_RESET_VAL   0xB6

Definition at line 83 of file bmp280_regs.h.

#define BMP280_SLEEP_MODE   0x00

Definition at line 128 of file bmp280_regs.h.

#define BMP280_STATUS_REG_ADDR   0xF3

Definition at line 70 of file bmp280_regs.h.

Referenced by bmp280_i2c_periodic().

#define BMP280_T_DATA_LEN   3

Definition at line 66 of file bmp280_regs.h.

#define BMP280_T_LSB_REG_ADDR   0xFB

Definition at line 77 of file bmp280_regs.h.

#define BMP280_T_MSB_REG_ADDR   0xFA

Definition at line 76 of file bmp280_regs.h.

#define BMP280_T_XLSB_REG_ADDR   0xFC

Definition at line 78 of file bmp280_regs.h.

#define BMP280_TEMP   0x02

Definition at line 135 of file bmp280_regs.h.

Enumeration Type Documentation

Status enum.

Enumerator
BMP280_STATUS_UNINIT 
BMP280_STATUS_GET_CALIB 
BMP280_STATUS_CONFIGURE 
BMP280_STATUS_READ_STATUS_REG 
BMP280_STATUS_READ_DATA_REGS 

Definition at line 148 of file bmp280_regs.h.