K-type thermocouple amplifier driver using SPI communication for the Parallax Propeller.
More...
#include <PropWare/sensor/temperature/max6675.h>
K-type thermocouple amplifier driver using SPI communication for the Parallax Propeller.
- Examples
- MAX6675_Demo.cpp.
Definition at line 36 of file max6675.h.
◆ MAX6675()
- Parameters
-
[in] | spi | Constructed SPI module |
[in] | mosi | MOSI pin mask |
[in] | miso | MISO pin mask |
[in] | sclk | SCLK pin mask |
[in] | cs | Chip select pin mask |
[in] | alwaysSetMode | The SPI modes will always be set before a read or write routine when true |
Definition at line 60 of file max6675.h.
◆ always_set_spi_mode()
void PropWare::MAX6675::always_set_spi_mode |
( |
const bool |
alwaysSetMode | ) |
|
Choose whether to always set the SPI mode and bitmode before reading or writing to the chip; Useful when multiple devices are connected to the SPI bus.
- Parameters
-
[in] | alwaysSetMode | The SPI modes will always be set before a read or write routine when true |
Definition at line 84 of file max6675.h.
◆ read()
uint16_t PropWare::MAX6675::read |
( |
| ) |
|
Read data in fixed-point form.
12-bit data is stored where lower 2 bits are fractional and upper10 bits are the whole number. Value presented in degrees Celsius
- Returns
- Returns 0 upon success, error code otherwise
Definition at line 96 of file max6675.h.
◆ read_float()
float PropWare::MAX6675::read_float |
( |
| ) |
|
Read data in floating point form.
- Returns
- Returns 0 upon success, error code otherwise
Definition at line 129 of file max6675.h.
◆ read_whole()
uint16_t PropWare::MAX6675::read_whole |
( |
| ) |
|
Read data and return integer value.
- Returns
- Returns 0 upon success, error code otherwise
Definition at line 117 of file max6675.h.
◆ __pad0__
PropWare::MAX6675::__pad0__ |
- Parameters
-
[in] | spi | Constructed SPI module |
[in] | alwaysSetMode | The SPI modes will always be set before a read or write routine when true |
Definition at line 43 of file max6675.h.
The documentation for this class was generated from the following file: