114 static constexpr uint8_t CR0_CMODE = 0x1 << 7;
115 static constexpr uint8_t CR0_OCFAULT_0 = 0x1 << 4;
116 static constexpr uint8_t SR_OPEN = 0x1 << 0;
118 static constexpr float TC_TEMP_LSB_VALUE = 0.007812;
119 static constexpr float CJ_TEMP_LSB_VALUE = 0.0625;
static PrintLogger getLogger(const string &name)
MAX31855 thermocouple sensor driver.
MAX31856Data sampleImpl() override
Read a data sample from the sensor. In case of errors, the method should return the last available co...
bool checkConnected()
Checks whether the thermocouple is connected or not.
bool selfTest()
Check if the sensor is working.
bool init()
Initialize the sensor.
static SPIBusConfig getDefaultSPIConfig()
void setColdJunctionOffset(float offset)
void setThermocoupleType(ThermocoupleType type)
MAX31856(SPIBusInterface &bus, miosix::GpioPin cs, SPIBusConfig config=getDefaultSPIConfig(), ThermocoupleType type=ThermocoupleType::K_TYPE)
Interface for low level access of a SPI bus as a master.
Base sensor class with has to be extended by any sensor driver.
This file includes all the types the logdecoder script will decode.
SPI Bus configuration for a specific slave.
Contains information about a single SPI slave device.