Implementation of MAX31855 thermocouple temperature measurement.
More...
#include <MAX31855.h>
Inherits SPI::Device.
|
| | MAX31855 (Sink< SPI::Request > &bus, DIO cs) |
| | Constructor.
|
| |
| double | temp () |
| | measured sensor temperature
|
| |
| double | internal () |
| | measured internal chip temperature
|
| |
|
void | sense () |
| | request measurement of sensor data
|
| |
|
void | callback (const SPI::Request rq) override |
| | is called as soon as requested data arrived over wire
|
| |
| void | select (bool sel) |
| | chipselect activation
|
| |
|
|
struct MAX31855::sensor | data = {} |
| | sensor data struct. lsb to msb order.
|
| |
|
DIO | cs |
| | GPIO chipselect line.
|
| |
|
struct SPI::Device::Conf | conf |
| | necessary SPI configuration
|
| |
Implementation of MAX31855 thermocouple temperature measurement.
◆ MAX31855()
Constructor.
- Parameters
-
| bus | SPI bus |
| cs | chip select pin |
◆ temp()
| double MAX31855::temp |
( |
| ) |
|
|
inline |
measured sensor temperature
- Returns
- temperature in °C, NAN if sensor fault
◆ internal()
| double MAX31855::internal |
( |
| ) |
|
|
inline |
measured internal chip temperature
- Returns
- temperature in °C, NAN if sensor fault
◆ select()
| void SPI::Device::select |
( |
bool |
sel | ) |
|
|
inlineinherited |
chipselect activation
- Parameters
-
The documentation for this struct was generated from the following file: