Driver for Freescale MPL115A1 and MPL115A2 pressure sensors.
All correct at time of writing, but as always, manufacturers love to move things around on their website.
This code has been tested using a SparkFun MPL115A1 breakout:
This was wired to a CoreProto and plugged into a SenseCore:
And finally installed on a SolderCore:
The polynomial used for pressure compensation is based on the Revision 6 LPC115A1 datasheet, published 10/2011:
The Revision 4 MPL115A1 datasheet, published 03/2010, uses a slightly different method with additional coefficients:
Freescale note that c11 and c22 were always set to zero in MPL115A devices and, therefore, the Revision 6 calculation is preferred (and equivalent in practice).
|MPL115A2_I2C_ADDRESS||MPL115A2 8-bit I2C address|
|mpl115a_initialize_i2c||Initialize sensor on I2C bus|
|mpl115a_initialize_spi||Initialize sensor on SPI interface|