Definition in file max31865.h.
#include "periph/spi.h"
Go to the source code of this file.
Data Structures | |
struct | max31865_params_t |
Device initialization parameters. More... | |
struct | max31865_t |
Device descriptor for the driver. More... | |
Enumerations | |
enum | max31865_lutcols_t { MAX31865_LUTCOL_CODE = 0 , MAX31865_LUTCOL_TEMP = 1 , MAX31865_LUTCOL_A0 = 2 , MAX31865_LUTCOL_A1 = 3 , MAX31865_LUTCOL_NUMOF } |
Lookup table column indexes. More... | |
enum | max31865_fault_t { MAX31865_FAULT_NO_FAULT = 0 , MAX31865_FAULT_RTD_HIGH = 1 , MAX31865_FAULT_RTD_LOW = 2 , MAX31865_FAULT_CIRCUIT = 3 , MAX31865_FAULT_VOLTAGE = 4 } |
Fault status of the MAX31865. More... | |
Functions | |
int | max31865_init (max31865_t *dev, const max31865_params_t *params) |
Initialize the given device. More... | |
void | max31865_clear_fault (const max31865_t *dev, uint8_t *config) |
Clear the fault flag. More... | |
int | max31865_read (const max31865_t *dev, int32_t *rtd_temperature_cdegc) |
Read data from the MAX31865. More... | |
int | max31865_read_raw (const max31865_t *dev, uint16_t *raw_data) |
Read raw data from the MAX31865. More... | |
int | max31865_raw_to_data (const max31865_t *dev, uint16_t raw_data, int32_t *rtd_temperature_cdegc) |
Convert the raw data from the MAX31865 temperature. More... | |
int | max31865_detect_fault (const max31865_t *dev, max31865_fault_t *flt_code) |
Run an automatic fault-detection cycle. More... | |
void | max31865_switch_vbias (const max31865_t *dev, bool enable) |
Switch VBIAS on or off. More... | |
void | max31865_oneshot (const max31865_t *dev) |
Start a one-shot conversion. More... | |