mpxx6115a.h File Reference
MPXX6115A Pressure Sensor convert formula. More...
#include <drv/adc.h>Go to the source code of this file.
Functions | |
| int16_t | mpxx6115a_press (adcread_t vout, adcread_t vref) |
| Convert read voltage from MPXX6115A Pressure Sensor in hPascal value. | |
Detailed Description
MPXX6115A Pressure Sensor convert formula.
This module convert read voltage value from MPXX6115A pressure sensor into hPascal value unit.
Definition in file mpxx6115a.h.
Function Documentation
Convert read voltage from MPXX6115A Pressure Sensor in hPascal value.
The conversion formula may be consulted on constructor datasheet (see Freescale Semiconductor MP3H6115A, MPXAZ6115A).
- Parameters:
-
vout output voltage read from pin sensor. vref reference voltage that supplies the MPXX6115A sensor.
- Returns:
- integer value that represent measured pressure in hPascal.
- Note:
- : To compute the pressure we use the Vout/Vref ratio, so these two values can be expressed in any unit, even ADC levels.
Definition at line 70 of file mpxx6115a.h.
