Functions | Variables
drv_ms4525.c File Reference
#include <breezystm32.h>
Include dependency graph for drv_ms4525.c:

Go to the source code of this file.

Functions

static void cb (uint8_t result)
 
void ms4525_async_read (float *differential_pressure, float *temp)
 
void ms4525_async_update ()
 
bool ms4525_init ()
 
bool ms4525_present ()
 
static float sign (float x)
 

Variables

static const uint8_t ADDR = 0x28
 
static uint8_t buf_ [4]
 
static float diff_press_
 
static uint32_t last_update_ms_
 
static bool new_data_
 
static uint32_t next_update_ms_
 
static bool sensor_present_
 
static float temp_
 

Function Documentation

static void cb ( uint8_t  result)
static

Definition at line 69 of file drv_ms4525.c.

void ms4525_async_read ( float *  differential_pressure,
float *  temp 
)

Definition at line 80 of file drv_ms4525.c.

void ms4525_async_update ( void  )

Definition at line 53 of file drv_ms4525.c.

bool ms4525_init ( void  )

Definition at line 40 of file drv_ms4525.c.

bool ms4525_present ( void  )

Definition at line 62 of file drv_ms4525.c.

static float sign ( float  x)
inlinestatic

Definition at line 35 of file drv_ms4525.c.

Variable Documentation

const uint8_t ADDR = 0x28
static

Definition at line 23 of file drv_ms4525.c.

uint8_t buf_[4]
static

Definition at line 24 of file drv_ms4525.c.

float diff_press_
static

Definition at line 25 of file drv_ms4525.c.

uint32_t last_update_ms_
static

Definition at line 28 of file drv_ms4525.c.

bool new_data_
static

Definition at line 29 of file drv_ms4525.c.

uint32_t next_update_ms_
static

Definition at line 27 of file drv_ms4525.c.

bool sensor_present_
static

Definition at line 30 of file drv_ms4525.c.

float temp_
static

Definition at line 26 of file drv_ms4525.c.



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