![]() |
no-OS
|
Classes | |
| struct | max31855_init_param |
| MAX31855 comm init param. More... | |
| struct | max31855_decimal |
| interger/decimal format used for temperature representation More... | |
| struct | _max31855_fault_sts_mask |
| union | max31855_fault_sts |
| struct | max31855_dev |
| MAX31855 descriptor. More... | |
Macros | |
| #define | MAX31855_GET_INTERNAL_TEMP(x) |
| #define | MAX31855_GET_FAULT_BIT(x) |
| #define | MAX31855_GET_THERMOCOUPLE_TEMP(x) |
| #define | MAX31855_GET_FAULTS(x) |
| #define | MAX31855_THERMOCOUPLE_TEMP_DEC_DIV 4 |
| #define | MAX31855_INTERNAL_TEMP_DEC_DIV 16 |
| #define | MAX31855_THERMOCOUPLE_TEMP_SIGN_POS 13 |
| #define | MAX31855_INTERNAL_TEMP_SIGN_POS 11 |
Functions | |
| int | max31855_init (struct max31855_dev **, struct max31855_init_param *) |
| Device and comm init function. | |
| int | max31855_remove (struct max31855_dev *) |
| Remove resources allocated by the init function. | |
| int | max31855_read_raw (struct max31855_dev *, uint32_t *) |
| Read raw register value. | |
| int | max31855_read_temp (struct max31855_dev *, struct max31855_decimal *, struct max31855_decimal *) |
| Read thermocouple and internal temperatures (converted in deg. C) | |
| #define MAX31855_GET_FAULT_BIT | ( | x | ) |
| #define MAX31855_GET_FAULTS | ( | x | ) |
| #define MAX31855_GET_INTERNAL_TEMP | ( | x | ) |
| #define MAX31855_GET_THERMOCOUPLE_TEMP | ( | x | ) |
| #define MAX31855_INTERNAL_TEMP_DEC_DIV 16 |
| #define MAX31855_INTERNAL_TEMP_SIGN_POS 11 |
| #define MAX31855_THERMOCOUPLE_TEMP_DEC_DIV 4 |
Decimal resolution for the 2 temperatures (0.25 C and 0.0625 C / LSB). integer_temp = raw_temp / dec_div.
| #define MAX31855_THERMOCOUPLE_TEMP_SIGN_POS 13 |
Sign bit position
| int max31855_init | ( | struct max31855_dev ** | device, |
| struct max31855_init_param * | init_param ) |
Device and comm init function.
Device and comm init function
| device | - MAX31855 descriptor to be initialized |
| init_param | - Init parameter for descriptor |
| int max31855_read_raw | ( | struct max31855_dev * | device, |
| uint32_t * | val ) |
Read raw register value.
Read raw register value
| device | - MAX31855 descriptor |
| val | - register value |
| int max31855_read_temp | ( | struct max31855_dev * | device, |
| struct max31855_decimal * | thermocouple_temp, | ||
| struct max31855_decimal * | internal_temp ) |
Read thermocouple and internal temperatures (converted in deg. C)
Read thermocouple and internal temperatures (converted in deg. C)
| device | - MAX31855 descriptor |
| thermocouple_temp | - thermocouple probe temperature (deg. C) |
| internal_temp | - board's temperature (used as reference) |
| int max31855_remove | ( | struct max31855_dev * | device | ) |
Remove resources allocated by the init function.
Free resources allocated by the init function
| device | - MAX31855 descriptor |