Techshop JAPANのボランティアリフロープログラムです。誰か改造して

Fork of MAX31855 by Joe Staton

Revision:
0:656c522152d4
Child:
1:5eeee89cb281
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/max31855.h	Thu Aug 16 12:46:52 2012 +0000
@@ -0,0 +1,30 @@
+#ifndef MAX31855_h
+#define MAX31855_h
+
+#include "mbed.h"
+
+class max31855
+{
+    SPI& spi;
+    DigitalOut ncs;
+    Timer pollTimer;
+  public:
+  
+    max31855(SPI& _spi, PinName _ncs);
+    void select();
+    void deselect();
+    void initialise();
+    
+    int ready();
+    
+    float chipTemp;
+    float read_temp();
+  private:
+    PinName _CS_pin;
+    PinName _SO_pin;
+    PinName _SCK_pin;
+    int _units;
+    float _error;
+};
+
+#endif