![]() |
LibDriver MAX31865
|
max31865 base driver modules More...
Data Structures | |
| struct | max31865_handle_s |
| max31865 handle structure definition More... | |
| struct | max31865_info_s |
| max31865 information structure definition More... | |
Typedefs | |
| typedef struct max31865_handle_s | max31865_handle_t |
| max31865 handle structure definition | |
| typedef struct max31865_info_s | max31865_info_t |
| max31865 information structure definition | |
Functions | |
| uint8_t | max31865_info (max31865_info_t *info) |
| get chip's information | |
| uint8_t | max31865_init (max31865_handle_t *handle) |
| initialize the chip | |
| uint8_t | max31865_deinit (max31865_handle_t *handle) |
| close the chip | |
| uint8_t | max31865_single_read (max31865_handle_t *handle, uint16_t *raw, float *temp) |
| read data once | |
| uint8_t | max31865_start_continuous_read (max31865_handle_t *handle) |
| start reading | |
| uint8_t | max31865_stop_continuous_read (max31865_handle_t *handle) |
| stop reading | |
| uint8_t | max31865_continuous_read (max31865_handle_t *handle, uint16_t *raw, float *temp) |
| read data continuously | |
| uint8_t | max31865_set_filter_select (max31865_handle_t *handle, max31865_filter_select_t filter) |
| set the filter type | |
| uint8_t | max31865_get_filter_select (max31865_handle_t *handle, max31865_filter_select_t *filter) |
| get the filter type | |
| uint8_t | max31865_set_wire (max31865_handle_t *handle, max31865_wire_t wire) |
| set the pt resistor wire | |
| uint8_t | max31865_get_wire (max31865_handle_t *handle, max31865_wire_t *wire) |
| get the pt resistor wire | |
| uint8_t | max31865_set_reference_resistor (max31865_handle_t *handle, float value) |
| set the reference resistor | |
| uint8_t | max31865_get_reference_resistor (max31865_handle_t *handle, float *value) |
| get the reference resistor | |
| uint8_t | max31865_set_resistor (max31865_handle_t *handle, max31865_resistor_t resistor) |
| set the pt resistor | |
| uint8_t | max31865_get_resistor (max31865_handle_t *handle, max31865_resistor_t *resistor) |
| get the pt resistor | |
| uint8_t | max31865_set_vbias (max31865_handle_t *handle, max31865_bool_t enable) |
| set the chip vbias | |
| uint8_t | max31865_get_vbias (max31865_handle_t *handle, max31865_bool_t *enable) |
| get the chip vbias | |
| uint8_t | max31865_clear_fault_status (max31865_handle_t *handle) |
| clear all fault status | |
| uint8_t | max31865_get_fault_status (max31865_handle_t *handle, uint8_t *status) |
| get the fault status | |
| uint8_t | max31865_set_high_fault_threshold (max31865_handle_t *handle, uint16_t threshold) |
| set the high fault threshold | |
| uint8_t | max31865_get_high_fault_threshold (max31865_handle_t *handle, uint16_t *threshold) |
| get the high fault threshold | |
| uint8_t | max31865_set_low_fault_threshold (max31865_handle_t *handle, uint16_t threshold) |
| set the low fault threshold | |
| uint8_t | max31865_get_low_fault_threshold (max31865_handle_t *handle, uint16_t *threshold) |
| get the low fault threshold | |
| uint8_t | max31865_set_fault_detection_cycle_control (max31865_handle_t *handle, max31865_fault_detection_cycle_control_t control) |
| set the fault detection cycle control | |
| uint8_t | max31865_get_fault_detection_cycle_control (max31865_handle_t *handle, max31865_fault_detection_cycle_control_status_t *status) |
| get the fault detection cycle control | |
max31865 base driver modules
| typedef struct max31865_handle_s max31865_handle_t |
max31865 handle structure definition
| typedef struct max31865_info_s max31865_info_t |
max31865 information structure definition
| enum max31865_bool_t |
max31865 bool enumeration definition
| Enumerator | |
|---|---|
| MAX31865_BOOL_FALSE | disable function |
| MAX31865_BOOL_TRUE | enable function |
Definition at line 64 of file driver_max31865.h.
max31865 fault detection cycle control status enumeration definition
Definition at line 112 of file driver_max31865.h.
max31865 fault detection cycle control enumeration definition
Definition at line 101 of file driver_max31865.h.
max31865 fault status enumeration definition
Definition at line 123 of file driver_max31865.h.
max31865 filter select enumeration definition
| Enumerator | |
|---|---|
| MAX31865_FILTER_SELECT_60HZ | 60Hz noise filter |
| MAX31865_FILTER_SELECT_50HZ | 50Hz noise filter |
Definition at line 92 of file driver_max31865.h.
| enum max31865_resistor_t |
max31865 resistor type enumeration definition
| Enumerator | |
|---|---|
| MAX31865_RESISTOR_100PT | 100pt resistor type |
| MAX31865_RESISTOR_1000PT | 1000pt resistor type |
Definition at line 83 of file driver_max31865.h.
| enum max31865_wire_t |
max31865 wire type enumeration definition
| Enumerator | |
|---|---|
| MAX31865_WIRE_2 | 2 wire mode |
| MAX31865_WIRE_3 | 3 wire mode |
| MAX31865_WIRE_4 | 4 wire mode |
Definition at line 73 of file driver_max31865.h.
| uint8_t max31865_clear_fault_status | ( | max31865_handle_t * | handle | ) |
clear all fault status
| [in] | *handle | pointer to a max31865 handle structure |
Definition at line 561 of file driver_max31865.c.
| uint8_t max31865_continuous_read | ( | max31865_handle_t * | handle, |
| uint16_t * | raw, | ||
| float * | temp ) |
read data continuously
| [in] | *handle | pointer to a max31865 handle structure |
| [out] | *raw | pointer to a raw temperature buffer |
| [out] | *temp | pointer to a converted temperature buffer |
Definition at line 1012 of file driver_max31865.c.
| uint8_t max31865_deinit | ( | max31865_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to a max31865 handle structure |
Definition at line 186 of file driver_max31865.c.
| uint8_t max31865_get_fault_detection_cycle_control | ( | max31865_handle_t * | handle, |
| max31865_fault_detection_cycle_control_status_t * | status ) |
get the fault detection cycle control
| [in] | *handle | pointer to a max31865 handle structure |
| [out] | *status | pointer to a fault detection cycle buffer |
Definition at line 798 of file driver_max31865.c.
| uint8_t max31865_get_fault_status | ( | max31865_handle_t * | handle, |
| uint8_t * | status ) |
get the fault status
| [in] | *handle | pointer to a max31865 handle structure |
| [out] | *status | pointer to a fault status buffer |
Definition at line 598 of file driver_max31865.c.
| uint8_t max31865_get_filter_select | ( | max31865_handle_t * | handle, |
| max31865_filter_select_t * | filter ) |
get the filter type
| [in] | *handle | pointer to a max31865 handle structure |
| [out] | *filter | pointer to a filter type buffer |
Definition at line 273 of file driver_max31865.c.
| uint8_t max31865_get_high_fault_threshold | ( | max31865_handle_t * | handle, |
| uint16_t * | threshold ) |
get the high fault threshold
| [in] | *handle | pointer to a max31865 handle structure |
| [out] | *threshold | pointer to a high fault threshold buffer |
Definition at line 654 of file driver_max31865.c.
| uint8_t max31865_get_low_fault_threshold | ( | max31865_handle_t * | handle, |
| uint16_t * | threshold ) |
get the low fault threshold
| [in] | *handle | pointer to a max31865 handle structure |
| [out] | *threshold | pointer to a low fault threshold buffer |
Definition at line 723 of file driver_max31865.c.
| uint8_t max31865_get_reference_resistor | ( | max31865_handle_t * | handle, |
| float * | value ) |
get the reference resistor
| [in] | *handle | pointer to a max31865 handle structure |
| [out] | *value | pointer to a reference resistor buffer |
Definition at line 409 of file driver_max31865.c.
| uint8_t max31865_get_resistor | ( | max31865_handle_t * | handle, |
| max31865_resistor_t * | resistor ) |
get the pt resistor
| [in] | *handle | pointer to a max31865 handle structure |
| [out] | *resistor | pointer to a pt resistor type value buffer |
Definition at line 461 of file driver_max31865.c.
| uint8_t max31865_get_vbias | ( | max31865_handle_t * | handle, |
| max31865_bool_t * | enable ) |
get the chip vbias
| [in] | *handle | pointer to a max31865 handle structure |
| [out] | *enable | pointer to a bool value buffer |
Definition at line 525 of file driver_max31865.c.
| uint8_t max31865_get_wire | ( | max31865_handle_t * | handle, |
| max31865_wire_t * | wire ) |
get the pt resistor wire
| [in] | *handle | pointer to a max31865 handle structure |
| [out] | *wire | pointer to a pt resistor wire type buffer |
Definition at line 347 of file driver_max31865.c.
| uint8_t max31865_info | ( | max31865_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to a max31865 info structure |
Definition at line 1119 of file driver_max31865.c.
| uint8_t max31865_init | ( | max31865_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to a max31865 handle structure |
Definition at line 123 of file driver_max31865.c.
| uint8_t max31865_set_fault_detection_cycle_control | ( | max31865_handle_t * | handle, |
| max31865_fault_detection_cycle_control_t | control ) |
set the fault detection cycle control
| [in] | *handle | pointer to a max31865 handle structure |
| [in] | control | fault detection cycle |
Definition at line 761 of file driver_max31865.c.
| uint8_t max31865_set_filter_select | ( | max31865_handle_t * | handle, |
| max31865_filter_select_t | filter ) |
set the filter type
| [in] | *handle | pointer to a max31865 handle structure |
| [in] | filter | filter type and it can be 50Hz or 60Hz |
Definition at line 236 of file driver_max31865.c.
| uint8_t max31865_set_high_fault_threshold | ( | max31865_handle_t * | handle, |
| uint16_t | threshold ) |
set the high fault threshold
| [in] | *handle | pointer to a max31865 handle structure |
| [in] | threshold | high fault threshold |
Definition at line 623 of file driver_max31865.c.
| uint8_t max31865_set_low_fault_threshold | ( | max31865_handle_t * | handle, |
| uint16_t | threshold ) |
set the low fault threshold
| [in] | *handle | pointer to a max31865 handle structure |
| [in] | threshold | low fault threshold |
Definition at line 692 of file driver_max31865.c.
| uint8_t max31865_set_reference_resistor | ( | max31865_handle_t * | handle, |
| float | value ) |
set the reference resistor
| [in] | *handle | pointer to a max31865 handle structure |
| [in] | value | reference resistor value |
Definition at line 383 of file driver_max31865.c.
| uint8_t max31865_set_resistor | ( | max31865_handle_t * | handle, |
| max31865_resistor_t | resistor ) |
set the pt resistor
| [in] | *handle | pointer to a max31865 handle structure |
| [in] | resistor | pt resistor type value |
Definition at line 435 of file driver_max31865.c.
| uint8_t max31865_set_vbias | ( | max31865_handle_t * | handle, |
| max31865_bool_t | enable ) |
set the chip vbias
| [in] | *handle | pointer to a max31865 handle structure |
| [in] | enable | bool value |
Definition at line 488 of file driver_max31865.c.
| uint8_t max31865_set_wire | ( | max31865_handle_t * | handle, |
| max31865_wire_t | wire ) |
set the pt resistor wire
| [in] | *handle | pointer to a max31865 handle structure |
| [in] | wire | pt resistor wire and it can be 2, 3 or 4 |
Definition at line 310 of file driver_max31865.c.
| uint8_t max31865_single_read | ( | max31865_handle_t * | handle, |
| uint16_t * | raw, | ||
| float * | temp ) |
read data once
| [in] | *handle | pointer to a max31865 handle structure |
| [out] | *raw | pointer to a raw temperature buffer |
| [out] | *temp | pointer to a converted temperature buffer |
Definition at line 837 of file driver_max31865.c.
| uint8_t max31865_start_continuous_read | ( | max31865_handle_t * | handle | ) |
start reading
| [in] | *handle | pointer to a max31865 handle structure |
Definition at line 932 of file driver_max31865.c.
| uint8_t max31865_stop_continuous_read | ( | max31865_handle_t * | handle | ) |
stop reading
| [in] | *handle | pointer to a max31865 handle structure |
Definition at line 971 of file driver_max31865.c.