rasProject_01 / weSweetHome  R. 116 2026-05-14
process control       /     RasPi software         by   weinert-automation
Loading...
Searching...
No Matches
durDiscrPointData_t Struct Reference

Values for discrimination of duration. More...

#include <weDCF77.h>

Data Fields

char c
 Charakter.
unsigned i
 Index.
char n [6]
 Name.
uint32_t v
 Value.

Detailed Description

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.

Field Documentation

◆ i

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.

◆ v

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.

◆ n

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.

◆ c

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 n.


The documentation for this struct was generated from the following file: