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

These defines are used for returning the duty time of the latest pulse. More...

Macros

#define PWC_UNIT_DUTYH_RAW   8
 Latest high pulse in multiples of $ 1/48 * 10^{-6} s $. More...
 
#define PWC_UNIT_DUTYH_NS   9
 Latest high pulse in multiples of $ 1 * 10^{-9} s $. More...
 
#define PWC_UNIT_DUTYH_US   10
 Latest high pulse in multiples of $ 1 * 10^{-6} s $. More...
 
#define PWC_UNIT_DUTYH_MS   11
 Latest high pulse in multiples of $ 1 * 10^{-3} s $. More...
 
#define PWC_UNIT_DUTYL_RAW   12
 Latest low pulse in multiples of $ 1/48 * 10^{-6} s $. More...
 
#define PWC_UNIT_DUTYL_NS   13
 Latest low pulse in multiples of $ 1 * 10^{-9} s $. More...
 
#define PWC_UNIT_DUTYL_US   14
 Latest low pulse in multiples of $ 1 * 10^{-6} s $. More...
 
#define PWC_UNIT_DUTYL_MS   15
 Latest low pulse in multiples of $ 1 * 10^{-3} s $. More...
 

Detailed Description

These defines are used for returning the duty time of the latest pulse.

In order to use this return type, the channel buffer must hold at least 2 values. I.e. the averageOver argument of hsk_pwc_port_open() must be 2 or greater (there is no benefit to a value above 2).

To produce correct results the channel must also be in edge mode PWC_EDGE_BOTH.

Macro Definition Documentation

§ PWC_UNIT_DUTYH_MS

#define PWC_UNIT_DUTYH_MS   11

Latest high pulse in multiples of $ 1 * 10^{-3} s $.

§ PWC_UNIT_DUTYH_NS

#define PWC_UNIT_DUTYH_NS   9

Latest high pulse in multiples of $ 1 * 10^{-9} s $.

§ PWC_UNIT_DUTYH_RAW

#define PWC_UNIT_DUTYH_RAW   8

Latest high pulse in multiples of $ 1/48 * 10^{-6} s $.

§ PWC_UNIT_DUTYH_US

#define PWC_UNIT_DUTYH_US   10

Latest high pulse in multiples of $ 1 * 10^{-6} s $.

§ PWC_UNIT_DUTYL_MS

#define PWC_UNIT_DUTYL_MS   15

Latest low pulse in multiples of $ 1 * 10^{-3} s $.

§ PWC_UNIT_DUTYL_NS

#define PWC_UNIT_DUTYL_NS   13

Latest low pulse in multiples of $ 1 * 10^{-9} s $.

§ PWC_UNIT_DUTYL_RAW

#define PWC_UNIT_DUTYL_RAW   12

Latest low pulse in multiples of $ 1/48 * 10^{-6} s $.

§ PWC_UNIT_DUTYL_US

#define PWC_UNIT_DUTYL_US   14

Latest low pulse in multiples of $ 1 * 10^{-6} s $.