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) |
| Covert 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
Covert read voltage from MPXX6115A Pressure Sensor in hPascal value.
The convertion formula may be consulted on costructor datasheet (see Freescale Semiconductor MP3H6115A, MPXAZ6115A).
- Parameters:
-
vout output voltage read from pin sensor. vref reference voltage that supplies the MPXX6115A sensor.
- Returns:
- interger 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.
