27 #include <mraa/aio.hpp>
29 #include <mraa/gpio.hpp>
31 #include <mraa/spi.hpp>
64 static const uint8_t R_STS_READ_CMD = 0x00;
65 static const uint8_t R_STS_WRITE_CMD = 0x80;
66 static const uint8_t R_TEMPERATURE_LSB = 0x01;
67 static const uint8_t R_TEMPERATURE_MSB = 0x02;
69 static const uint8_t B_CONT_READING = 0x00;
101 mraa::Gpio m_csnPinCtx;
103 uint8_t readRegister (uint8_t reg);
104 void writeRegister (uint8_t reg, uint8_t data);
109 mraa::Result CSOn ();
114 mraa::Result CSOff ();
MAX31723(int csn)
Definition: max31723.cxx:34
API for the MAX31723 Temperature Sensor.
Definition: max31723.h:62
short getTemperature()
Definition: max31723.cxx:53
std::string name()
Definition: max31723.h:94