KiCad PCB EDA Suite
Loading...
Searching...
No Matches
units_scales.h File Reference

Go to the source code of this file.

Macros

#define UNIT_KM   1e3
 
#define UNIT_M   1
 
#define UNIT_CM   1e-2
 
#define UNIT_MM   1e-3
 
#define UNIT_MICRON   1e-6
 
#define UNIT_INCH   (1e-2*2.54)
 
#define UNIT_MIL   (1e-5*2.54)
 
#define UNIT_FEET   0.3048
 
#define UNIT_OZSQFT   (34.40*UNIT_MICRON)
 
#define UNIT_GHZ   1e9
 
#define UNIT_MHZ   1e6
 
#define UNIT_KHZ   1e3
 
#define UNIT_DEGREE   (M_PI/180.0)
 
#define UNIT_RADIAN   1.0
 
#define UNIT_OHM   1.0
 
#define UNIT_KOHM   1e3
 
#define UNIT_OHM_PER_METER   1.0
 
#define UNIT_OHM_PER_KILOMETER   1e-3
 
#define UNIT_OHM_PER_FEET   3.28084
 
#define UNIT_OHM_PER_1000FEET   3.28084e-3
 
#define UNIT_KILOVOLT   1e-3
 
#define UNIT_VOLT   1.0
 
#define UNIT_MILLIVOLT   1e+3
 
#define UNIT_MEGAWATT   1e-6
 
#define UNIT_KILOWATT   1e-3
 
#define UNIT_WATT   1.0
 
#define UNIT_MILLIWATT   1e+3
 
#define UNIT_METER_PER_SECOND   1.0
 
#define UNIT_KILOMETER_PER_HOUR   ( 1 / 3.6 )
 
#define UNIT_FEET_PER_SECOND   0.3048
 
#define UNIT_MILES_PER_HOUR   1609.34
 
#define UNIT_SECOND   1.0
 
#define UNIT_MSECOND   1e-3
 
#define UNIT_USECOND   1e-6
 
#define UNIT_NSECOND   1e-9
 
#define UNIT_PSECOND   1e-12
 

Macro Definition Documentation

◆ UNIT_CM

#define UNIT_CM   1e-2

Definition at line 33 of file units_scales.h.

◆ UNIT_DEGREE

#define UNIT_DEGREE   (M_PI/180.0)

Definition at line 45 of file units_scales.h.

◆ UNIT_FEET

#define UNIT_FEET   0.3048

Definition at line 38 of file units_scales.h.

◆ UNIT_FEET_PER_SECOND

#define UNIT_FEET_PER_SECOND   0.3048

Definition at line 67 of file units_scales.h.

◆ UNIT_GHZ

#define UNIT_GHZ   1e9

Definition at line 41 of file units_scales.h.

◆ UNIT_INCH

#define UNIT_INCH   (1e-2*2.54)

Definition at line 36 of file units_scales.h.

◆ UNIT_KHZ

#define UNIT_KHZ   1e3

Definition at line 43 of file units_scales.h.

◆ UNIT_KILOMETER_PER_HOUR

#define UNIT_KILOMETER_PER_HOUR   ( 1 / 3.6 )

Definition at line 66 of file units_scales.h.

◆ UNIT_KILOVOLT

#define UNIT_KILOVOLT   1e-3

Definition at line 56 of file units_scales.h.

◆ UNIT_KILOWATT

#define UNIT_KILOWATT   1e-3

Definition at line 61 of file units_scales.h.

◆ UNIT_KM

#define UNIT_KM   1e3

Definition at line 31 of file units_scales.h.

◆ UNIT_KOHM

#define UNIT_KOHM   1e3

Definition at line 49 of file units_scales.h.

◆ UNIT_M

#define UNIT_M   1

Definition at line 32 of file units_scales.h.

◆ UNIT_MEGAWATT

#define UNIT_MEGAWATT   1e-6

Definition at line 60 of file units_scales.h.

◆ UNIT_METER_PER_SECOND

#define UNIT_METER_PER_SECOND   1.0

Definition at line 65 of file units_scales.h.

◆ UNIT_MHZ

#define UNIT_MHZ   1e6

Definition at line 42 of file units_scales.h.

◆ UNIT_MICRON

#define UNIT_MICRON   1e-6

Definition at line 35 of file units_scales.h.

◆ UNIT_MIL

#define UNIT_MIL   (1e-5*2.54)

Definition at line 37 of file units_scales.h.

◆ UNIT_MILES_PER_HOUR

#define UNIT_MILES_PER_HOUR   1609.34

Definition at line 68 of file units_scales.h.

◆ UNIT_MILLIVOLT

#define UNIT_MILLIVOLT   1e+3

Definition at line 58 of file units_scales.h.

◆ UNIT_MILLIWATT

#define UNIT_MILLIWATT   1e+3

Definition at line 63 of file units_scales.h.

◆ UNIT_MM

#define UNIT_MM   1e-3

Definition at line 34 of file units_scales.h.

◆ UNIT_MSECOND

#define UNIT_MSECOND   1e-3

Definition at line 71 of file units_scales.h.

◆ UNIT_NSECOND

#define UNIT_NSECOND   1e-9

Definition at line 73 of file units_scales.h.

◆ UNIT_OHM

#define UNIT_OHM   1.0

Definition at line 48 of file units_scales.h.

◆ UNIT_OHM_PER_1000FEET

#define UNIT_OHM_PER_1000FEET   3.28084e-3

Definition at line 54 of file units_scales.h.

◆ UNIT_OHM_PER_FEET

#define UNIT_OHM_PER_FEET   3.28084

Definition at line 53 of file units_scales.h.

◆ UNIT_OHM_PER_KILOMETER

#define UNIT_OHM_PER_KILOMETER   1e-3

Definition at line 52 of file units_scales.h.

◆ UNIT_OHM_PER_METER

#define UNIT_OHM_PER_METER   1.0

Definition at line 51 of file units_scales.h.

◆ UNIT_OZSQFT

#define UNIT_OZSQFT   (34.40*UNIT_MICRON)

Definition at line 39 of file units_scales.h.

◆ UNIT_PSECOND

#define UNIT_PSECOND   1e-12

Definition at line 74 of file units_scales.h.

◆ UNIT_RADIAN

#define UNIT_RADIAN   1.0

Definition at line 46 of file units_scales.h.

◆ UNIT_SECOND

#define UNIT_SECOND   1.0

Definition at line 70 of file units_scales.h.

◆ UNIT_USECOND

#define UNIT_USECOND   1e-6

Definition at line 72 of file units_scales.h.

◆ UNIT_VOLT

#define UNIT_VOLT   1.0

Definition at line 57 of file units_scales.h.

◆ UNIT_WATT

#define UNIT_WATT   1.0

Definition at line 62 of file units_scales.h.