Humidistat
Arduino firmware for a humidistat (humidity controller)
|
A class for storing references to variables of various types (uint8_t, uint16_t, or double). More...
#include <ConfigPar.h>
Classes | |
struct | Var |
Public Types | |
enum class | ConfigParType { ui8 , ui16 , d } |
Public Member Functions | |
void | adjust (int16_t delta) const |
Add delta to the variable. | |
char * | asprint () const |
Print "label: value" to string. Automatically allocates string on the heap. Make sure to delete it immediately afterwards. | |
uint8_t | magnitude () const |
Get magnitude (number of digits before the decimal separator) of variable. | |
Public Attributes | |
struct ConfigPar::Var | var |
char | label [10] |
A class for storing references to variables of various types (uint8_t, uint16_t, or double).
Definition at line 11 of file ConfigPar.h.
|
strong |
Enumerator | |
---|---|
ui8 | |
ui16 | |
d |
Definition at line 13 of file ConfigPar.h.
void ConfigPar::adjust | ( | int16_t | delta | ) | const |
Add delta to the variable.
delta | Amount to add |
Definition at line 8 of file ConfigPar.cpp.
char * ConfigPar::asprint | ( | ) | const |
Print "label: value" to string. Automatically allocates string on the heap. Make sure to delete it immediately afterwards.
Definition at line 22 of file ConfigPar.cpp.
uint8_t ConfigPar::magnitude | ( | ) | const |
Get magnitude (number of digits before the decimal separator) of variable.
Definition at line 33 of file ConfigPar.cpp.
char ConfigPar::label[10] |
Definition at line 40 of file ConfigPar.h.
struct ConfigPar::Var ConfigPar::var |