rasProject_01 / weSweetHome
R. 240
process control / RasPi software by weinert-automation
|
Values for discrimination of duration. More...
#include <weDCF77.h>
Data Fields | |
char | c |
Charakter. More... | |
unsigned | i |
Index. More... | |
char | n [6] |
Name. More... | |
uint32_t | v |
Value. More... | |
Values for discrimination of duration.
This structure holds the data of one discrimination point.
The primary value type are duration as uint32_t in μs.
unsigned i |
Index.
The lowest value in a chain (array or enum) shall get the index 0.
This value[0] shall be the upper value of the discrimination range [lowest possible / measurable values ... v[0]-1].
For an unsigned value type (used here) the lowest possible value is 0 while the lowest measurable value might be higher.
v[j] <= v[j+1] must hold.
uint32_t v |
Value.
This is the upper bound value of the range.
The highest value in a chain (array or enum) is implied as the maximum possible / measurable value and must, hence, never be used in a comparison and shall be set to MXUI32 (=UINT32_MAX).
v[j] <= v[j+1] must hold.
char n[6] |
Name.
This is a short (5 character max.) name of the discrimination range, like, e.g., "spike", "error", "1 sec", "0" etc.
char c |
Charakter.
This is a recognisable character for the discrimination range, best unique for the complete chain. It may be used for (narrow) logs instead of durDiscrPointData_t::n.