LoomSPISensor class
Abstract base class for SPI sensor modules.
Contents
Base classes
- class LoomSensor
- Abstract root of Loom sensor modules hierarchy.
Derived classes
- class Loom_MAX31855
- MAX31855 thermocouple temperature module.
- class Loom_MAX31856
- MAX31856 thermocouple module.
CONSTRUCTORS / DESTRUCTOR
-
LoomSPISensor(LoomManager* manager,
const char* module_name,
const LoomModule::
Type module_type, const uint8_t num_samples = 1) - Constructor.
- ~LoomSPISensor() defaulted virtual
- Destructor.
PRINT INFORMATION
- void print_measurements() const override
- Print the last set of measurements taken.
Function documentation
LoomSPISensor:: LoomSPISensor(LoomManager* manager,
const char* module_name,
const LoomModule:: Type module_type,
const uint8_t num_samples = 1)
Constructor.
Parameters | |
---|---|
manager | |
module_name in | Name of the module (provided by derived classes) |
module_type in | Type of the module (provided by derived classes) |
num_samples in | The number of samples to take and average |
void LoomSPISensor:: print_measurements() const override
Print the last set of measurements taken.
Does not package the data.