max31855_fault_t
Fault status of the MAX31855.
void max31855_read_raw(max31855_t *dev, uint32_t *data)
Read raw data from the MAX31855.
void max31855_raw_to_data(uint32_t raw_data, max31855_data_t *data)
Parse the raw data from the MAX31855 to the data structure.
int max31855_read(max31855_t *dev, max31855_data_t *data)
Read data from the MAX31855.
int max31855_init(max31855_t *dev, const max31855_params_t *params)
Initialize the given device.
@ MAX31855_FAULT_NO_FAULT
No fault.
@ MAX31855_FAULT_VCC_SHORT
VCC short-circuit.
@ MAX31855_FAULT_GND_SHORT
GND short-circuit.
@ MAX31855_FAULT_OPEN_CIRCUIT
Open circuit.
gpio_t spi_cs_t
Chip select pin type overlaps with gpio_t so it can be casted to this.
Low-level SPI peripheral driver interface definition.
Data structure for the MAX31855.
int32_t internal_temperature
Internal temperature in centi degrees C.
max31855_fault_t fault
Fault status.
int32_t thermocouple_temperature
Thermocouple temperature in centi degrees C.
Device initialization parameters.
spi_cs_t cs_pin
Chip select pin.
Device descriptor for the driver.
const max31855_params_t * params
device configuration