37#ifndef DRIVER_MAX31856_INTERRUPT_H
38#define DRIVER_MAX31856_INTERRUPT_H
54#define MAX31856_INTERRUPT_DEFAULT_OPEN_CIRCUIT_DETECTION MAX31856_OPEN_CIRCUIT_DETECTION_MODE3
55#define MAX31856_INTERRUPT_DEFAULT_FAULT_MODE MAX31856_FAULT_MODE_INTERRUPT
56#define MAX31856_INTERRUPT_DEFAULT_NOISE_REJECTION_FILTER MAX31856_NOISE_REJECTION_FILTER_50HZ
57#define MAX31856_INTERRUPT_DEFAULT_SAMPLE_AVERAGE MAX31856_SAMPLE_AVERAGE_16
58#define MAX31856_INTERRUPT_DEFAULT_COLD_JUNCTION_TEMPERATURE_OFFSET 0.0f
83 float cold_junction_low_fault_threshold_deg,
84 float cold_junction_high_fault_threshold_deg,
85 float temperature_low_fault_threshold_deg,
86 float temperature_high_fault_threshold_deg,
87 void (*callback)(uint8_t type));
driver max31856 interface header file
max31856_thermocouple_type_t
max31856 thermocouple type enumeration definition
uint8_t max31856_interrupt_init(max31856_thermocouple_type_t type, float cold_junction_low_fault_threshold_deg, float cold_junction_high_fault_threshold_deg, float temperature_low_fault_threshold_deg, float temperature_high_fault_threshold_deg, void(*callback)(uint8_t type))
interrupt example init
uint8_t max31856_interrupt_deinit(void)
interrupt example deinit
uint8_t max31856_interrupt_irq_handler(void)
interrupt irq callback
uint8_t max31856_interrupt_read(double *temp_deg, uint8_t *fault)
interrupt example read the temperature
uint8_t max31856_interrupt_read_cold_junction_temperature(double *temp_deg)
interrupt example read the cold junction temperature