EDCS Reference Manual
Functions EDCS ConvertQuantityValue |
---|
extern EDCS_Status_Code | ||||
EDCS_ConvertQuantityValue | ||||
( | ||||
const | EDCS_Real_Value | * | from_value_in_ptr, | 1 |
EDCS_Real_Value | * | to_value_in_out_ptr | 2 | |
); |
Given a physical quantity with a given unit and scale specified in the from_value_in_ptr structure, convert that quantity to the unit and scale specified within the to_value_in_out_ptr structure.
EDCS_SC_SUCCESS | and *to_value_in_out_ptr is set to the result of the specified conversion, if valid parameters were passed in. |
EDCS_SC_NULL_REQUIRED_PARAMETER | and *to_value_in_out_ptr is left unchanged, if either from_value_in_ptr or to_value_in_out_ptr were NULL. |
EDCS_SC_INVALID_INPUT_UNIT | and *to_value_in_out_ptr is left unchanged, if the unit specified in the from_value_in_ptr structure is not a valid EU code. |
EDCS_SC_INVALID_OUTPUT_UNIT | and *to_value_in_out_ptr is left unchanged, if the unit specified in the to_value_in_out_ptr structure is not a valid EU code. |
EDCS_SC_INVALID_INPUT_UNIT_SCALE | and *to_value_in_out_ptr is left unchanged, if the scale specified in the from_value_in_ptr structure is not a valid ES code. |
EDCS_SC_INVALID_OUTPUT_UNIT_SCALE | and *to_value_in_out_ptr is left unchanged, if the scale specified in the to_value_in_out_ptr structure is not a valid ES code. |
EDCS_SC_INVALID_OUTPUT_UNIT_SCALE | and *to_value_in_out_ptr is left unchanged, if the scale specified in the to_value_in_out_ptr structure is not a valid ES code. |
EDCS_SC_UNITS_NOT_EQUIVALENT | and *to_value_in_out_ptr is left unchanged, if the units specified in the from_value_in_ptr and to_value_in_out_ptr structures do not belong to the same EQ class. |
1 the from value
2 the to value
Prev: EDCS_ConvertQuantityLongFloatValue.
Next: EDCS_EnumNameToAttributeValueType.
Up:Index.
|