12.3 Routine Descriptions
The following routines are supplied by this unit.
- PhysicalConstants_get
Request a physical constant given by a string, and
returns its real value. This routine takes
optional arguments for converting units from the default. If
the constant name or any of the optional unit names aren't recognized, a
value of 0 is returned.
- PhysicalConstants_init
Initializes the Physical Constants Unit by loading all
constants. This routine is called by Driver_initFlash and must be called before the
first invocation of PhysicalConstants_get.
In general, the user does not need to invoke this call.
- PhysicalConstants_list
Lists the available physical constants in a snappy table.
- PhysicalConstants_listUnits
Lists all the units available for optional conversion.
- PhysicalConstants_unitTest
Lists all physical constants and units, and tests the unit conversion
routines.
FLASH3 Transition:
The header file PhysicalConstants.h must be included in the
calling routine due to the optional arguments of
PhysicalConstants_get.