LibDriver MAX31856
Loading...
Searching...
No Matches
driver_max31856_interrupt.h
Go to the documentation of this file.
1
36
37#ifndef DRIVER_MAX31856_INTERRUPT_H
38#define DRIVER_MAX31856_INTERRUPT_H
39
41
42#ifdef __cplusplus
43extern "C"{
44#endif
45
50
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
59
68
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));
88
96uint8_t max31856_interrupt_deinit(void);
97
107uint8_t max31856_interrupt_read(double *temp_deg, uint8_t *fault);
108
118
122
123#ifdef __cplusplus
124}
125#endif
126
127#endif
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