#include <ms5611.h>
|
enum | : uint8_t {
RESET = 0x1E,
ADC_READ = 0x00,
ADC_CONV = 0x40,
ADC_D1 = 0x00,
ADC_D2 = 0x10,
ADC_256 = 0x00,
ADC_512 = 0x02,
ADC_1024 = 0x04,
ADC_2048 = 0x06,
ADC_4096 = 0x08,
PROM_RD = 0xA0
} |
|
enum | callback_type_t {
CB_TEMP_READ1,
CB_TEMP_READ2,
CB_PRES_READ1,
CB_PRES_READ2,
CB_TEMP_START,
CB_PRES_START,
CB_RESET,
CB_WRITE_ZERO
} |
|
enum | state_t { START_TEMP = 0,
READ_TEMP = 1,
START_PRESS = 2,
READ_PRESS = 3
} |
|
|
static const uint8_t | ADDR = 0x77 |
|
Definition at line 38 of file ms5611.h.
Enumerator |
---|
RESET |
|
ADC_READ |
|
ADC_CONV |
|
ADC_D1 |
|
ADC_D2 |
|
ADC_256 |
|
ADC_512 |
|
ADC_1024 |
|
ADC_2048 |
|
ADC_4096 |
|
PROM_RD |
|
Definition at line 41 of file ms5611.h.
Enumerator |
---|
CB_TEMP_READ1 |
|
CB_TEMP_READ2 |
|
CB_PRES_READ1 |
|
CB_PRES_READ2 |
|
CB_TEMP_START |
|
CB_PRES_START |
|
CB_RESET |
|
CB_WRITE_ZERO |
|
Definition at line 65 of file ms5611.h.
Enumerator |
---|
START_TEMP |
|
READ_TEMP |
|
START_PRESS |
|
READ_PRESS |
|
Definition at line 56 of file ms5611.h.
int8_t MS5611::calc_crc |
( |
| ) |
|
|
private |
bool MS5611::init |
( |
I2C * |
_i2c | ) |
|
bool MS5611::is_initialized |
( |
| ) |
|
|
inline |
void MS5611::master_cb |
( |
uint8_t |
result | ) |
|
void MS5611::pres_read_cb1 |
( |
uint8_t |
result | ) |
|
void MS5611::pres_read_cb2 |
( |
uint8_t |
result | ) |
|
void MS5611::pres_start_cb |
( |
uint8_t |
result | ) |
|
void MS5611::read |
( |
float * |
press, |
|
|
float * |
temp |
|
) |
| |
bool MS5611::read_pres_mess |
( |
| ) |
|
|
private |
bool MS5611::read_prom |
( |
| ) |
|
|
private |
bool MS5611::read_temp_mess |
( |
| ) |
|
|
private |
void MS5611::reset_cb |
( |
uint8_t |
result | ) |
|
bool MS5611::start_pres_meas |
( |
| ) |
|
|
private |
bool MS5611::start_temp_meas |
( |
| ) |
|
|
private |
void MS5611::temp_read_cb1 |
( |
uint8_t |
result | ) |
|
void MS5611::temp_read_cb2 |
( |
uint8_t |
result | ) |
|
void MS5611::temp_start_cb |
( |
uint8_t |
result | ) |
|
void MS5611::write_zero_cb |
( |
uint8_t |
result | ) |
|
const uint8_t MS5611::ADDR = 0x77 |
|
staticprivate |
bool MS5611::baro_present_ {false} |
|
private |
I2C* MS5611::i2c_ {nullptr} |
|
private |
uint32_t MS5611::last_update_ms_ |
|
private |
uint32_t MS5611::next_reboot_ms_ |
|
private |
uint32_t MS5611::next_update_ms_ |
|
private |
uint8_t MS5611::pres_buf_[3] |
|
private |
int32_t MS5611::pres_raw_ |
|
private |
uint8_t MS5611::temp_buf_[3] |
|
private |
int32_t MS5611::temp_raw_ |
|
private |
float MS5611::temperature_ |
|
private |
bool MS5611::waiting_for_cb_ |
|
private |
The documentation for this class was generated from the following files: