Public Member Functions | Private Attributes | Static Private Attributes | List of all members
MS4525 Class Reference

#include <ms4525.h>

Public Member Functions

bool init (I2C *_i2c)
 
 MS4525 ()
 
bool present ()
 
void read (float *differential_pressure, float *temp)
 
void read_cb (uint8_t result)
 
void update ()
 

Private Attributes

uint8_t buf_ [4]
 
float diff_press_
 
I2Ci2c_
 
uint32_t last_update_ms_
 
bool new_data_
 
uint32_t next_update_ms_
 
bool sensor_present_
 
float temp_
 

Static Private Attributes

static const uint8_t ADDR = 0x28
 

Detailed Description

Definition at line 35 of file ms4525.h.

Constructor & Destructor Documentation

MS4525::MS4525 ( )

Definition at line 41 of file ms4525.cpp.

Member Function Documentation

bool MS4525::init ( I2C _i2c)

Definition at line 43 of file ms4525.cpp.

bool MS4525::present ( )

Definition at line 57 of file ms4525.cpp.

void MS4525::read ( float *  differential_pressure,
float *  temp 
)

Definition at line 84 of file ms4525.cpp.

void MS4525::read_cb ( uint8_t  result)

Definition at line 73 of file ms4525.cpp.

void MS4525::update ( )

Definition at line 64 of file ms4525.cpp.

Member Data Documentation

const uint8_t MS4525::ADDR = 0x28
staticprivate

Definition at line 48 of file ms4525.h.

uint8_t MS4525::buf_[4]
private

Definition at line 51 of file ms4525.h.

float MS4525::diff_press_
private

Definition at line 52 of file ms4525.h.

I2C* MS4525::i2c_
private

Definition at line 50 of file ms4525.h.

uint32_t MS4525::last_update_ms_
private

Definition at line 55 of file ms4525.h.

bool MS4525::new_data_
private

Definition at line 56 of file ms4525.h.

uint32_t MS4525::next_update_ms_
private

Definition at line 54 of file ms4525.h.

bool MS4525::sensor_present_
private

Definition at line 57 of file ms4525.h.

float MS4525::temp_
private

Definition at line 53 of file ms4525.h.


The documentation for this class was generated from the following files:


rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:31