hsk_libs-dev  163:b63ae088cc97
High Speed Karlsruhe XC878 library collection
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages

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

#define PWC_UNIT_DUTYH_MS   11

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

#define PWC_UNIT_DUTYH_NS   9

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

#define PWC_UNIT_DUTYH_RAW   8

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

#define PWC_UNIT_DUTYH_US   10

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

#define PWC_UNIT_DUTYL_MS   15

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

#define PWC_UNIT_DUTYL_NS   13

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

#define PWC_UNIT_DUTYL_RAW   12

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

#define PWC_UNIT_DUTYL_US   14

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