![]() |
LibDriver MAX31856
|
max31856 base driver modules More...
Data Structures | |
| struct | max31856_handle_s |
| max31856 handle structure definition More... | |
| struct | max31856_info_s |
| max31856 information structure definition More... | |
Typedefs | |
| typedef struct max31856_handle_s | max31856_handle_t |
| max31856 handle structure definition | |
| typedef struct max31856_info_s | max31856_info_t |
| max31856 information structure definition | |
Functions | |
| uint8_t | max31856_info (max31856_info_t *info) |
| get chip's information | |
| uint8_t | max31856_irq_handler (max31856_handle_t *handle) |
| irq handler | |
| uint8_t | max31856_init (max31856_handle_t *handle) |
| initialize the chip | |
| uint8_t | max31856_deinit (max31856_handle_t *handle) |
| close the chip | |
| uint8_t | max31856_single_read (max31856_handle_t *handle, int32_t *raw, double *deg) |
| read data from the chip once | |
| uint8_t | max31856_continuous_read (max31856_handle_t *handle, int32_t *raw, double *deg) |
| read data from the chip continuously | |
| uint8_t | max31856_start_continuous_read (max31856_handle_t *handle) |
| start the chip reading | |
| uint8_t | max31856_stop_continuous_read (max31856_handle_t *handle) |
| stop the chip reading | |
| uint8_t | max31856_read_cold_junction_temperature (max31856_handle_t *handle, int16_t *raw, double *deg) |
| read cold junction temperature | |
| uint8_t | max31856_set_open_circuit_detection (max31856_handle_t *handle, max31856_open_circuit_detection_t detection) |
| set open circuit detection | |
| uint8_t | max31856_get_open_circuit_detection (max31856_handle_t *handle, max31856_open_circuit_detection_t *detection) |
| get open circuit detection | |
| uint8_t | max31856_set_cold_junction_sensor (max31856_handle_t *handle, max31856_bool_t enable) |
| enable or disable cold junction sensor | |
| uint8_t | max31856_get_cold_junction_sensor (max31856_handle_t *handle, max31856_bool_t *enable) |
| get cold junction sensor status | |
| uint8_t | max31856_set_fault_mode (max31856_handle_t *handle, max31856_fault_mode_t mode) |
| set fault mode | |
| uint8_t | max31856_get_fault_mode (max31856_handle_t *handle, max31856_fault_mode_t *mode) |
| get fault mode | |
| uint8_t | max31856_clear_fault (max31856_handle_t *handle) |
| clear fault | |
| uint8_t | max31856_set_noise_rejection_filter (max31856_handle_t *handle, max31856_noise_rejection_filter_t filter) |
| set noise rejection filter | |
| uint8_t | max31856_get_noise_rejection_filter (max31856_handle_t *handle, max31856_noise_rejection_filter_t *filter) |
| get noise rejection filter | |
| uint8_t | max31856_set_sample_average (max31856_handle_t *handle, max31856_sample_average_t average) |
| set sample average | |
| uint8_t | max31856_get_sample_average (max31856_handle_t *handle, max31856_sample_average_t *average) |
| get sample average | |
| uint8_t | max31856_set_thermocouple_type (max31856_handle_t *handle, max31856_thermocouple_type_t type) |
| set thermocouple type | |
| uint8_t | max31856_get_thermocouple_type (max31856_handle_t *handle, max31856_thermocouple_type_t *type) |
| get thermocouple type | |
| uint8_t | max31856_set_fault_mask (max31856_handle_t *handle, max31856_fault_mask_t mask, max31856_bool_t enable) |
| set fault mask | |
| uint8_t | max31856_get_fault_mask (max31856_handle_t *handle, max31856_fault_mask_t mask, max31856_bool_t *enable) |
| get fault mask | |
| uint8_t | max31856_set_cold_junction_high_fault_threshold (max31856_handle_t *handle, int8_t threshold) |
| set cold junction high fault threshold | |
| uint8_t | max31856_get_cold_junction_high_fault_threshold (max31856_handle_t *handle, int8_t *threshold) |
| get cold junction high fault threshold | |
| uint8_t | max31856_set_cold_junction_low_fault_threshold (max31856_handle_t *handle, int8_t threshold) |
| set cold junction low fault threshold | |
| uint8_t | max31856_get_cold_junction_low_fault_threshold (max31856_handle_t *handle, int8_t *threshold) |
| get cold junction low fault threshold | |
| uint8_t | max31856_set_temperature_high_fault_threshold (max31856_handle_t *handle, int16_t threshold) |
| set temperature high fault threshold | |
| uint8_t | max31856_get_temperature_high_fault_threshold (max31856_handle_t *handle, int16_t *threshold) |
| get temperature high fault threshold | |
| uint8_t | max31856_set_temperature_low_fault_threshold (max31856_handle_t *handle, int16_t threshold) |
| set temperature low fault threshold | |
| uint8_t | max31856_get_temperature_low_fault_threshold (max31856_handle_t *handle, int16_t *threshold) |
| get temperature low fault threshold | |
| uint8_t | max31856_set_cold_junction_temperature_offset (max31856_handle_t *handle, int8_t offset) |
| set cold junction temperature offset | |
| uint8_t | max31856_get_cold_junction_temperature_offset (max31856_handle_t *handle, int8_t *offset) |
| get cold junction temperature offset | |
| uint8_t | max31856_set_cold_junction_temperature (max31856_handle_t *handle, int16_t temperature) |
| set cold junction temperature | |
| uint8_t | max31856_get_cold_junction_temperature (max31856_handle_t *handle, int16_t *temperature) |
| get cold junction temperature | |
| uint8_t | max31856_get_fault_status (max31856_handle_t *handle, uint8_t *status) |
| get fault status | |
| uint8_t | max31856_cold_junction_fault_threshold_convert_to_register (max31856_handle_t *handle, float deg, int8_t *reg) |
| convert the cold junction fault threshold to the register raw data | |
| uint8_t | max31856_cold_junction_fault_threshold_convert_to_data (max31856_handle_t *handle, int8_t reg, float *deg) |
| convert the register raw data to the cold junction fault threshold | |
| uint8_t | max31856_temperature_fault_threshold_convert_to_register (max31856_handle_t *handle, float deg, int16_t *reg) |
| convert the temperature fault threshold to the register raw data | |
| uint8_t | max31856_temperature_fault_threshold_convert_to_data (max31856_handle_t *handle, int16_t reg, float *deg) |
| convert the register raw data to the temperature fault threshold | |
| uint8_t | max31856_cold_junction_temperature_offset_convert_to_register (max31856_handle_t *handle, float deg, int8_t *reg) |
| convert the cold junction temperature offset to the register raw data | |
| uint8_t | max31856_cold_junction_temperature_offset_convert_to_data (max31856_handle_t *handle, int8_t reg, float *deg) |
| convert the register raw data to the cold junction temperature offset | |
| uint8_t | max31856_cold_junction_temperature_convert_to_register (max31856_handle_t *handle, float deg, int16_t *reg) |
| convert the cold junction temperature to the register raw data | |
| uint8_t | max31856_cold_junction_temperature_convert_to_data (max31856_handle_t *handle, int16_t reg, float *deg) |
| convert the register raw data to the cold junction temperature | |
max31856 base driver modules
| typedef struct max31856_handle_s max31856_handle_t |
max31856 handle structure definition
| typedef struct max31856_info_s max31856_info_t |
max31856 information structure definition
| enum max31856_bool_t |
max31856 bool enumeration definition
| Enumerator | |
|---|---|
| MAX31856_BOOL_FALSE | false |
| MAX31856_BOOL_TRUE | true |
Definition at line 62 of file driver_max31856.h.
max31856 fault mask enumeration definition
Definition at line 129 of file driver_max31856.h.
max31856 fault mode enumeration definition
| Enumerator | |
|---|---|
| MAX31856_FAULT_MODE_COMPARATOR | comparator mode |
| MAX31856_FAULT_MODE_INTERRUPT | interrupt mode |
Definition at line 82 of file driver_max31856.h.
max31856 fault status enumeration definition
Definition at line 142 of file driver_max31856.h.
max31856 noise rejection filter enumeration definition
| Enumerator | |
|---|---|
| MAX31856_NOISE_REJECTION_FILTER_60HZ | 60hz |
| MAX31856_NOISE_REJECTION_FILTER_50HZ | 50hz |
Definition at line 91 of file driver_max31856.h.
max31856 open circuit detection enumeration definition
Definition at line 71 of file driver_max31856.h.
max31856 sample average enumeration definition
| Enumerator | |
|---|---|
| MAX31856_SAMPLE_AVERAGE_1 | 1 sample |
| MAX31856_SAMPLE_AVERAGE_2 | 2 samples |
| MAX31856_SAMPLE_AVERAGE_4 | 4 samples |
| MAX31856_SAMPLE_AVERAGE_8 | 8 samples |
| MAX31856_SAMPLE_AVERAGE_16 | 16 samples |
Definition at line 100 of file driver_max31856.h.
max31856 thermocouple type enumeration definition
Definition at line 112 of file driver_max31856.h.
| uint8_t max31856_clear_fault | ( | max31856_handle_t * | handle | ) |
clear fault
| [in] | *handle | pointer to a max31856 handle structure |
Definition at line 836 of file driver_max31856.c.
| uint8_t max31856_cold_junction_fault_threshold_convert_to_data | ( | max31856_handle_t * | handle, |
| int8_t | reg, | ||
| float * | deg ) |
convert the register raw data to the cold junction fault threshold
| [in] | *handle | pointer to a max31856 handle structure |
| [in] | reg | register raw data |
| [out] | *deg | pointer to a degrees celsius buffer |
Definition at line 1722 of file driver_max31856.c.
| uint8_t max31856_cold_junction_fault_threshold_convert_to_register | ( | max31856_handle_t * | handle, |
| float | deg, | ||
| int8_t * | reg ) |
convert the cold junction fault threshold to the register raw data
| [in] | *handle | pointer to a max31856 handle structure |
| [in] | deg | degrees celsius |
| [out] | *reg | pointer to a register raw buffer |
Definition at line 1695 of file driver_max31856.c.
| uint8_t max31856_cold_junction_temperature_convert_to_data | ( | max31856_handle_t * | handle, |
| int16_t | reg, | ||
| float * | deg ) |
convert the register raw data to the cold junction temperature
| [in] | *handle | pointer to a max31856 handle structure |
| [in] | reg | register raw data |
| [out] | *deg | pointer to a degrees celsius buffer |
Definition at line 1884 of file driver_max31856.c.
| uint8_t max31856_cold_junction_temperature_convert_to_register | ( | max31856_handle_t * | handle, |
| float | deg, | ||
| int16_t * | reg ) |
convert the cold junction temperature to the register raw data
| [in] | *handle | pointer to a max31856 handle structure |
| [in] | deg | degrees celsius |
| [out] | *reg | pointer to a register raw buffer |
Definition at line 1857 of file driver_max31856.c.
| uint8_t max31856_cold_junction_temperature_offset_convert_to_data | ( | max31856_handle_t * | handle, |
| int8_t | reg, | ||
| float * | deg ) |
convert the register raw data to the cold junction temperature offset
| [in] | *handle | pointer to a max31856 handle structure |
| [in] | reg | register raw data |
| [out] | *deg | pointer to a degrees celsius buffer |
Definition at line 1830 of file driver_max31856.c.
| uint8_t max31856_cold_junction_temperature_offset_convert_to_register | ( | max31856_handle_t * | handle, |
| float | deg, | ||
| int8_t * | reg ) |
convert the cold junction temperature offset to the register raw data
| [in] | *handle | pointer to a max31856 handle structure |
| [in] | deg | degrees celsius |
| [out] | *reg | pointer to a register raw buffer |
Definition at line 1803 of file driver_max31856.c.
| uint8_t max31856_continuous_read | ( | max31856_handle_t * | handle, |
| int32_t * | raw, | ||
| double * | deg ) |
read data from the chip continuously
| [in] | *handle | pointer to a max31856 handle structure |
| [out] | *raw | pointer to a raw adc buffer |
| [out] | *deg | pointer to a converted temperature buffer |
Definition at line 378 of file driver_max31856.c.
| uint8_t max31856_deinit | ( | max31856_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to a max31856 handle structure |
Definition at line 193 of file driver_max31856.c.
| uint8_t max31856_get_cold_junction_high_fault_threshold | ( | max31856_handle_t * | handle, |
| int8_t * | threshold ) |
get cold junction high fault threshold
| [in] | *handle | pointer to a max31856 handle structure |
| [out] | *threshold | pointer to a fault threshold buffer |
Definition at line 1248 of file driver_max31856.c.
| uint8_t max31856_get_cold_junction_low_fault_threshold | ( | max31856_handle_t * | handle, |
| int8_t * | threshold ) |
get cold junction low fault threshold
| [in] | *handle | pointer to a max31856 handle structure |
| [out] | *threshold | pointer to a fault threshold buffer |
Definition at line 1322 of file driver_max31856.c.
| uint8_t max31856_get_cold_junction_sensor | ( | max31856_handle_t * | handle, |
| max31856_bool_t * | enable ) |
get cold junction sensor status
| [in] | *handle | pointer to a max31856 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 718 of file driver_max31856.c.
| uint8_t max31856_get_cold_junction_temperature | ( | max31856_handle_t * | handle, |
| int16_t * | temperature ) |
get cold junction temperature
| [in] | *handle | pointer to a max31856 handle structure |
| [out] | *temperature | pointer to a temperature buffer |
Definition at line 1621 of file driver_max31856.c.
| uint8_t max31856_get_cold_junction_temperature_offset | ( | max31856_handle_t * | handle, |
| int8_t * | offset ) |
get cold junction temperature offset
| [in] | *handle | pointer to a max31856 handle structure |
| [out] | *offset | pointer to a temperature offset buffer |
Definition at line 1546 of file driver_max31856.c.
| uint8_t max31856_get_fault_mask | ( | max31856_handle_t * | handle, |
| max31856_fault_mask_t | mask, | ||
| max31856_bool_t * | enable ) |
get fault mask
| [in] | *handle | pointer to a max31856 handle structure |
| [in] | mask | fault mask |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 1174 of file driver_max31856.c.
| uint8_t max31856_get_fault_mode | ( | max31856_handle_t * | handle, |
| max31856_fault_mode_t * | mode ) |
get fault mode
| [in] | *handle | pointer to a max31856 handle structure |
| [out] | *mode | pointer to a fault mode buffer |
Definition at line 800 of file driver_max31856.c.
| uint8_t max31856_get_fault_status | ( | max31856_handle_t * | handle, |
| uint8_t * | status ) |
get fault status
| [in] | *handle | pointer to a max31856 handle structure |
| [out] | *status | pointer to a fault status buffer |
Definition at line 1658 of file driver_max31856.c.
| uint8_t max31856_get_noise_rejection_filter | ( | max31856_handle_t * | handle, |
| max31856_noise_rejection_filter_t * | filter ) |
get noise rejection filter
| [in] | *handle | pointer to a max31856 handle structure |
| [out] | *filter | pointer to a noise rejection filter buffer |
Definition at line 926 of file driver_max31856.c.
| uint8_t max31856_get_open_circuit_detection | ( | max31856_handle_t * | handle, |
| max31856_open_circuit_detection_t * | detection ) |
get open circuit detection
| [in] | *handle | pointer to a max31856 handle structure |
| [out] | *detection | pointer to an open circuit detection buffer |
Definition at line 636 of file driver_max31856.c.
| uint8_t max31856_get_sample_average | ( | max31856_handle_t * | handle, |
| max31856_sample_average_t * | average ) |
get sample average
| [in] | *handle | pointer to a max31856 handle structure |
| [out] | *average | pointer to a sample average buffer |
Definition at line 1008 of file driver_max31856.c.
| uint8_t max31856_get_temperature_high_fault_threshold | ( | max31856_handle_t * | handle, |
| int16_t * | threshold ) |
get temperature high fault threshold
| [in] | *handle | pointer to a max31856 handle structure |
| [out] | *threshold | pointer to a fault threshold buffer |
Definition at line 1397 of file driver_max31856.c.
| uint8_t max31856_get_temperature_low_fault_threshold | ( | max31856_handle_t * | handle, |
| int16_t * | threshold ) |
get temperature low fault threshold
| [in] | *handle | pointer to a max31856 handle structure |
| [out] | *threshold | pointer to a fault threshold buffer |
Definition at line 1472 of file driver_max31856.c.
| uint8_t max31856_get_thermocouple_type | ( | max31856_handle_t * | handle, |
| max31856_thermocouple_type_t * | type ) |
get thermocouple type
| [in] | *handle | pointer to a max31856 handle structure |
| [out] | *type | pointer to a thermocouple type buffer |
Definition at line 1090 of file driver_max31856.c.
| uint8_t max31856_info | ( | max31856_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to a max31856 info structure |
Definition at line 2073 of file driver_max31856.c.
| uint8_t max31856_init | ( | max31856_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to a max31856 handle structure |
Definition at line 123 of file driver_max31856.c.
| uint8_t max31856_irq_handler | ( | max31856_handle_t * | handle | ) |
irq handler
| [in] | *handle | pointer to a max31856 handle structure |
Definition at line 1910 of file driver_max31856.c.
| uint8_t max31856_read_cold_junction_temperature | ( | max31856_handle_t * | handle, |
| int16_t * | raw, | ||
| double * | deg ) |
read cold junction temperature
| [in] | *handle | pointer to a max31856 handle structure |
| [out] | *raw | pointer to a raw adc buffer |
| [out] | *deg | pointer to a converted temperature buffer |
Definition at line 546 of file driver_max31856.c.
| uint8_t max31856_set_cold_junction_high_fault_threshold | ( | max31856_handle_t * | handle, |
| int8_t | threshold ) |
set cold junction high fault threshold
| [in] | *handle | pointer to a max31856 handle structure |
| [in] | threshold | fault threshold |
Definition at line 1211 of file driver_max31856.c.
| uint8_t max31856_set_cold_junction_low_fault_threshold | ( | max31856_handle_t * | handle, |
| int8_t | threshold ) |
set cold junction low fault threshold
| [in] | *handle | pointer to a max31856 handle structure |
| [in] | threshold | fault threshold |
Definition at line 1285 of file driver_max31856.c.
| uint8_t max31856_set_cold_junction_sensor | ( | max31856_handle_t * | handle, |
| max31856_bool_t | enable ) |
enable or disable cold junction sensor
| [in] | *handle | pointer to a max31856 handle structure |
| [in] | enable | bool value |
Definition at line 673 of file driver_max31856.c.
| uint8_t max31856_set_cold_junction_temperature | ( | max31856_handle_t * | handle, |
| int16_t | temperature ) |
set cold junction temperature
| [in] | *handle | pointer to a max31856 handle structure |
| [in] | temperature | input temperature |
Definition at line 1583 of file driver_max31856.c.
| uint8_t max31856_set_cold_junction_temperature_offset | ( | max31856_handle_t * | handle, |
| int8_t | offset ) |
set cold junction temperature offset
| [in] | *handle | pointer to a max31856 handle structure |
| [in] | offset | temperature offset |
Definition at line 1509 of file driver_max31856.c.
| uint8_t max31856_set_fault_mask | ( | max31856_handle_t * | handle, |
| max31856_fault_mask_t | mask, | ||
| max31856_bool_t | enable ) |
set fault mask
| [in] | *handle | pointer to a max31856 handle structure |
| [in] | mask | fault mask |
| [in] | enable | bool value |
Definition at line 1128 of file driver_max31856.c.
| uint8_t max31856_set_fault_mode | ( | max31856_handle_t * | handle, |
| max31856_fault_mode_t | mode ) |
set fault mode
| [in] | *handle | pointer to a max31856 handle structure |
| [in] | mode | fault mode |
Definition at line 755 of file driver_max31856.c.
| uint8_t max31856_set_noise_rejection_filter | ( | max31856_handle_t * | handle, |
| max31856_noise_rejection_filter_t | filter ) |
set noise rejection filter
| [in] | *handle | pointer to a max31856 handle structure |
| [in] | filter | noise rejection filter |
Definition at line 881 of file driver_max31856.c.
| uint8_t max31856_set_open_circuit_detection | ( | max31856_handle_t * | handle, |
| max31856_open_circuit_detection_t | detection ) |
set open circuit detection
| [in] | *handle | pointer to a max31856 handle structure |
| [in] | detection | open circuit detection |
Definition at line 591 of file driver_max31856.c.
| uint8_t max31856_set_sample_average | ( | max31856_handle_t * | handle, |
| max31856_sample_average_t | average ) |
set sample average
| [in] | *handle | pointer to a max31856 handle structure |
| [in] | average | sample average |
Definition at line 963 of file driver_max31856.c.
| uint8_t max31856_set_temperature_high_fault_threshold | ( | max31856_handle_t * | handle, |
| int16_t | threshold ) |
set temperature high fault threshold
| [in] | *handle | pointer to a max31856 handle structure |
| [in] | threshold | fault threshold |
Definition at line 1359 of file driver_max31856.c.
| uint8_t max31856_set_temperature_low_fault_threshold | ( | max31856_handle_t * | handle, |
| int16_t | threshold ) |
set temperature low fault threshold
| [in] | *handle | pointer to a max31856 handle structure |
| [in] | threshold | fault threshold |
Definition at line 1434 of file driver_max31856.c.
| uint8_t max31856_set_thermocouple_type | ( | max31856_handle_t * | handle, |
| max31856_thermocouple_type_t | type ) |
set thermocouple type
| [in] | *handle | pointer to a max31856 handle structure |
| [in] | type | thermocouple type |
Definition at line 1045 of file driver_max31856.c.
| uint8_t max31856_single_read | ( | max31856_handle_t * | handle, |
| int32_t * | raw, | ||
| double * | deg ) |
read data from the chip once
| [in] | *handle | pointer to a max31856 handle structure |
| [out] | *raw | pointer to a raw adc buffer |
| [out] | *deg | pointer to a converted temperature buffer |
Definition at line 252 of file driver_max31856.c.
| uint8_t max31856_start_continuous_read | ( | max31856_handle_t * | handle | ) |
start the chip reading
| [in] | *handle | pointer to a max31856 handle structure |
Definition at line 455 of file driver_max31856.c.
| uint8_t max31856_stop_continuous_read | ( | max31856_handle_t * | handle | ) |
stop the chip reading
| [in] | *handle | pointer to a max31856 handle structure |
Definition at line 500 of file driver_max31856.c.
| uint8_t max31856_temperature_fault_threshold_convert_to_data | ( | max31856_handle_t * | handle, |
| int16_t | reg, | ||
| float * | deg ) |
convert the register raw data to the temperature fault threshold
| [in] | *handle | pointer to a max31856 handle structure |
| [in] | reg | register raw data |
| [out] | *deg | pointer to a degrees celsius buffer |
Definition at line 1776 of file driver_max31856.c.
| uint8_t max31856_temperature_fault_threshold_convert_to_register | ( | max31856_handle_t * | handle, |
| float | deg, | ||
| int16_t * | reg ) |
convert the temperature fault threshold to the register raw data
| [in] | *handle | pointer to a max31856 handle structure |
| [in] | deg | degrees celsius |
| [out] | *reg | pointer to a register raw buffer |
Definition at line 1749 of file driver_max31856.c.