![]() |
LibDriver MAX31855
|
max31855 base driver modules More...
Data Structures | |
| struct | max31855_handle_s |
| max31855 handle structure definition More... | |
| struct | max31855_info_s |
| max31855 information structure definition More... | |
Typedefs | |
| typedef struct max31855_handle_s | max31855_handle_t |
| max31855 handle structure definition | |
| typedef struct max31855_info_s | max31855_info_t |
| max31855 information structure definition | |
Enumerations | |
| enum | max31855_fault_t { MAX31855_FAULT_NONE = 0x00 , MAX31855_FAULT_OC = (1 << 0) , MAX31855_FAULT_SCG = (1 << 1) , MAX31855_FAULT_SCV = (1 << 2) } |
| max31855 fault enumeration definition More... | |
Functions | |
| uint8_t | max31855_info (max31855_info_t *info) |
| get chip's information | |
| uint8_t | max31855_init (max31855_handle_t *handle) |
| initialize the chip | |
| uint8_t | max31855_deinit (max31855_handle_t *handle) |
| close the chip | |
| uint8_t | max31855_read (max31855_handle_t *handle, int16_t *thermocouple_raw, float *thermocouple_temp, int16_t *reference_junction_raw, float *reference_junction_temp) |
| read the temperature | |
| uint8_t | max31855_get_last_fault (max31855_handle_t *handle, max31855_fault_t *fault) |
| get the last fault | |
max31855 base driver modules
| typedef struct max31855_handle_s max31855_handle_t |
max31855 handle structure definition
| typedef struct max31855_info_s max31855_info_t |
max31855 information structure definition
| enum max31855_fault_t |
max31855 fault enumeration definition
| Enumerator | |
|---|---|
| MAX31855_FAULT_NONE | none |
| MAX31855_FAULT_OC | open, no connections |
| MAX31855_FAULT_SCG | short-circuited to gnd |
| MAX31855_FAULT_SCV | short-circuited to vcc |
Definition at line 62 of file driver_max31855.h.
| uint8_t max31855_deinit | ( | max31855_handle_t * | handle | ) |
close the chip
| [in] | *handle | pointer to a max31855 handle structure |
Definition at line 155 of file driver_max31855.c.
| uint8_t max31855_get_last_fault | ( | max31855_handle_t * | handle, |
| max31855_fault_t * | fault ) |
get the last fault
| [in] | *handle | pointer to a max31855 handle structure |
| [out] | *fault | pointer to a fault buffer |
Definition at line 190 of file driver_max31855.c.
| uint8_t max31855_info | ( | max31855_info_t * | info | ) |
get chip's information
| [out] | *info | pointer to a max31855 info structure |
Definition at line 309 of file driver_max31855.c.
| uint8_t max31855_init | ( | max31855_handle_t * | handle | ) |
initialize the chip
| [in] | *handle | pointer to a max31855 handle structure |
Definition at line 89 of file driver_max31855.c.
| uint8_t max31855_read | ( | max31855_handle_t * | handle, |
| int16_t * | thermocouple_raw, | ||
| float * | thermocouple_temp, | ||
| int16_t * | reference_junction_raw, | ||
| float * | reference_junction_temp ) |
read the temperature
| [in] | *handle | pointer to a max31855 handle structure |
| [out] | *thermocouple_raw | pointer to a thermocouple raw data buffer |
| [out] | *thermocouple_temp | pointer to a thermocouple converted temperature buffer |
| [out] | *reference_junction_raw | pointer to a reference junction raw data buffer |
| [out] | *reference_junction_temp | pointer to a reference junction converted temperature buffer |
Definition at line 221 of file driver_max31855.c.