LibDriver MAX31856
Loading...
Searching...
No Matches
driver_max31856_basic.h
Go to the documentation of this file.
1
36
37#ifndef DRIVER_MAX31856_BASIC_H
38#define DRIVER_MAX31856_BASIC_H
39
41
42#ifdef __cplusplus
43extern "C"{
44#endif
45
52
56#define MAX31856_BASIC_DEFAULT_OPEN_CIRCUIT_DETECTION MAX31856_OPEN_CIRCUIT_DETECTION_MODE3
57#define MAX31856_BASIC_DEFAULT_FAULT_MODE MAX31856_FAULT_MODE_INTERRUPT
58#define MAX31856_BASIC_DEFAULT_NOISE_REJECTION_FILTER MAX31856_NOISE_REJECTION_FILTER_50HZ
59#define MAX31856_BASIC_DEFAULT_SAMPLE_AVERAGE MAX31856_SAMPLE_AVERAGE_16
60#define MAX31856_BASIC_DEFAULT_COLD_JUNCTION_TEMPERATURE_OFFSET 0.0f
61
71
79uint8_t max31856_basic_deinit(void);
80
90uint8_t max31856_basic_read(double *temp_deg, uint8_t *fault);
91
100uint8_t max31856_basic_read_cold_junction_temperature(double *temp_deg);
101
105
106#ifdef __cplusplus
107}
108#endif
109
110#endif
driver max31856 interface header file
max31856_thermocouple_type_t
max31856 thermocouple type enumeration definition
uint8_t max31856_basic_init(max31856_thermocouple_type_t type)
basic example init
uint8_t max31856_basic_deinit(void)
basic example deinit
uint8_t max31856_basic_read(double *temp_deg, uint8_t *fault)
basic example read the temperature
uint8_t max31856_basic_read_cold_junction_temperature(double *temp_deg)
basic example read the cold junction temperature