Markus Kreitzer
/
MAX31723
Library to interface with the MAX31723 PMON
Fork of MAX31855 by
Diff: max31855.h
- Revision:
- 2:c976447044ec
- Parent:
- 1:5eeee89cb281
diff -r 5eeee89cb281 -r c976447044ec max31855.h --- a/max31855.h Tue Oct 23 10:51:21 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -#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 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