Jurica Resetar / aconnoMPL115A1
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MPL115A1.h Source File

MPL115A1.h

00001 /**
00002  * aconno.de
00003  */
00004 
00005 #include "mbed.h"
00006 
00007 #ifndef __MPL115A1_H__
00008 #define __MPL115A1_H__
00009 
00010 class MPL115A1{
00011     public:
00012         MPL115A1(SPI &spi, DigitalOut &cs);
00013         float getPressure();
00014     private:
00015         SPI &spi;
00016         DigitalOut &cs;
00017         float getA0();
00018         float getB1();
00019         float getB2();
00020         float getC12();
00021         uint16_t getPadc();
00022         uint16_t getTadc();
00023 };
00024 
00025 #endif // __MPL115A1_H__