28 #include <mraa/gpio.h>
51 static const uint8_t R_STS_READ_CMD = 0x00;
52 static const uint8_t R_STS_WRITE_CMD = 0x80;
53 static const uint8_t R_TEMPERATURE_LSB = 0x01;
54 static const uint8_t R_TEMPERATURE_MSB = 0x02;
56 static const uint8_t B_CONT_READING = 0x00;
85 mraa_spi_context m_spi;
86 mraa_gpio_context m_csnPinCtx;
88 uint8_t readRegister (uint8_t reg);
89 void writeRegister (uint8_t reg, uint8_t data);
94 mraa_result_t CSOn ();
99 mraa_result_t CSOff ();
MAX31723(int csn)
Definition: max31723.cxx:40
C++ API for MAX31723 chip (Temperature sensor)
Definition: max31723.h:49
~MAX31723()
Definition: max31723.cxx:67
short getTemperature()
Definition: max31723.cxx:81
std::string name()
Definition: max31723.h:79