aconno acnsensa project for iOS devices with iBeacon packets support.

Dependencies:   LSM9DS1 Si7006A20 aconno_SEGGER_RTT aconno_bsp adc52832_common

Committer:
Dautor
Date:
Wed Dec 13 09:37:21 2017 +0000
Revision:
1:326ce5e200fb
Child:
3:78ceda8ef565
Code refactoring.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Dautor 1:326ce5e200fb 1
Dautor 1:326ce5e200fb 2 #define a0_frac_bits 3
Dautor 1:326ce5e200fb 3 #define b1_frac_bits 13
Dautor 1:326ce5e200fb 4 #define b2_frac_bits 14
Dautor 1:326ce5e200fb 5 #define c12_frac_bits 22
Dautor 1:326ce5e200fb 6 #define a0_frac_mask 0x0007
Dautor 1:326ce5e200fb 7 #define b1_frac_mask 0x1FFF
Dautor 1:326ce5e200fb 8 #define b2_frac_mask 0x3FFF
Dautor 1:326ce5e200fb 9 #define c12_frac_mask 0x1FFF
Dautor 1:326ce5e200fb 10
Dautor 1:326ce5e200fb 11 #include "mbed.h"
Dautor 1:326ce5e200fb 12 #include "nrf52_digital.h"
Dautor 1:326ce5e200fb 13
Dautor 1:326ce5e200fb 14 class MPL115A1{
Dautor 1:326ce5e200fb 15 public:
Dautor 1:326ce5e200fb 16 MPL115A1(SPI &spi, NRF52_DigitalOut &cs);
Dautor 1:326ce5e200fb 17 float getPressure();
Dautor 1:326ce5e200fb 18 private:
Dautor 1:326ce5e200fb 19 SPI &spi;
Dautor 1:326ce5e200fb 20 NRF52_DigitalOut &cs;
Dautor 1:326ce5e200fb 21 };
Dautor 1:326ce5e200fb 22