hsk-libs-dev  270
High Speed Karlsruhe XC878 library collection
Macros

These defines are for returning average frequencies. More...

Macros

#define PWC_UNIT_FREQ_S   5
 Average frequency of buffered pulses in multiples of $ 1/s $. More...
 
#define PWC_UNIT_FREQ_M   6
 Average frequency of buffered pulses in multiples of $ 1/m $. More...
 
#define PWC_UNIT_FREQ_H   7
 Average frequency of buffered pulses in multiples of $ 1/h $. More...
 

Detailed Description

These defines are for returning average frequencies.

Macro Definition Documentation

§ PWC_UNIT_FREQ_H

#define PWC_UNIT_FREQ_H   7

Average frequency of buffered pulses in multiples of $ 1/h $.

To prevent overflow issues this value is always a multiple of the number of averaged values * 60.

This is just a convenience feature for quick testing, it is possible to achieve much better precision if the use case is known.

§ PWC_UNIT_FREQ_M

#define PWC_UNIT_FREQ_M   6

Average frequency of buffered pulses in multiples of $ 1/m $.

To prevent overflow issues this value is always a multiple of the number of averaged values.

§ PWC_UNIT_FREQ_S

#define PWC_UNIT_FREQ_S   5

Average frequency of buffered pulses in multiples of $ 1/s $.