MPL115A1 sensor library

MPL115A1.h

Committer:
jurica238814
Date:
2018-12-12
Revision:
1:3b754d29069f
Child:
2:97c80e1c0ab2

File content as of revision 1:3b754d29069f:

/**
 * aconno.de
 */

#include "mbed.h"
#include "nrf52_digital.h"

#ifndef __MPL115A1_H__
#define __MPL115A1_H__

class MPL115A1{
    public:
        MPL115A1(SPI &spi, NRF52_DigitalOut &cs);
        float getPressure();
    private:
        SPI &spi;
        NRF52_DigitalOut &cs;
        float getA0();
        float getB1();
        float getB2();
        float getC12();
        uint16_t getPadc();
        uint16_t getTadc();
};

#endif // __MPL115A1_H__