aconno acnsensa project for iOS devices with iBeacon packets support.
Dependencies: LSM9DS1 Si7006A20 aconno_SEGGER_RTT aconno_bsp adc52832_common
Diff: MPL115A1/MPL115A1.h
- Revision:
- 1:326ce5e200fb
- Child:
- 3:78ceda8ef565
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MPL115A1/MPL115A1.h Wed Dec 13 09:37:21 2017 +0000 @@ -0,0 +1,22 @@ + +#define a0_frac_bits 3 +#define b1_frac_bits 13 +#define b2_frac_bits 14 +#define c12_frac_bits 22 +#define a0_frac_mask 0x0007 +#define b1_frac_mask 0x1FFF +#define b2_frac_mask 0x3FFF +#define c12_frac_mask 0x1FFF + +#include "mbed.h" +#include "nrf52_digital.h" + +class MPL115A1{ + public: + MPL115A1(SPI &spi, NRF52_DigitalOut &cs); + float getPressure(); + private: + SPI &spi; + NRF52_DigitalOut &cs; +}; +