a
Dependents: 0A101_mDot_Sensor_Rev3_AUS 601_mDot_Sensor_RevJT_AUS
max31855.h
- Committer:
- jortronm2
- Date:
- 2018-01-04
- Revision:
- 0:e5b2ddf1f113
File content as of revision 0:e5b2ddf1f113:
#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(); uint8_t read_temp_raw(int16_t *temperature); private: PinName _CS_pin; PinName _SO_pin; PinName _SCK_pin; int _units; float _error; }; #endif