Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ms5611_regs.h File Reference

Register definitions for MS5611 barometer. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MS5611_I2C_SLAVE_ADDR   0xEE
 default i2c address when CSB is set to GND addr is 0xEE when CSB is set to VCC addr is 0xEC More...
 
#define MS5611_I2C_SLAVE_ADDR_ALT   0xEC
 
#define PROM_NB   8
 
#define MS5611_OSR256   0x02
 
#define MS5611_OSR512   0x02
 
#define MS5611_OSR1024   0x04
 
#define MS5611_OSR2048   0x06
 
#define MS5611_OSR4096   0x08
 
#define MS5611_REG_D1R   0x40
 
#define MS5611_REG_D1(_osr)   (MS5611_REG_D1R | _osr)
 
#define MS5611_REG_D1OSR256   MS5611_REG_D1(MS5611_ORS256)
 
#define MS5611_REG_D1OSR512   MS5611_REG_D1(MS5611_OSR512)
 
#define MS5611_REG_D1OSR1024   MS5611_REG_D1(MS5611_OSR1024)
 
#define MS5611_REG_D1OSR2048   MS5611_REG_D1(MS5611_OSR2048)
 
#define MS5611_REG_D1OSR4096   MS5611_REG_D1(MS5611_OSR4096)
 
#define MS5611_REG_D2R   0x50
 
#define MS5611_REG_D2(_osr)   (MS5611_REG_D2R | _osr)
 
#define MS5611_REG_D2OSR256   MS5611_REG_D2(MS5611_ORS256)
 
#define MS5611_REG_D2OSR512   MS5611_REG_D2(MS5611_OSR512)
 
#define MS5611_REG_D2OSR1024   MS5611_REG_D2(MS5611_OSR1024)
 
#define MS5611_REG_D2OSR2048   MS5611_REG_D2(MS5611_OSR2048)
 
#define MS5611_REG_D2OSR4096   MS5611_REG_D2(MS5611_OSR4096)
 
#define MS5611_ADC_READ   0x00
 
#define MS5611_SOFT_RESET   0x1E
 
#define MS5611_PROM_READ   0xA0
 
#define MS5611_START_CONV_D1   MS5611_REG_D1OSR4096 /* we use OSR=4096 for maximum resolution */
 
#define MS5611_START_CONV_D2   MS5611_REG_D2OSR4096 /* we use OSR=4096 for maximum resolution */
 

Detailed Description

Register definitions for MS5611 barometer.

Definition in file ms5611_regs.h.

Macro Definition Documentation

#define MS5611_ADC_READ   0x00

Definition at line 66 of file ms5611_regs.h.

Referenced by ms5611_i2c_periodic_check(), and ms5611_spi_periodic_check().

#define MS5611_I2C_SLAVE_ADDR   0xEE

default i2c address when CSB is set to GND addr is 0xEE when CSB is set to VCC addr is 0xEC

Definition at line 34 of file ms5611_regs.h.

#define MS5611_I2C_SLAVE_ADDR_ALT   0xEC

Definition at line 35 of file ms5611_regs.h.

#define MS5611_OSR1024   0x04

Definition at line 43 of file ms5611_regs.h.

#define MS5611_OSR2048   0x06

Definition at line 44 of file ms5611_regs.h.

#define MS5611_OSR256   0x02

Definition at line 41 of file ms5611_regs.h.

#define MS5611_OSR4096   0x08

Definition at line 45 of file ms5611_regs.h.

#define MS5611_OSR512   0x02

Definition at line 42 of file ms5611_regs.h.

#define MS5611_PROM_READ   0xA0
#define MS5611_REG_D1 (   _osr)    (MS5611_REG_D1R | _osr)

Definition at line 49 of file ms5611_regs.h.

#define MS5611_REG_D1OSR1024   MS5611_REG_D1(MS5611_OSR1024)

Definition at line 52 of file ms5611_regs.h.

#define MS5611_REG_D1OSR2048   MS5611_REG_D1(MS5611_OSR2048)

Definition at line 53 of file ms5611_regs.h.

#define MS5611_REG_D1OSR256   MS5611_REG_D1(MS5611_ORS256)

Definition at line 50 of file ms5611_regs.h.

#define MS5611_REG_D1OSR4096   MS5611_REG_D1(MS5611_OSR4096)

Definition at line 54 of file ms5611_regs.h.

#define MS5611_REG_D1OSR512   MS5611_REG_D1(MS5611_OSR512)

Definition at line 51 of file ms5611_regs.h.

#define MS5611_REG_D1R   0x40

Definition at line 48 of file ms5611_regs.h.

#define MS5611_REG_D2 (   _osr)    (MS5611_REG_D2R | _osr)

Definition at line 58 of file ms5611_regs.h.

#define MS5611_REG_D2OSR1024   MS5611_REG_D2(MS5611_OSR1024)

Definition at line 61 of file ms5611_regs.h.

#define MS5611_REG_D2OSR2048   MS5611_REG_D2(MS5611_OSR2048)

Definition at line 62 of file ms5611_regs.h.

#define MS5611_REG_D2OSR256   MS5611_REG_D2(MS5611_ORS256)

Definition at line 59 of file ms5611_regs.h.

#define MS5611_REG_D2OSR4096   MS5611_REG_D2(MS5611_OSR4096)

Definition at line 63 of file ms5611_regs.h.

#define MS5611_REG_D2OSR512   MS5611_REG_D2(MS5611_OSR512)

Definition at line 60 of file ms5611_regs.h.

#define MS5611_REG_D2R   0x50

Definition at line 57 of file ms5611_regs.h.

#define MS5611_SOFT_RESET   0x1E

Definition at line 67 of file ms5611_regs.h.

Referenced by ms5611_i2c_start_configure(), and ms5611_spi_start_configure().

#define MS5611_START_CONV_D1   MS5611_REG_D1OSR4096 /* we use OSR=4096 for maximum resolution */

Definition at line 69 of file ms5611_regs.h.

Referenced by ms5611_i2c_start_conversion(), and ms5611_spi_start_conversion().

#define MS5611_START_CONV_D2   MS5611_REG_D2OSR4096 /* we use OSR=4096 for maximum resolution */

Definition at line 70 of file ms5611_regs.h.

Referenced by ms5611_i2c_event(), and ms5611_spi_event().

#define PROM_NB   8

Definition at line 38 of file ms5611_regs.h.

Referenced by ms5611_i2c_event(), and ms5611_spi_event().