Library to interface with the MAX31723 PMON

Dependencies:   mbed

Fork of MAX31855 by Joe Staton

Revision:
2:c976447044ec
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/max31723.h	Wed Jan 24 15:17:51 2018 +0000
@@ -0,0 +1,31 @@
+#ifndef MAX31723_h
+#define MAX31723_h
+
+#include "mbed.h"
+
+class max31723
+{
+    SPI& spi;
+    DigitalOut ncs;
+    Timer pollTimer;
+  public:
+  
+    max31723(SPI& _spi, PinName _ncs);
+    void select();
+    void deselect();
+    void initialise(int setType=0);
+    
+    int ready();
+    int faultCode;
+    
+    float chipTemp;
+    float read_temp();
+  private:
+    PinName _CS_pin;
+    PinName _SO_pin;
+    PinName _SCK_pin;
+    int _units;
+    float _error;
+};
+
+#endif