MPL115A1 sensor library
MPL115A1.h
- Committer:
- jurica238814
- Date:
- 2018-12-12
- Revision:
- 2:97c80e1c0ab2
- Parent:
- 1:3b754d29069f
File content as of revision 2:97c80e1c0ab2:
/**
* aconno.de
*/
#include "mbed.h"
#ifndef __MPL115A1_H__
#define __MPL115A1_H__
class MPL115A1{
public:
MPL115A1(SPI &spi, DigitalOut &cs);
float getPressure();
private:
SPI &spi;
DigitalOut &cs;
float getA0();
float getB1();
float getB2();
float getC12();
uint16_t getPadc();
uint16_t getTadc();
};
#endif // __MPL115A1_H__