Markus Kreitzer
/
MAX31723
Library to interface with the MAX31723 PMON
Fork of MAX31855 by
max31723.h
- Committer:
- elec3647
- Date:
- 2018-01-24
- Revision:
- 2:c976447044ec
File content as of revision 2:c976447044ec:
#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