mpxx6115a.h File Reference
Covert read voltage from MPXX6115A Pressure Sensor in hPascal value. More...
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
Covert read voltage from MPXX6115A Pressure Sensor in hPascal value.
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 61 of file mpxx6115a.h.
